@font-face {
    font-family: "Inter Display";
    src: url("../fonts/inter-display-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    background: #0d0720;
}

.intro {
    display: none;
}

main {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.has-intro .intro {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, #1f0d36 0%, #120a24 45%, #07040f 100%);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.6s;
}

.has-intro.intro-done .intro {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-sign {
    display: flex;
    align-items: center;
    gap: 0.35em;
    font-family: "Inter Display", "Inter", system-ui, sans-serif;
    font-size: clamp(2.35rem, 1.45rem + 3.9vw, 3.9rem);
}

.intro-logo {
    width: 1.3em;
    max-width: 128px;
    height: auto;
}

.intro-clip {
    display: block;
    overflow: hidden;
    padding-block: 0.06em;
}

.intro-word {
    display: block;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.045em;
    color: transparent;
    background: linear-gradient(100deg, #ffffff 0%, #ffffff 40%, #ffd08a 50%, #ffffff 60%, #ffffff 100%) 120% 0 / 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.intro-rule {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(56vw, 25rem);
    height: 1px;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    background: linear-gradient(90deg, rgba(255, 138, 61, 0), #ff8a3d 30%, #ff4f8b 70%, rgba(255, 79, 139, 0));
    transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
    .has-intro .intro-logo {
        animation: intro-logo 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .has-intro .intro-word {
        animation: intro-word 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both, intro-sheen 0.9s ease 0.55s both;
    }

    .has-intro .intro-rule {
        animation: intro-rule 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
    }

    .has-intro.intro-done .intro-sign,
    .has-intro.intro-done .intro-rule {
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .has-intro.intro-done .intro-rule {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes intro-logo {
    from {
        opacity: 0;
        transform: rotate(-12deg) scale(0.8);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes intro-word {
    from {
        transform: translateY(105%);
    }

    to {
        transform: none;
    }
}

@keyframes intro-sheen {
    from {
        background-position: 120% 0;
    }

    to {
        background-position: -20% 0;
    }
}

@keyframes intro-rule {
    from {
        transform: translateX(-50%) scaleX(0);
    }

    to {
        transform: translateX(-50%) scaleX(1);
    }
}
