img,video {
        -webkit-user-drag: none;
        user-drag: none
    }

    body {
        -webkit-touch-callout: none
    }

:root {
                --night: #f8f1ec;
                --paper: #f8faf4;
                --paper2: #fdfdf9;
                --ink: #1f2a22;
                --soft: #5b6a5e;
                --accent: #1f5a3d;
                --gold: #a8843f;
                --line: #dfe5d6;
                --script: 'Italianno',cursive;
                --disp: 'Gilda Display',serif;
                --body: 'Hanken Grotesk',system-ui,sans-serif;
                --urdu: "Noto Nastaliq Urdu","Jameel Noori Nastaleeq",serif;
                --arabic: "Scheherazade New","Traditional Arabic",serif;
                color-scheme: light;
            }

            * {
                box-sizing: border-box
            }

            html,body {
                margin: 0;
                min-height: 100%;
                overflow-x: hidden;
                max-width: 100%
            }

            body {
                background: var(--night);
                color: var(--ink);
                font-family: var(--body);
                font-weight: 400;
                font-size: 15.5px;
                line-height: 1.7;
                -webkit-font-smoothing: antialiased
            }

            body.locked {
                overflow: hidden;
                height: 100%
            }

            img {
                display: block;
                max-width: 100%
            }

            [hidden] {
                display: none!important
            }

            button {
                font: inherit;
                color: inherit
            }

            :focus-visible {
                outline: 2px solid var(--gold);
                outline-offset: 3px
            }

            .ur-on .t {
                font-family: var(--urdu);
                line-height: 2.1;
                letter-spacing: 0!important
            }

            .ur-on .rtl {
                direction: rtl
            }

            /* ====== ENTRANCE ====== */
            #entrance {
                position: fixed;
                inset: 0;
                z-index: 50;
                background: var(--night);
                overflow: hidden;
                touch-action: none;
                transition: opacity 1.2s ease
            }

            #entrance.gone {
                opacity: 0;
                pointer-events: none
            }

            #entrance .stage {
                position: absolute;
                left: 50%;
                top: 50%;
                aspect-ratio: 752/1344;
                width: calc(100svh * 752 / 1344);
                transform: translate(-50%,-50%)
            }

            #entrance .stage img,#entrance .stage canvas {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%
            }

            #entrance .ent-dim {
                filter: brightness(.22) saturate(.55) hue-rotate(-8deg)
            }

            .ent-text {
                position: absolute;
                left: 0;
                right: 0;
                top: calc(env(safe-area-inset-top,0px) + 11vh);
                z-index: 3;
                text-align: center;
                padding: 0 28px;
                pointer-events: none;
                color: #f6ecd9;
                display: grid;
                gap: 14px;
                justify-items: center
            }

            .ent-text .line {
                font-family: var(--disp);
                font-style: italic;
                font-size: clamp(24px,7vw,30px);
                line-height: 1.3;
                max-width: 15em
            }

            .ent-text .hint {
                font-size: 10px;
                letter-spacing: .34em;
                text-transform: uppercase;
                color: var(--gold)
            }

            .ent-text .tick {
                width: 1px;
                height: 26px;
                background: linear-gradient(var(--gold),transparent)
            }

            .ent-skip {
                position: absolute;
                z-index: 4;
                left: 50%;
                bottom: calc(env(safe-area-inset-bottom,0px) + 22px);
                transform: translateX(-50%);
                background: none;
                border: none;
                color: rgba(246,236,217,.55);
                font-size: 10px;
                letter-spacing: .24em;
                text-transform: uppercase;
                cursor: pointer;
                padding: 8px
            }

            .ent-prog {
                position: absolute;
                z-index: 4;
                left: 50%;
                bottom: calc(env(safe-area-inset-bottom,0px) + 64px);
                transform: translateX(-50%);
                width: 120px;
                height: 2px;
                border-radius: 2px;
                background: rgba(246,236,217,.18);
                overflow: hidden
            }

            .ent-prog b {
                display: block;
                height: 100%;
                width: var(--p,0%);
                background: var(--gold);
                transition: width .25s
            }

            /* ====== POSTER ====== */
            .poster {
                position: relative;
                height: 100svh;
                min-height: 600px;
                max-width: 480px;
                width: min(100%,480px,calc(100svh * 752 / 1344));
                margin: 0 auto;
                overflow: hidden;
                background: var(--night);
                color: #fbf3e2;
                text-align: center
            }

            .pstage {
                position: absolute;
                left: 50%;
                top: 50%;
                aspect-ratio: 752/1344;
                width: calc(100svh * 752 / 1344);
                transform: translate(-50%,-50%);
                background: url(../img/poster.webp) 50% 50%/100% 100% no-repeat;
                container-type: inline-size
            }

            .pstage::before {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(rgba(8,6,4,.5),rgba(8,6,4,.1) 45%,rgba(8,6,4,0) 60%,rgba(8,6,4,.45));
                pointer-events: none
            }

            .poster .pt {
                position: absolute;
                z-index: 1;
                left: 50%;
                top: 8.5%;
                width: 74%;
                transform: translateX(-50%);
                display: grid;
                justify-items: center;
                gap: 6px
            }

            .poster .ar {
                font-family: var(--arabic);
                font-size: 21px;
                color: var(--gold);
                direction: rtl;
                line-height: 1.6
            }

            .poster .tw {
                font-size: 9.5px;
                font-weight: 500;
                letter-spacing: .38em;
                text-transform: uppercase;
                color: rgba(251,243,226,.82);
                margin-top: 4px
            }

            .poster .nm {
                font-family: var(--script);
                font-weight: 400;
                font-size: clamp(52px,15vw,72px);
                line-height: 1;
                text-shadow: 0 2px 24px rgba(0,0,0,.45);
                margin-top: 10px
            }

            .poster .am {
                font-family: var(--disp);
                font-style: italic;
                font-size: 22px;
                color: var(--gold);
                line-height: 1.1
            }

            .poster .rule {
                width: 56px;
                height: 1px;
                background: linear-gradient(90deg,transparent,var(--gold),transparent);
                margin: 14px 0 6px
            }

            .poster .dt {
                font-family: var(--disp);
                font-size: 15px;
                letter-spacing: .2em
            }

            .poster .pl {
                font-size: 10.5px;
                letter-spacing: .18em;
                text-transform: uppercase;
                color: rgba(251,243,226,.75)
            }

            .poster .pt > * {
                transition: opacity 1.4s ease,transform 1.4s cubic-bezier(.2,.7,.2,1)
            }

            body.locked .poster .pt > * {
                opacity: 0;
                transform: translateY(16px)
            }

            .poster .pt > :nth-child(2) {
                transition-delay: .2s
            }

            .poster .pt > :nth-child(3) {
                transition-delay: .4s
            }

            .poster .pt > :nth-child(4) {
                transition-delay: .55s
            }

            .poster .pt > :nth-child(5) {
                transition-delay: .7s
            }

            .poster .pt > :nth-child(n+6) {
                transition-delay: .9s
            }

            .next {
                position: absolute;
                z-index: 2;
                left: 50%;
                bottom: calc(env(safe-area-inset-bottom,0px) + 22px);
                transform: translateX(-50%);
                display: grid;
                justify-items: center;
                gap: 4px;
                background: none;
                border: none;
                color: #fbf3e2;
                font-size: 10px;
                letter-spacing: .3em;
                text-transform: uppercase;
                cursor: pointer
            }

            .next i {
                font-style: normal;
                font-size: 16px;
                animation: bob 1.8s ease-in-out infinite
            }

            @keyframes bob {
                50% {
                    transform: translateY(5px)
                }
            }

            /* ====== BODY (paper) ====== */
            .paper {
                position: relative;
                max-width: 480px;
                margin: 0 auto;
                background: var(--paper) url(../img/paper.webp) 50% 0/520px auto repeat;
                box-shadow: 0 0 0 1px rgba(0,0,0,.04)
            }

            .paper::before {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(rgba(255,255,255,.35),rgba(255,255,255,.35));
                pointer-events: none
            }

            .sec {
                position: relative;
                padding: 58px max(26px, env(safe-area-inset-left, 0px)) 58px max(26px, env(safe-area-inset-right, 0px));
                text-align: center;
                display: grid;
                gap: 18px;
                justify-items: center
            }

            .sec > * {
                position: relative;
                max-width: 100%
            }

            .sec + .sec {
                border-top: 1px solid var(--line)
            }

            .corner {
                position: absolute;
                top: 0;
                width: 96px;
                pointer-events: none;
                opacity: .95
            }

            .corner.l {
                left: 0
            }

            .corner.r {
                right: 0;
                transform: scaleX(-1)
            }

            .eyebrow {
                display: flex;
                align-items: center;
                gap: 12px;
                font-size: 9.5px;
                font-weight: 500;
                letter-spacing: .34em;
                text-transform: uppercase;
                color: var(--soft)
            }

            .eyebrow::before,.eyebrow::after {
                content: "";
                width: 26px;
                height: 1px;
                background: var(--gold);
                opacity: .7
            }

            h2 {
                margin: 0;
                font-family: var(--disp);
                font-weight: 500;
                font-size: clamp(32px,9vw,40px);
                line-height: 1.1;
                color: var(--accent);
                text-wrap: balance
            }

            #s-date [data-k="saveH"] {
                font-size: clamp(24px,6.75vw,30px)
            }

            #programme .eyebrow {
                font-family: var(--disp);
                font-size: clamp(32px,9vw,40px);
                font-weight: 400;
                letter-spacing: normal;
                text-transform: none;
                white-space: nowrap;
                color: var(--soft)
            }

            #programme h2 {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 8px 18px;
                border-radius: 999px;
                background: #8d2128;
                color: #fff;
                font-family: var(--body);
                font-size: 11px;
                font-weight: 600;
                line-height: 1.4;
                letter-spacing: .18em;
                text-transform: uppercase
            }

            .ur-on #programme h2 {
                font-family: var(--urdu);
                font-size: 13px;
                letter-spacing: 0;
                text-transform: none
            }

            .h-ur {
                font-family: var(--urdu);
                font-size: 16px;
                line-height: 1.9;
                color: var(--soft);
                direction: rtl;
                margin-top: -10px
            }

            .lead {
                margin: 0;
                max-width: 32ch;
                color: var(--soft)
            }

            /* save the date scratch */
            .scratch {
                -webkit-user-select: none;
                user-select: none;
                position: relative;
                width: min(280px,74vw);
                aspect-ratio: 1;
                touch-action: none
            }

            .scratch .under {
                position: absolute;
                inset: 0;
                display: grid;
                place-items: center;
                align-content: center;
                justify-self: center;
                width: 100%;
                padding: 0 18%;
                clip-path: polygon(7% 7%,93% 7%,93% 93%,7% 93%);
                gap: 0;
                text-align: center
            }

            .scratch .under small {
                font-family: var(--script);
                font-size: clamp(36px,10vw,44px);
                font-weight: 400;
                line-height: 1;
                letter-spacing: .02em;
                text-transform: none;
                color: #8a1c24
            }

            .scratch .under .dow {
                font-family: var(--disp);
                font-style: italic;
                font-size: 20px;
                color: #7c5a22
            }

            .scratch .under b {
                font-family: var(--disp);
                font-weight: 500;
                font-size: clamp(52px,18vw,68px);
                line-height: .95;
                color: #8a1c24
            }

            .scratch .under .my {
                font-family: var(--disp);
                font-size: 14px;
                line-height: 1.2;
                letter-spacing: .06em;
                color: #3b2b28
            }

            .scratch .under .hj {
                font-size: 11px;
                line-height: 1.35;
                color: #3b2b28;
                opacity: .8;
                margin-top: 4px
            }

            .scratch canvas {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                cursor: grab;
                transition: opacity .9s
            }

            .scratch.done canvas {
                opacity: 0;
                pointer-events: none
            }

            .hint {
                font-size: 10px;
                letter-spacing: .26em;
                text-transform: uppercase;
                color: var(--soft)
            }

            .pill {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                min-height: 44px;
                padding: 0 22px;
                border-radius: 999px;
                border: none;
                background: var(--accent);
                color: #fff;
                font-size: 11px;
                font-weight: 600;
                letter-spacing: .18em;
                text-transform: uppercase;
                text-decoration: none;
                cursor: pointer
            }

            .pill.line {
                background: transparent;
                color: var(--accent);
                box-shadow: inset 0 0 0 1px var(--accent)
            }

            .ur-on .pill {
                letter-spacing: 0;
                text-transform: none;
                font-family: var(--urdu);
                font-size: 13px
            }

            /* ayah */
            .ayah-ar {
                font-family: var(--arabic);
                font-size: 22px;
                line-height: 2;
                color: var(--ink);
                direction: rtl;
                max-width: 30ch
            }

            .ayah-en {
                font-family: var(--disp);
                font-style: italic;
                font-size: 18px;
                line-height: 1.55;
                color: var(--soft);
                max-width: 30ch
            }

            .ayah-ur {
                font-family: var(--urdu);
                font-size: 15px;
                line-height: 2.2;
                color: var(--soft);
                direction: rtl;
                max-width: 30ch
            }

            .ref {
                font-size: 9.5px;
                font-weight: 500;
                letter-spacing: .32em;
                text-transform: uppercase;
                color: var(--accent)
            }

            /* countdown */
            .cd {
                display: grid;
                grid-template-columns: repeat(4,1fr);
                gap: 8px;
                width: 100%;
                max-width: 340px;
                direction: ltr
            }

            .cd div {
                display: grid;
                gap: 2px;
                padding: 14px 4px;
                border-radius: 14px;
                background: var(--paper2);
                box-shadow: inset 0 0 0 1px var(--line)
            }

            .cd b {
                font-family: var(--disp);
                font-weight: 500;
                font-size: 30px;
                line-height: 1;
                color: var(--accent);
                font-variant-numeric: tabular-nums
            }

            .cd small {
                font-size: 9px;
                letter-spacing: .24em;
                text-transform: uppercase;
                color: var(--soft)
            }

            /* story */
            .story {
                display: grid;
                gap: 0;
                width: 100%;
                max-width: 340px;
                text-align: left
            }

            .ur-on .story {
                text-align: right
            }

            .story div {
                position: relative;
                padding: 0 0 26px 26px;
                border-left: 1px solid var(--gold)
            }

            .ur-on .story div {
                padding: 0 26px 26px 0;
                border-left: none;
                border-right: 1px solid var(--gold)
            }

            .story div:last-child {
                padding-bottom: 0
            }

            .story div::before {
                content: "";
                position: absolute;
                left: -5px;
                top: 7px;
                width: 9px;
                height: 9px;
                border-radius: 50%;
                background: var(--paper);
                box-shadow: 0 0 0 1.5px var(--gold)
            }

            .ur-on .story div::before {
                left: auto;
                right: -5px
            }

            .story small {
                font-size: 10px;
                font-weight: 500;
                letter-spacing: .26em;
                text-transform: uppercase;
                color: var(--accent)
            }

            .story b {
                display: block;
                font-family: var(--disp);
                font-weight: 500;
                font-size: 22px;
                line-height: 1.25
            }

            .story p {
                margin: 4px 0 0;
                font-size: 14.5px;
                color: var(--soft)
            }

            /* functions */
            .fns {
                display: grid;
                gap: 26px;
                width: 100%
            }

            .fn {
                display: grid;
                gap: 0;
                border-radius: 18px;
                overflow: hidden;
                background: var(--paper2);
                box-shadow: 0 0 0 1px var(--line),0 14px 30px rgba(40,30,20,.08);
                text-align: center
            }

            .fn img {
                width: 100%;
                aspect-ratio: 4/3;
                object-fit: cover
            }

            .fn .in {
                display: grid;
                gap: 4px;
                padding: 20px 18px 22px
            }

            .fn .no {
                font-size: 9.5px;
                font-weight: 500;
                letter-spacing: .3em;
                text-transform: uppercase;
                color: var(--soft)
            }

            .fn .urn {
                font-family: var(--urdu);
                font-size: 20px;
                line-height: 1.8;
                color: var(--accent)
            }

            .fn h3 {
                margin: 0;
                font-family: var(--disp);
                font-weight: 500;
                font-size: 30px;
                line-height: 1.1
            }

            .fn .when {
                font-size: 14.5px
            }

            .fn .where {
                font-size: 11px;
                font-weight: 500;
                letter-spacing: .18em;
                text-transform: uppercase;
                color: var(--soft)
            }

            .fn .dress-code {
                display: grid;
                gap: 4px;
                margin-top: 8px;
                padding-top: 10px;
                border-top: 1px solid var(--line);
                font-size: 13px;
                line-height: 1.45;
                color: var(--soft)
            }

            .fn .dress-code b {
                color: var(--ink);
                font-weight: 600
            }

            /* gallery */
            .gal {
                display: flex;
                gap: 12px;
                width: calc(100% + 52px);
                margin: 0 -26px;
                padding: 0 26px 6px;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                scrollbar-width: none
            }

            .gal::-webkit-scrollbar {
                display: none
            }

            .gal figure {
                flex: 0 0 72%;
                margin: 0;
                scroll-snap-align: center;
                display: grid;
                gap: 8px
            }

            .gal img {
                width: 100%;
                aspect-ratio: 3/4;
                object-fit: cover;
                border-radius: 14px
            }

            .gal figcaption {
                font-family: var(--disp);
                font-style: italic;
                font-size: 15px;
                color: var(--soft)
            }

            /* venues */
            .tabs {
                display: flex;
                gap: 6px;
                flex-wrap: wrap;
                justify-content: center
            }

            .tabs button {
                border: none;
                background: none;
                padding: 9px 14px;
                border-radius: 999px;
                font-size: 10.5px;
                font-weight: 500;
                letter-spacing: .2em;
                text-transform: uppercase;
                color: var(--soft);
                cursor: pointer;
                box-shadow: inset 0 0 0 1px var(--line)
            }

            .tabs button[aria-selected="true"] {
                background: var(--accent);
                color: #fff;
                box-shadow: none
            }

            .venue {
                display: grid;
                gap: 6px;
                width: 100%;
                max-width: 340px;
                padding: 24px 20px;
                border-radius: 18px;
                background: var(--paper2);
                box-shadow: inset 0 0 0 1px var(--line)
            }

            .venue b {
                font-family: var(--disp);
                font-weight: 500;
                font-size: 26px;
                line-height: 1.2
            }

            .venue .vw {
                font-size: 10.5px;
                font-weight: 500;
                letter-spacing: .2em;
                text-transform: uppercase;
                color: var(--accent)
            }

            .venue .va {
                font-size: 14px;
                color: var(--soft)
            }

            .venue .acts {
                display: flex;
                gap: 8px;
                justify-content: center;
                flex-wrap: wrap;
                margin-top: 10px
            }

            /* details */
            .det {
                display: grid;
                gap: 10px;
                width: 100%;
                max-width: 360px;
                text-align: left
            }

            .ur-on .det {
                text-align: right
            }

            .det div {
                display: grid;
                grid-template-columns: 92px 1fr;
                gap: 12px;
                padding: 14px 16px;
                border-radius: 14px;
                background: var(--paper2);
                box-shadow: inset 0 0 0 1px var(--line)
            }

            .ur-on .det div {
                grid-template-columns: 1fr 92px
            }

            .ur-on .det small {
                order: 2
            }

            .det small {
                font-size: 10px;
                font-weight: 500;
                letter-spacing: .24em;
                text-transform: uppercase;
                color: var(--accent);
                padding-top: 3px
            }

            .det span {
                font-size: 14px
            }

            /* rsvp + guestbook */
            form {
                display: grid;
                gap: 16px;
                width: 100%;
                max-width: 360px;
                text-align: left
            }

            .ur-on form {
                text-align: right
            }

            .fl {
                display: grid;
                gap: 8px;
                font-size: 10px;
                font-weight: 500;
                letter-spacing: .26em;
                text-transform: uppercase;
                color: var(--soft)
            }

            input[type=text],textarea {
                font: inherit;
                font-size: 16px;
                color: var(--ink);
                background: transparent;
                border: none;
                border-bottom: 1px solid #8d2128;
                border-radius: 0;
                padding: 10px 2px;
                width: 100%;
                resize: none
            }

            input::placeholder,textarea::placeholder {
                color: var(--soft);
                opacity: .55
            }

            .opts {
                display: flex;
                gap: 8px;
                flex-wrap: wrap
            }

            .opt {
                position: relative
            }

            .opt input {
                position: absolute;
                inset: 0;
                opacity: 0;
                margin: 0;
                cursor: pointer
            }

            .opt span {
                display: block;
                padding: 10px 14px;
                border-radius: 999px;
                font-size: 13px;
                letter-spacing: 0;
                text-transform: none;
                color: var(--ink);
                box-shadow: inset 0 0 0 1px var(--line);
                background: var(--paper)
            }

            .opt input:checked + span {
                background: var(--accent);
                color: #fff;
                box-shadow: none
            }

            .opt input:focus-visible + span {
                outline: 2px solid var(--gold);
                outline-offset: 2px
            }

            .step {
                display: flex;
                align-items: center;
                gap: 16px;
                direction: ltr
            }

            .step button {
                width: 38px;
                height: 38px;
                border-radius: 50%;
                border: none;
                background: var(--paper);
                box-shadow: inset 0 0 0 1px var(--line);
                font-size: 18px;
                cursor: pointer
            }

            .step output {
                font-family: var(--disp);
                font-size: 26px;
                min-width: 26px;
                text-align: center;
                color: var(--ink)
            }

            .thanks {
                display: grid;
                gap: 6px;
                justify-items: center;
                padding: 26px 20px;
                border-radius: 18px;
                background: var(--paper2);
                box-shadow: inset 0 0 0 1px var(--line);
                width: 100%;
                max-width: 360px
            }

            .thanks b {
                font-family: var(--script);
                font-weight: 400;
                font-size: 52px;
                line-height: 1;
                color: var(--accent)
            }

            .wishes {
                display: grid;
                gap: 10px;
                width: 100%;
                max-width: 360px;
                text-align: left
            }

            .ur-on .wishes {
                text-align: right
            }

            .wish {
                padding: 14px 16px;
                border-radius: 14px;
                background: var(--paper2);
                box-shadow: inset 0 0 0 1px var(--line)
            }

            .wish p {
                margin: 0 0 4px;
                font-family: var(--disp);
                font-style: italic;
                font-size: 17px;
                line-height: 1.45
            }

            .wish .u {
                font-family: var(--urdu);
                font-style: normal;
                font-size: 15px;
                line-height: 2;
                direction: rtl;
                text-align: right
            }

            .wish small {
                font-size: 9.5px;
                font-weight: 500;
                letter-spacing: .22em;
                text-transform: uppercase;
                color: var(--accent)
            }

            /* closing */
            .closing {
                position: relative;
                padding: 64px 26px calc(70px + env(safe-area-inset-bottom,0px));
                text-align: center;
                display: grid;
                gap: 10px;
                justify-items: center;
                background: var(--night);
                color: #f4ead6
            }

            .closing .ur {
                font-family: var(--urdu);
                font-size: 22px;
                line-height: 2;
                direction: rtl;
                color: var(--gold)
            }

            .closing .en {
                font-family: var(--disp);
                font-style: italic;
                font-size: 18px
            }

            .closing small {
                margin-top: 18px;
                font-size: 11.4px;
                letter-spacing: .32em;
                text-transform: uppercase;
                color: rgba(244,234,214,.6)
            }

            .closing .fam {
                font-family: var(--disp);
                font-size: 19.2px;
                letter-spacing: .14em;
                text-transform: uppercase
            }

            .closing .sig {
                font-family: var(--script);
                font-size: 44px;
                line-height: 1.1;
                color: #fff8e8;
                margin-top: 18px
            }

            /* families */
            .fam2 {
                display: grid;
                gap: 18px;
                justify-items: center;
                width: 100%;
                max-width: 340px
            }

            .fam2 .p {
                display: grid;
                gap: 2px
            }

            .fam2 .rel {
                font-size: 10px;
                font-weight: 500;
                letter-spacing: .26em;
                text-transform: uppercase;
                color: var(--soft)
            }

            .fam2 b {
                font-family: var(--script);
                font-weight: 400;
                font-size: 44px;
                line-height: 1.15;
                color: var(--accent)
            }

            .fam2 .par {
                font-family: var(--disp);
                font-size: 18px;
                line-height: 1.35
            }

            .fam2 .and {
                font-family: var(--disp);
                font-style: italic;
                font-size: 22px;
                color: var(--gold)
            }

            /* program */
            .prog {
                display: grid;
                width: 100%;
                max-width: 340px;
                direction: ltr
            }

            .prog-repeat {
                display: grid;
                justify-items: center;
                gap: 18px;
                width: 100%;
                margin-top: 16px
            }

            .prog div {
                display: grid;
                grid-template-columns: 78px 18px 1fr;
                align-items: start;
                text-align: left;
                min-height: 62px
            }

            .prog time {
                font-family: var(--disp);
                font-size: 18px;
                color: var(--accent);
                text-align: right;
                padding-top: 1px
            }

            .prog i {
                position: relative;
                justify-self: center;
                width: 1px;
                height: 100%;
                background: var(--line)
            }

            .prog i::before {
                content: "";
                position: absolute;
                left: -4px;
                top: 8px;
                width: 9px;
                height: 9px;
                border-radius: 50%;
                background: var(--gold)
            }

            .prog div:last-child i {
                background: transparent
            }

            .prog span {
                font-size: 14.5px;
                padding-left: 4px
            }

            .ur-on .prog span {
                direction: rtl;
                text-align: right
            }

            /* fabs */
            .fabs {
                position: fixed;
                z-index: 40;
                right: max(14px, env(safe-area-inset-right, 0px));
                bottom: calc(env(safe-area-inset-bottom,0px) + 16px);
                display: grid;
                gap: 8px
            }

            .fab {
                width: 44px;
                height: 44px;
                border-radius: 50%;
                border: none;
                background: rgba(20,14,10,.62);
                color: #f6ecd9;
                -webkit-backdrop-filter: blur(8px);
                backdrop-filter: blur(8px);
                cursor: pointer;
                display: grid;
                place-items: center;
                font-size: 14px;
                box-shadow: 0 6px 16px rgba(0,0,0,.2)
            }

            .fab.ur {
                font-family: var(--urdu);
                font-size: 13px;
                line-height: 1
            }

            .fab svg {
                width: 18px;
                height: 18px
            }

            .fab.muted .on,.fab:not(.muted) .off {
                display: none
            }

            body.locked .fabs {
                display: none
            }

            #fx {
                position: fixed;
                inset: 0;
                z-index: 60;
                pointer-events: none;
                width: 100%;
                height: 100%
            }

            .reveal {
                transition: opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)
            }

            .reveal.pre {
                opacity: 0;
                transform: translateY(22px)
            }

            @media (prefers-reduced-motion:reduce) {
                * {
                    animation: none!important;
                    transition: none!important
                }
            }

            #entrance {
                background: transparent
            }

            #entrance .stage {
                perspective: 1500px;
                perspective-origin: 50% 20%
            }

            #entrance .stage img.lowerp {
                top: 47.02%!important;
                height: 52.98%!important;
                bottom: auto!important;
                transition: transform 1.6s cubic-bezier(.6,0,.3,1) .5s
            }

            .flapx {
                position: absolute;
                left: 0;
                right: 0;
                top: 0;
                height: 47.02%;
                transform-origin: 50% 0;
                transform-style: preserve-3d;
                transition: transform 2.2s cubic-bezier(.5,0,.2,1) .15s;
                z-index: 2
            }

            .flapx .face {
                position: absolute;
                inset: 0;
                backface-visibility: hidden;
                -webkit-backface-visibility: hidden
            }

            .flapx .front {
                background: url(../img/flap.webp) 0 0/100% 100%;
                box-shadow: 0 10px 18px -8px rgba(0,20,10,.55)
            }

            .flapx .front::after {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(rgba(0,25,12,0),rgba(0,25,12,.45));
                opacity: 0;
                transition: opacity 1.4s
            }

            .flapx .back {
                transform: rotateX(180deg);
                background: #e8eee0 url(../img/paper.webp) 50%/300px;
                box-shadow: inset 0 0 50px rgba(30,60,40,.2)
            }

            #entrance.opening .flapx {
                transform: rotateX(165deg)
            }

            #entrance.opening .flapx .front::after {
                opacity: 1
            }

            #entrance.opening img.lowerp {
                transform: translateY(105%)
            }

            .seal {
                position: absolute;
                z-index: 3;
                pointer-events: none
            }

            .seal .sh {
                position: absolute;
                inset: 0;
                background: url(../img/seal.webp) 0 0/100% 100%;
                transition: transform 1.1s cubic-bezier(.3,.1,.5,1),opacity .9s ease .35s;
                filter: drop-shadow(0 4px 5px rgba(0,0,0,.35))
            }

            .seal .sh.a {
                clip-path: polygon(0 0,52% 0,47% 18%,55% 34%,44% 52%,53% 70%,46% 86%,50% 100%,0 100%)
            }

            .seal .sh.b {
                clip-path: polygon(52% 0,100% 0,100% 100%,50% 100%,46% 86%,53% 70%,44% 52%,55% 34%,47% 18%)
            }

            .seal.press .sh {
                transform: scale(.96)
            }

            .seal.broken .sh.a {
                transform: translate(-38%,190%) rotate(-38deg);
                opacity: 0
            }

            .seal.broken .sh.b {
                transform: translate(42%,205%) rotate(31deg);
                opacity: 0
            }

            .seal .ring {
                position: absolute;
                inset: -14%;
                width: 128%;
                height: 128%;
                transform: rotate(-90deg);
                overflow: visible
            }

            .seal .ring circle {
                fill: none;
                stroke: #e9cf8f;
                stroke-width: 2.2;
                stroke-linecap: round;
                stroke-dasharray: 100;
                stroke-dashoffset: 100;
                opacity: .95;
                filter: drop-shadow(0 0 3px rgba(255,220,140,.8))
            }

            .seal:not(.press):not(.broken) .ring circle {
                stroke-dasharray: 3 6;
                stroke-dashoffset: 0;
                opacity: .55;
                animation: spin 14s linear infinite;
                transform-origin: 50% 50%
            }

            @keyframes spin {
                to {
                    transform: rotate(360deg)
                }
            }

            .seal.broken .ring {
                opacity: 0;
                transition: opacity .3s
            }

            .seal-hit {
                position: absolute;
                z-index: 4;
                background: none;
                border: none;
                border-radius: 50%;
                cursor: pointer;
                touch-action: none;
                -webkit-tap-highlight-color: transparent;
                -webkit-user-select: none;
                user-select: none;
                -webkit-touch-callout: none
            }

            .ent-text {
                top: 61%;
                bottom: auto;
                left: 50%;
                right: auto;
                width: min(88%,330px);
                transform: translateX(-50%);
                color: #ecd394;
                gap: 5px;
                padding: 10px 14px 12px;
                border: 1px solid rgba(230,207,151,.58);
                border-radius: 16px;
                background: rgba(32,12,11,.76);
                box-shadow: 0 6px 20px rgba(0,0,0,.24);
                text-shadow: 0 2px 10px rgba(0,25,12,.7)
            }

            .ent-text .line {
                font-family: var(--script);
                font-style: normal;
                font-size: clamp(36px,10vw,46px);
                line-height: .9
            }

            .ent-text .hint {
                color: #e6cf97;
                font-size: 9px;
                letter-spacing: .2em
            }

            .ent-text .tick {
                display: none
            }

            .ent-prog {
                display: none
            }

            .ent-skip {
                color: rgba(236,211,148,.6)
            }

            #entrance.opening .ent-text,#entrance.opening .ent-skip {
                opacity: 0;
                transition: opacity .4s
            }

            .poster {
                color: var(--ink)
            }

            .pstage::before {
                background: radial-gradient(ellipse 46% 24% at 50% 23%,rgba(255,246,232,.55),rgba(255,246,232,0) 100%)
            }

            .poster .pt {
                gap: .4cqw
            }

            .poster .ar {
                font-size: 4.08cqw;
                color: #7c5a22
            }

            .poster .tw {
                color: #2c3d30;
                font-size: 1.9cqw;
                letter-spacing: .3em;
                margin-top: 1cqw
            }

            .poster .nm {
                color: #8a1c24;
                font-size: 14cqw;
                line-height: .95;
                text-shadow: 0 0 3cqw rgba(255,246,232,.9);
                margin-top: 1cqw
            }

            .poster .am {
                color: #7c5a22;
                font-size: 4.4cqw;
                font-family: var(--disp)
            }

            .poster .rule {
                width: 12cqw;
                margin: 1.4cqw 0 .8cqw;
                background: linear-gradient(90deg,transparent,#a8843f,transparent)
            }

            .poster .dt {
                font-size: 3cqw;
                letter-spacing: .24em;
                color: #1f3328
            }

            .poster .pl {
                color: #2c3d30;
                font-size: 2.1cqw
            }

            .next {
                color: var(--ink);
                background: rgba(255,250,240,.8);
                padding: 8px 16px 6px;
                border-radius: 999px;
                -webkit-backdrop-filter: blur(6px);
                backdrop-filter: blur(6px)
            }

            .closing {
                background: #F2E6CF url(../img/paper.webp) 50%/360px;
                background-blend-mode: multiply;
                color: #2d211c
            }

            .closing .ur {
                color: #54392f
            }

            .closing small {
                color: rgba(45,33,28,.8)
            }

            .closing .sig {
                color: #54392f
            }

            h2 {
                font-family: var(--disp);
                font-weight: 400
            }

            .fn h3,.venue b,.story b {
                font-family: var(--disp);
                font-weight: 400
            }

#rsvp .come {
                display: grid;
                justify-items: center;
                gap: 12px;
                text-align: center
            }

            #rsvp .come h2 {
                margin: 0
            }

            #rsvp .come p {
                margin: 0;
                opacity: .75;
                font-size: 14.5px
            }

            #rsvp .comebtn {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 15px 30px;
                border-radius: 999px;
                background: #2f2620;
                color: #fff8ec!important;
                text-decoration: none;
                font-size: 15px;
                letter-spacing: .04em;
                box-shadow: 0 10px 24px rgba(40,25,15,.18);
                transition: transform .2s
            }

            #rsvp .comebtn:active {
                transform: scale(.96)
            }

#guestbook {
                display: none
            }

            #savePhoneCal {
                display: none
            }

            #gallery {
                display: none
            }

            #story-section {
                display: none
            }

            #lang {
                display: none
            }

            #rsvp [data-k="rsvpEye"],
            #rsvp [data-k="rsvpH"],
            #rf {
                display: none
            }

            #saveCal,
            .tabs button[aria-selected="true"],
            .venue .acts a.pill:not(.line),
            #rsvp .comebtn,
            #rsvp .opt input:checked + span,
            #rsvp button[type="submit"] {
                background: #8d2128;
                color: #fff
            }

            .venue .acts a.pill:not(.line) {
                box-shadow: none
            }

            #rsvp .comebtn {
                color: #fff8ec!important
            }

            @media (min-width: 600px) and (orientation:portrait) {
                .poster,.paper,#bgv,.page,.bar .in {
                    max-width:100%!important
                }

                .poster,.paper {
                    width:min(100%,calc(100svh * 752 / 1344));
                    max-width:none!important
                }

                #entrance .stage {
                    width: calc(100svh * 752 / 1344)
                }
            }

            @media (min-width: 900px) and (orientation:landscape) {
                .poster,.paper,#bgv,.page,.bar .in {
                    max-width:620px!important
                }

                .poster,.paper {
                    width:min(100%,620px,calc(100svh * 752 / 1344))
                }

                #entrance .stage {
                    width: calc(100svh * 752 / 1344)
                }
            }
