/*! © 2026 Dastan Invites, dastaninvites.com. All rights reserved. This invitation's design, code, artwork and music may not be copied, reused or resold. */

@property --wipe {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 130%;
}

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 420px;
    overflow: hidden;
    container-type: size;
    background: var(--emerald-night);
    isolation: isolate;
    -webkit-tap-highlight-color: transparent
}

.h-scene {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100cqw, 100cqh * var(--hall-r));
    height: max(100cqh, 100cqw / var(--hall-r));
    translate: -50% -50%;
    transform-origin: 50% calc(var(--arch-t) / 2 + var(--arch-b) / 2)
}

.h-hall,
.h-warm,
.h-glow,
.h-glints {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.h-hall {
    background-color: var(--emerald-deep);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat
}

.h-warm {
    mix-blend-mode: screen
}

.h-glow {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mix-blend-mode: screen
}

.h-light {
    --r: 30vmax;
    position: absolute;
    left: 50%;
    top: 42%;
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
    border-radius: 50%;
    will-change: transform;
    pointer-events: none
}

.h-warm .h-light {
    --r: 51vmax;
    background: radial-gradient(circle closest-side, rgba(255, 190, 110, .26), rgba(255, 170, 90, .09) 42%, transparent 72%)
}

.h-glow .h-light {
    background: radial-gradient(circle closest-side, rgb(255, 250, 236), rgba(255, 232, 180, .62) 24%, rgba(255, 212, 150, .18) 55%, transparent 80%)
}

.h-glints {
    mix-blend-mode: screen
}

.h-words {
    position: absolute;
    left: var(--arch-l);
    right: calc(100% - var(--arch-r));
    top: calc(var(--arch-t) + (var(--arch-s) - var(--arch-t)) * .2);
    bottom: calc(100% - var(--arch-b) + (var(--arch-b) - var(--arch-s)) * .08);
    container-type: size;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.h-words>* {
    margin: 0
}

.h-bism {
    --bism-w: min(62cqw, 40cqh);
    font-family: Amiri, serif;
    font-size: calc(var(--bism-w) / 11.4);
    line-height: 1.7;
    white-space: nowrap;
    padding: 0 .3em;
    background: linear-gradient(180deg, #f6e2ac, #d8b56c, #a8823f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5))
}

.h-kicker {
    margin-top: auto !important;
    font: 600 min(3.6cqw, 2.7cqh)/1.35 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .2em;
    padding-left: .2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5)
}

.h-names {
    margin: min(3cqw, 2.2cqh) 0 min(2cqw, 1.4cqh) !important;
    font: 400 1em/.94 Alex Brush, cursive;
    width: 100%
}

.h-name,
.h-amp {
    display: block;
    width: fit-content;
    max-width: none;
    margin-inline: auto;
    padding: .06em .3em .14em;
    background: radial-gradient(circle var(--hr, 1.15em) at var(--hx, 50%) var(--hy, -300%), #fff, rgba(255, 250, 228, .85) 18%, rgba(255, 236, 188, .3) 48%, transparent 76%), linear-gradient(180deg, rgba(255, 244, 214, .3), transparent 36%, transparent 60%, rgba(60, 34, 6, .34)), url(../assets/hero/gold.webp) 0 0 / 4.5em 4.5em;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--wipe) - 18%), transparent var(--wipe));
    mask-image: linear-gradient(90deg, #000 calc(var(--wipe) - 18%), transparent var(--wipe));
    filter: drop-shadow(0 .03em .025em rgba(0, 0, 0, .55));
    white-space: nowrap
}

.h-name {
    font-size: calc(min(27cqw, 16cqh) * var(--fit, 1))
}

.h-name.is-wrapped {
    white-space: normal;
    max-width: 100%;
    text-wrap: balance
}

.h-amp {
    font-size: min(16cqw, 9cqh);
    margin-block: -.14em -.1em
}

.h-line {
    margin-bottom: auto !important;
    max-width: 86cqw;
    font: italic 500 min(6.6cqw, 4.7cqh)/1.3 "Cormorant Garamond", Georgia, serif;
    color: #f5efe2e6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    text-wrap: balance
}

html:not(.is-revealed) .h-words>* {
    opacity: 0
}

.h-scroll {
    position: absolute;
    left: 50%;
    bottom: max(16px, 3cqh);
    translate: -50% 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s
}

.h-scroll i {
    width: 11px;
    height: 11px;
    border-right: 1.5px solid var(--gold-soft);
    border-bottom: 1.5px solid var(--gold-soft);
    rotate: 45deg;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6));
    animation: h-bob 2.4s ease-in-out infinite
}

html.is-open .h-scroll {
    opacity: .85;
    transition: opacity 1.2s 2.2s
}

@keyframes h-bob {
    0%,
    to {
        translate: 0 -3px
    }
    50% {
        translate: 0 3px
    }
}

@media(prefers-reduced-motion:reduce) {
    .h-scroll i {
        animation: none
    }
}