/* Intro Overlay Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 99999;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.intro-counter {
    font-family: 'Bitcount Single', 'DotGothic16', 'VT323', monospace;
    font-size: clamp(60px, 15vw, 150px);
    color: hwb(6 4% 8%);
    /* Matching red brand color */
    font-weight: 700;
    letter-spacing: -2px;
    filter: blur(0.5px);
    position: relative;
}

/* Scanline effect for the counter */
.intro-counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.3) 51%,
            transparent 51%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline 0.2s linear infinite;
}

.intro-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 4px;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exit Animation Classes */
.intro-exit {
    animation: slideUpReveal 1.2s cubic-bezier(0.83, 0, 0.17, 1) forwards;
}

@keyframes slideUpReveal {
    0% {
        transform: translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    100% {
        transform: translateY(-100%);
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
        /* Subtle slant reveal */
    }
}