@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #050606;
    --surface: #0b0d0d;
    --surface-2: #101212;

    --text: #f4f6f2;
    --muted: #858d88;
    --dim: #505753;

    --line: rgba(255,255,255,.09);
    --line-bright: rgba(255,255,255,.16);

    --green: #b7ff3c;

    --sans: "Inter", sans-serif;
    --mono: "DM Mono", monospace;

    --width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

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

button {
    font: inherit;
}

.container,
.nav-wrap {
    width: min(var(--width), calc(100% - 48px));
    margin-inline: auto;
}


/* LOADER */

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: grid;
    place-items: center;

    background: var(--bg);

    transition:
        opacity .7s ease,
        visibility .7s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    width: 240px;
    text-align: center;
}

.loader-inner > span {
    display: block;

    margin-bottom: 20px;

    color: var(--text);

    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .25em;
}

.loader-line {
    height: 1px;

    background: var(--line);

    overflow: hidden;
}

.loader-line i {
    display: block;

    width: 0;
    height: 100%;

    background: var(--green);

    animation: load 1.4s ease forwards;
}

.loader-inner small {
    display: block;

    margin-top: 12px;

    color: var(--dim);

    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .18em;
}

@keyframes load {
    to {
        width: 100%;
    }
}


/* NAV */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom: 1px solid transparent;

    transition: .3s ease;
}

.navbar.scrolled {
    background: rgba(5,6,6,.82);
    backdrop-filter: blur(18px);
    border-color: var(--line);
}

.nav-wrap {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .1em;
}

.logo-box {
    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border: 1px solid var(--green);

    color: var(--green);

    font-size: .7rem;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    position: relative;

    color: var(--muted);

    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;

    transition: .25s ease;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--green);

    transition: .25s ease;
}

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

nav a:hover::after {
    width: 100%;
}

#menu {
    display: none;

    width: 40px;
    height: 40px;

    background: none;
    border: 1px solid var(--line);

    cursor: pointer;
}

#menu span {
    display: block;

    width: 17px;
    height: 1px;

    margin: 5px auto;

    background: var(--text);
}


/* HERO */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    isolation: isolate;
}

#scene {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -3;
}

.hero-grid {
    position: absolute;
    inset: 0;

    z-index: -2;

    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

    background-size: 80px 80px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        radial-gradient(
            circle at 75% 45%,
            transparent 0,
            rgba(5,6,6,.2) 25%,
            rgba(5,6,6,.85) 70%,
            var(--bg) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 5;

    width: 700px;

    padding-top: 60px;
}

.availability {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;

    color: var(--muted);

    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .1em;
}

.availability span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 14px var(--green);
}

.overline {
    color: var(--green);

    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .18em;
}

.hero h1 {
    margin-top: 22px;

    font-size: clamp(4.5rem, 9vw, 8.5rem);
    line-height: .82;

    letter-spacing: -.085em;
    font-weight: 800;
}

.hero h1 strong {
    display: block;

    color: var(--green);

    font-weight: 800;
}

.hero-text {
    max-width: 570px;

    margin-top: 35px;

    color: var(--muted);

    font-size: .95rem;
    line-height: 1.8;
}

.actions {
    display: flex;
    gap: 10px;

    margin-top: 35px;
}

.btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 20px;

    border: 1px solid var(--line-bright);

    color: var(--text);

    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .08em;

    transition: .25s ease;
}

.btn.primary {
    border-color: var(--green);

    background: var(--green);

    color: #070807;
}

.btn:hover {
    border-color: var(--green);
    color: var(--green);

    transform: translateY(-2px);
}

.btn.primary:hover {
    color: #070807;
    box-shadow: 0 15px 40px rgba(183,255,60,.12);
}

.hero-hud {
    position: absolute;
    z-index: 5;

    display: flex;
    flex-direction: column;
    gap: 4px;

    font-family: var(--mono);
    font-size: .5rem;
}

.hero-hud span {
    color: var(--dim);
}

.hero-hud strong {
    color: var(--green);

    font-size: .65rem;
    font-weight: 400;
}

.hud-left {
    left: 28px;
    bottom: 40px;
}

.hud-right {
    right: 28px;
    bottom: 40px;
    text-align: right;
}

.scroll {
    position: absolute;
    right: 50%;
    bottom: 34px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;

    transform: translateX(50%);

    color: var(--dim);

    font-family: var(--mono);
    font-size: .48rem;
    letter-spacing: .15em;
}

.scroll i {
    width: 1px;
    height: 35px;

    background: linear-gradient(
        var(--green),
        transparent
    );
}


/* INTRO */

.intro {
    padding: 130px 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: .35fr 1fr;
    gap: 100px;
}

.intro-label {
    color: var(--green);

    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
}

.intro-label span {
    display: block;

    margin-bottom: 15px;

    color: var(--dim);
}

.big-copy {
    max-width: 850px;

    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.15;

    letter-spacing: -.055em;
}

.big-copy em {
    color: var(--green);
    font-style: normal;
}

.muted-copy {
    max-width: 620px;

    margin-top: 35px;

    color: var(--muted);

    font-size: .9rem;
    line-height: 1.8;
}


/* SECTION */

.section {
    padding: 130px 0;
}

.dark {
    background: var(--surface);
}

.section-top {
    display: flex;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--line);

    color: var(--green);

    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .12em;
}

.section-top p {
    color: var(--dim);
}


/* ABOUT */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;

    padding-top: 80px;
}

.about-title h2,
.stack-title h2 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: .86;
    letter-spacing: -.075em;
}

.about-title em,
.stack-title em,
.research-heading em,
.contact h2 em {
    color: var(--muted);
    font-style: normal;
}

.about-content {
    max-width: 530px;
}

.about-content > p {
    color: var(--muted);

    font-size: .95rem;
    line-height: 1.85;

    margin-bottom: 22px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin-top: 50px;

    border-top: 1px solid var(--line);
}

.profile-grid div {
    padding: 20px 0;

    border-bottom: 1px solid var(--line);
}

.profile-grid div:nth-child(odd) {
    margin-right: 20px;
}

.profile-grid small {
    display: block;

    margin-bottom: 6px;

    color: var(--dim);

    font-family: var(--mono);
    font-size: .5rem;
}

.profile-grid strong {
    color: var(--text);

    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 400;
}


/* RESEARCH */

.research-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    padding: 70px 0;
}

.research-heading h2 {
    font-size: clamp(3.2rem, 6vw, 6.5rem);
    line-height: .88;
    letter-spacing: -.07em;
}

.research-heading p {
    max-width: 310px;

    color: var(--muted);

    font-size: .82rem;
    line-height: 1.8;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.research-card {
    position: relative;

    min-height: 440px;

    padding: 30px;

    border: 1px solid var(--line);

    background: var(--bg);

    transition: .3s ease;
}

.research-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-6px);
}

.number {
    position: absolute;
    top: 25px;
    right: 25px;

    color: var(--dim);

    font-family: var(--mono);
    font-size: .55rem;
}

.research-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 110px;

    border: 1px solid var(--line);

    color: var(--green);

    font-family: var(--mono);
}

.research-card h3 {
    font-size: 1.1rem;
    letter-spacing: -.02em;
}

.research-card p {
    margin-top: 15px;

    color: var(--muted);

    font-size: .78rem;
    line-height: 1.8;
}

.tags {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 28px;

    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    padding: 6px 8px;

    border: 1px solid var(--line);

    color: var(--dim);

    font-family: var(--mono);
    font-size: .48rem;
}


/* STACK */

.stack-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;

    padding-top: 80px;
}

.stack-list {
    border-top: 1px solid var(--line);
}

.stack-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 15px;

    padding: 28px 0;

    border-bottom: 1px solid var(--line);
}

.stack-item > span {
    color: var(--green);

    font-family: var(--mono);
    font-size: .58rem;
}

.stack-item small {
    display: block;

    margin-bottom: 8px;

    color: var(--dim);

    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .1em;
}

.stack-item strong {
    color: var(--text);

    font-size: .86rem;
    font-weight: 500;
}


/* CONTACT */

.contact {
    position: relative;

    padding: 160px 0;

    overflow: hidden;

    border-top: 1px solid var(--line);
}

.contact-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    right: -200px;
    top: 20%;

    border-radius: 50%;

    background: var(--green);
    opacity: .035;

    filter: blur(100px);
}

.contact-inner {
    position: relative;
}

.contact h2 {
    margin-top: 25px;

    font-size: clamp(4rem, 9vw, 9rem);
    line-height: .82;

    letter-spacing: -.08em;
}

.contact-inner > p {
    max-width: 500px;

    margin-top: 35px;

    color: var(--muted);

    font-size: .9rem;
    line-height: 1.8;
}


/* FOOTER */

footer {
    padding: 25px 0;

    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.footer-inner p,
.footer-inner > span {
    color: var(--dim);

    font-family: var(--mono);
    font-size: .5rem;
}

.footer-inner p {
    text-align: center;
}

.footer-inner > span {
    text-align: right;
}


/* REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

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


/* MOBILE */

@media (max-width: 900px) {

    .hero-content {
        width: 100%;
    }

    .hero::after {
        background:
            linear-gradient(
                90deg,
                rgba(5,6,6,.95),
                rgba(5,6,6,.55),
                rgba(5,6,6,.3)
            );
    }

    .intro-grid,
    .about-layout,
    .stack-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-heading {
        display: block;
    }

    .research-heading p {
        margin-top: 30px;
    }

}


/* MOBILE NAV */

@media (max-width: 700px) {

    .container,
    .nav-wrap {
        width: min(100% - 32px, var(--width));
    }

    nav {
        position: fixed;
        inset: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 28px;

        background: rgba(5,6,6,.98);

        transform: translateX(100%);

        transition: .3s ease;
    }

    nav.open {
        transform: translateX(0);
    }

    nav a {
        font-size: .75rem;
    }

    #menu {
        display: block;

        position: relative;
        z-index: 1001;
    }

    .hero {
        min-height: 850px;
    }

    .hero h1 {
        font-size: clamp(4rem, 19vw, 6rem);
    }

    .hero-text {
        font-size: .82rem;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .intro,
    .section {
        padding: 90px 0;
    }

    .big-copy {
        font-size: 2rem;
    }

    .about-title h2,
    .stack-title h2 {
        font-size: 4rem;
    }

    .research-heading h2 {
        font-size: 3.6rem;
    }

    .contact {
        padding: 110px 0;
    }

    .contact h2 {
        font-size: 4.2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .footer-inner p,
    .footer-inner > span {
        text-align: center;
    }

    .hud-left,
    .hud-right {
        display: none;
    }

}
