/*! © 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: true;
    initial-value: 118%;
}

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

.h-scene {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100cqw, 100cqh * var(--hero-r));
    aspect-ratio: var(--hero-r);
    translate: -50% -50%
}

.h-court,
.h-sparks,
.h-birds {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.h-court {
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat
}

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

.h-birds {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%
}

.h-words {
    position: absolute;
    left: var(--w-l);
    right: calc(100% - var(--w-r));
    top: var(--w-t);
    bottom: calc(100% - var(--w-b));
    container-type: size;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center
}

.h-words:before {
    content: "";
    position: absolute;
    inset: -4% -8% -6%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 249, 238, .66), rgba(255, 247, 234, .4) 55%, rgba(255, 246, 232, .12) 82%, transparent);
    pointer-events: none
}

.h-words>* {
    margin: 0;
    position: relative
}

.h-names {
    margin: 0 !important;
    font: 400 1em/.95 Great Vibes, cursive;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center
}

.h-name {
    position: relative;
    display: block;
    width: fit-content;
    padding: .02em .22em .12em;
    white-space: nowrap;
    font-size: calc(min(25cqw, 40cqh) * var(--fit, 1))
}

.h-name>span {
    display: block
}

.h-clay {
    color: #e9d8bc;
    text-shadow: 0 .015em 0 rgba(255, 255, 255, .75), 0 .03em .04em rgba(110, 70, 36, .45)
}

.h-glz,
.h-wet {
    position: absolute;
    inset: 0;
    padding: inherit;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--wipe) - 16%), transparent var(--wipe));
    mask-image: linear-gradient(90deg, #000 calc(var(--wipe) - 16%), transparent var(--wipe))
}

.h-wet {
    background: linear-gradient(90deg, transparent calc(var(--wipe) - 13%), rgba(255, 255, 255, .85) calc(var(--wipe) - 5%), rgba(220, 235, 255, .4) calc(var(--wipe) - 1%), transparent var(--wipe));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0
}

.h-amp {
    font-size: calc(min(10.5cqw, 17cqh) * var(--fit, 1));
    line-height: .8;
    padding: 0 .2em .08em;
    margin-block: -.34em -.28em
}

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

.h-fly {
    position: absolute;
    left: 50%;
    bottom: calc(max(14px, 2.4cqh) + 40px);
    translate: -50% 0;
    padding: .66em 1.3em .6em;
    border: 0;
    border-radius: 99px;
    white-space: nowrap;
    font: 700 13px/1 Cormorant Garamond, Georgia, serif;
    letter-spacing: .2em;
    text-indent: .2em;
    text-transform: uppercase;
    color: #fff6e2;
    background: #0e1e46b3;
    box-shadow: 0 0 0 1px #ffdc9673;
    cursor: pointer;
    opacity: 0
}

.h-fly:focus-visible {
    opacity: 1;
    outline: 2px solid #fff3d6;
    outline-offset: 3px
}

.h-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
}

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

.h-scroll i {
    width: 11px;
    height: 11px;
    border-right: 1.6px solid var(--cobalt);
    border-bottom: 1.6px solid var(--cobalt);
    rotate: 45deg;
    filter: drop-shadow(0 0 3px rgba(255, 248, 236, .9));
    animation: h-bob 2.4s ease-in-out infinite
}

.hero.is-ready .h-scroll {
    opacity: .9
}

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

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