/* ---------------------------------------------------------------------------
   GASLINE — tokens, reset, typography, global overlays
   Palette from the brand book: black, white, neon green #39FF14.
--------------------------------------------------------------------------- */

:root {
    /* brand */
    --acid: #39ff14;
    --acid-deep: #24ef00;
    --acid-soft: rgb(57 255 20 / 12%);
    --acid-line: rgb(57 255 20 / 38%);

    /* surfaces */
    --bg: #050705;
    --bg-2: #080b08;
    --bg-3: #0c100c;
    --glass: rgb(255 255 255 / 5%);
    --glass-2: rgb(255 255 255 / 9%);
    --line: rgb(255 255 255 / 13%);
    --line-2: rgb(255 255 255 / 22%);

    /* text */
    --fg: #f4f7f3;
    --fg-mute: #9aa39a; /* 7.8:1 on --bg */
    --fg-dim: #7a827a; /* 5.1:1 on --bg — below #6x it dropped past the AA minimum */

    /* shape */
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 8px;
    --pad: clamp(1.15rem, 4.5vw, 4.5rem);
    --maxw: 1320px;
    --nav-h: 68px;

    /* motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --dur: 0.55s;

    /* typography */
    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

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

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
    line-height: 1.62;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    /* layered background: green glow on top, saturated black towards the bottom */
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, rgb(57 255 20 / 7%), transparent 60%),
        radial-gradient(80% 60% at 100% 110%, rgb(57 255 20 / 4.5%), transparent 65%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--acid);
    color: #04120a;
}

/* --- scrollbar ---------------------------------------------------------- */
@supports selector(::-webkit-scrollbar) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #060806;
    }

    ::-webkit-scrollbar-thumb {
        background: #1b241b;
        border: 2px solid #060806;
        border-radius: 99px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--acid-deep);
    }
}

html {
    scrollbar-color: #1b241b #060806;
}

/* --- typography --------------------------------------------------------- */
.display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
}

h1,
h2,
h3 {
    font-weight: 400;
    line-height: 1.1;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--acid);
    margin-bottom: 1rem;
}

.kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: currentcolor;
    box-shadow: 0 0 12px var(--acid);
}

.lead {
    max-width: 58ch;
    color: var(--fg-mute);
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
}

.acid {
    color: var(--acid);
}

/* --- inline logo (brand-book SVGs carry these classes) ------------------ */
.gl-ink {
    fill: var(--logo-ink, #fff);
}

.gl-acid {
    fill: var(--logo-acid, var(--acid));
}

/* --- icons -------------------------------------------------------------- */
.icn {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

/* --- global overlays --------------------------------------------------- */
.skip {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--acid);
    color: #04120a;
    font-weight: 700;
    border-radius: var(--r-sm);
    transform: translateY(-160%);
    transition: transform 0.25s var(--ease);
}

.skip:focus-visible {
    transform: none;
}

.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 2px;
    background: rgb(255 255 255 / 6%);
    pointer-events: none;
}

.progress__bar {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--acid-deep), var(--acid));
    box-shadow: 0 0 14px var(--acid);
}

.spot {
    /* green glow following the pointer */
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    background: radial-gradient(
        520px circle at var(--mx, 50%) var(--my, 50%),
        rgb(57 255 20 / 7%),
        transparent 62%
    );
}

.spot.is-on {
    opacity: 1;
}

.grain {
    position: fixed;
    inset: -50%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.9s steps(4) infinite;
}

@keyframes grain {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(-2%, 1.5%, 0); }
    50% { transform: translate3d(1.5%, -2%, 0); }
    75% { transform: translate3d(-1%, -1%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* --- scroll reveal ------------------------------------------------------ */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s var(--ease) var(--reveal-delay, 0s),
        transform 0.8s var(--ease) var(--reveal-delay, 0s),
        filter 0.8s var(--ease) var(--reveal-delay, 0s);
    filter: blur(6px);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

.no-js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
}

/* --- utility ----------------------------------------------------------- */
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .grain,
    .spot {
        display: none;
    }
}
