#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#intro-overlay.finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-button {
    position: relative;
    z-index: 3;
    min-width: 150px;
    height: 52px;
    padding: 0 28px;
    background: #050505;
    border: 2px solid #fff;
    color: #fff;
    font-family: "AndyB", Arial, sans-serif;
    font-size: 22px;
    cursor: pointer;
}

#intro-button:hover {
    color: #ff72cf;
    border-color: #ff72cf;
}

#intro-button.hidden {
    display: none;
}

#intro-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#intro-video.active {
    display: block;
}

#intro-sweep {
    position: absolute;
    z-index: 4;
    top: -50%;
    left: -40%;
    width: 32px;
    height: 200%;
    background: #ff72cf;
    box-shadow:
        0 0 8px #fff,
        0 0 20px #ff72cf,
        0 0 45px rgba(255, 114, 207, 0.9);
    transform: rotate(25deg);
    opacity: 0;
    pointer-events: none;
}

#intro-overlay.sweeping #intro-sweep {
    animation: sweep-across 1.1s ease-in-out forwards;
}

#intro-overlay.sweeping {
    animation: reveal-website 1.1s ease-in-out forwards;
}

@keyframes sweep-across {
    0% {
        left: -40%;
        opacity: 1;
    }

    100% {
        left: 140%;
        opacity: 1;
    }
}

@keyframes reveal-website {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    100% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
}
