html {
    overflow-x: clip;
}

html.menu-open {
    overflow: hidden;
}

body {
    cursor: none;
    background-color: #FFFDF5;
    background-image:
        radial-gradient(#000 1px, transparent 1px),
        linear-gradient(to right, #e5e5e5 1px, transparent 1px),
        linear-gradient(to bottom, #e5e5e5 1px, transparent 1px);
    background-size: 40px 40px, 100px 100px, 100px 100px;
    max-width: 100%;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
    overscroll-behavior: none;
}

#cursor {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s, border 0.2s, opacity 0.2s;
}

.marquee-container {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.marquee-container::-webkit-scrollbar {
    display: none;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.marquee-container:hover .marquee-content,
.animate-marquee:hover {
    animation-play-state: paused;
}

.marquee-content-reverse {
    display: inline-block;
    animation: scroll-reverse 20s linear infinite;
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: infinite-marquee 15s linear infinite;
    will-change: transform;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #FF2A2A;
}

.text-stroke-black {
    -webkit-text-stroke: 3px black;
    paint-order: stroke fill;
}

.mobile-menu-panel {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease;
}

.mobile-menu-panel[data-open="true"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.menu-plus {
    transition: transform 0.2s ease;
}

[data-menu-toggle][aria-expanded="true"] .menu-plus {
    transform: rotate(45deg);
}

#reports .marquee-content > div {
    width: min(85vw, 450px);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes infinite-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@media (max-width: 1023px) {
    body {
        cursor: auto;
    }

    #cursor {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body {
        background-size: 32px 32px, 72px 72px, 72px 72px;
    }

    .marquee-content {
        animation-duration: 26s;
    }

    .animate-marquee {
        animation-duration: 18s;
    }

    #reports .marquee-content {
        gap: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
