:root {
    color-scheme: dark;

    --ink: #08090a;
    --ink-2: #0e1012;
    --ink-3: #15181b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #ecefe9;
    --text-2: #a4aaa3;
    --text-3: #6b716b;
    --acid: #c8ff3c;
    --acid-dim: rgba(200, 255, 60, 0.14);
    --violet: #7b5cff;
    --cyan: #2fd3ff;

    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --serif: 'Instrument Serif', ui-serif, Georgia, serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1280px;
    --radius: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--acid);
    color: var(--ink);
}

a {
    color: inherit;
}

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

em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--acid);
    color: var(--ink);
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.muted {
    color: var(--text-3);
}

/* Nav */

.nav {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 50;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), var(--max));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.is-scrolled {
    background: rgba(14, 16, 18, 0.72);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--acid);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav__links {
    display: flex;
    gap: 4px;
}

.nav__links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active,
.nav__links a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav__clock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 0 var(--acid);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(200, 255, 60, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(200, 255, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 255, 60, 0); }
}

/* Buttons */

.btn {
    --mx: 0px;
    --my: 0px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}

.btn--small {
    padding: 9px 16px;
    font-size: 14px;
    background: var(--text);
    color: var(--ink);
    border-color: var(--text);
}

.btn--small:hover {
    background: var(--acid);
    border-color: var(--acid);
}

.btn--primary {
    background: var(--acid);
    color: var(--ink);
    border-color: var(--acid);
    box-shadow: 0 0 0 0 rgba(200, 255, 60, 0);
}

.btn--primary:hover {
    box-shadow: 0 10px 40px -8px rgba(200, 255, 60, 0.55);
}

.btn--ghost:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn__arrow {
    transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* Sections */

.section {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(96px, 14vw, 180px) var(--gutter) 0;
}

.section__head {
    margin-bottom: clamp(40px, 6vw, 72px);
}

.kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acid);
}

.section__title {
    max-width: 16ch;
    margin: 18px 0 0;
    font-size: clamp(36px, 5.6vw, 76px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.section__sub {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--text-2);
}

/* Spotlight surfaces */

.spot {
    --x: 50%;
    --y: 50%;
    position: relative;
    isolation: isolate;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.spot::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(500px circle at var(--x) var(--y), rgba(200, 255, 60, 0.12), transparent 45%);
    transition: opacity 0.4s;
}

.spot::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--x) var(--y), rgba(200, 255, 60, 0.7), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.spot:hover::before,
.spot:hover::after,
.spot:focus-visible::before,
.spot:focus-visible::after {
    opacity: 1;
}

/* Contact */

.contact {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 140px);
    text-align: center;
}

.contact__title {
    margin: 20px 0 0;
    font-size: clamp(56px, 12vw, 180px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

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

.contact__sub {
    max-width: 520px;
    margin: 28px auto 0;
    color: var(--text-2);
}

.contact__email {
    --mx: 0px;
    --my: 0px;
    display: inline-flex;
    gap: 12px;
    margin-top: 48px;
    padding: 22px 36px;
    border-radius: 999px;
    background: var(--text);
    color: var(--ink);
    font-size: clamp(17px, 2.4vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    word-break: break-all;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s;
}

.contact__email:hover {
    background: var(--acid);
    box-shadow: 0 20px 60px -12px rgba(200, 255, 60, 0.5);
}

.contact__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 40px;
}

.contact__links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.contact__links a:hover {
    color: var(--acid);
}

/* Footer */

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 28px;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 28px var(--gutter) 40px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}

.footer a {
    color: var(--text-3);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text);
}

/* Reveal */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
}

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

.js .card[data-reveal].is-in:hover {
    transform: translateY(-4px);
}

@media (max-width: 980px) {
    .nav__links,
    .nav__clock {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .contact__email {
        padding: 18px 24px;
    }

    .nav__name {
        display: none;
    }
}

@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;
    }

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
