*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Lenis handles this */
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-b);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Kill default cursor on desktop — our custom one takes over */
@media (pointer: fine) {

    body,
    a,
    button {
        cursor: none;
    }
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    font-family: inherit;
}

/* Grain overlay — sits above everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.042;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px;
    animation: grain 0.4s steps(1) infinite;
}

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

    10% {
        background-position: -5% -10%;
    }

    20% {
        background-position: -15% 5%;
    }

    30% {
        background-position: 7% -25%;
    }

    40% {
        background-position: 20% 25%;
    }

    50% {
        background-position: -25% 10%;
    }

    60% {
        background-position: 15% 5%;
    }

    70% {
        background-position: 0% 15%;
    }

    80% {
        background-position: 25% 35%;
    }

    90% {
        background-position: -10% 10%;
    }
}

/* Shared section styles */
.section {
    padding: var(--s-xl) var(--s-md);
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 700;
}

.two-col {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Shared tag pill */
.tag {
    font-size: 0.57rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    color: var(--gray-mid);
    background: var(--glass);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}