/* --- FONTS & IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;700;800&display=swap');

/* --- CORE LAYOUT --- */
html {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* Critical */
}

body {
    height: 100%;
    width: 100%;
    margin: 0; 
    padding: 0;
    background-color: #030303; /* Deepest black for contrast */
    cursor: none; 
    font-family: 'Inter', sans-serif;
    color: #e0e0e0; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Double safety */
}

/* --- CUSTOM SCROLLBAR (BRUTAL MINIMALISM) --- */
/* This prevents the default chunky scrollbar from ruining the aesthetic */
::-webkit-scrollbar {
    width: 6px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* LENIS RECOMMENDED CSS */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* --- GRAIN OVERLAY (Active Cinematic Texture) --- */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9000;
    pointer-events: none;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.07"/%3E%3C/svg%3E');
    background-repeat: repeat;
    animation: noiseAnimation 0.2s infinite;
    mix-blend-mode: overlay;
    opacity: 0.6;
}

@keyframes noiseAnimation {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

/* Selection Color */
::selection {
    background: #7c59f0;
    color: #fff;
}