:root {
    --black: #070707;
    --near: #0d0d0e;
    --panel: #121214;
    --grey: #8d8d92;
    --light: #c9c9cc;
    --white: #f4f4f1;
    --red: rgba(229,43,50,.6);
    --red-dark: #8d171d;
    --line: rgba(244,244,241,.13);
    --mono: "DM Mono",monospace;
    --sans: "Space Grotesk",sans-serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    overflow-x: hidden
}

    body:before {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
        background-size: 64px 64px;
        pointer-events: none;
        z-index: -2
    }

#noise {
    position: fixed;
    inset: 0;
    opacity: .035;
    pointer-events: none;
    z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%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")
}

.cursor-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(229,43,50,.11),transparent 65%);
    pointer-events: none;
    transform: translate(-50%,-50%);
    z-index: -1
}

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(14px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none
}

.brand-mark {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.brand-text {
    font: 500 12px var(--mono);
    letter-spacing: .12em
}

.nav {
    display: flex;
    gap: 28px
}

    .nav a {
        color: var(--grey);
        text-decoration: none;
        font: 400 10px var(--mono);
        letter-spacing: .12em;
        transition: .25s
    }

        .nav a:hover, .nav a.active {
            color: var(--white)
        }

            .nav a.active:before {
                content: "[";
                color: var(--red)
            }

            .nav a.active:after {
                content: "]";
                color: var(--red)
            }

.menu-toggle {
    display: none;
    background: none;
    border: 0
}

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 1px;
        background: var(--white);
        margin: 6px
    }

main {
    padding-top: 78px
}

.page {
    display: none;
    min-height: calc(100vh - 78px)
}

    .page.active {
        display: block
    }

.hero-grid {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line)
}

.hero-copy {
    padding: 12vh 7vw 8vh 7vw;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.eyebrow, .index, .page-hero span, .project-info > span, .lab-card > span {
    font: 400 10px var(--mono);
    letter-spacing: .14em;
    color: var(--grey)
}

.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 9px;
    box-shadow: 0 0 15px var(--red)
}

h1 {
    font-size: clamp(70px,10vw,150px);
    line-height: .78;
    letter-spacing: -.075em;
    margin: 28px 0
}

.hero-copy h1 span, h2 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px var(--white)
}

.hero-role {
    font: 500 11px var(--mono);
    letter-spacing: .1em;
    color: var(--light);
    max-width: 520px
}

.hero-intro {
    max-width: 500px;
    color: var(--grey);
    font-size: 16px;
    line-height: 1.6;
    margin: 22px 0
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px
}

.button {
    border: 1px solid var(--line);
    padding: 14px 18px;
    color: var(--white);
    text-decoration: none;
    font: 500 10px var(--mono);
    letter-spacing: .1em;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .button:hover {
        border-color: var(--white);
        transform: translateY(-2px)
    }

    .button.primary {
        background: var(--red);
        border-color: var(--red)
    }

        .button.primary:hover {
            background: transparent
        }

    .button.secondary {
        background: var(--red);
        border-color: var(--red)
    }

        .button.secondary:hover {
            background: transparent
        }

.hero-visual {
    position: relative;
    min-height: calc(100vh - 78px);
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%,rgba(229,43,50,.08),transparent 50%)
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block
}

.visual-label {
    position: absolute;
    left: 24px;
    right: 24px;
    font: 400 9px var(--mono);
    letter-spacing: .1em;
    color: var(--grey);
    display: flex;
    justify-content: space-between
}

    .visual-label span {
        color: var(--red)
    }

.ticker {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 17px 4vw;
    border-bottom: 1px solid var(--line);
    font: 400 9px var(--mono);
    letter-spacing: .12em;
    color: var(--grey);
    overflow: hidden
}

.section-pad {
    padding: 100px 7vw
}

.home-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 7vw
}

.section-heading h2, .page-hero h2, .contact-hero h2 {
    font-size: clamp(46px,6vw,90px);
    line-height: .86;
    letter-spacing: -.06em;
    margin: 20px 0
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--line)
}

.feature-card {
    position: relative;
    min-height: 320px;
    background: var(--black);
    padding: 25px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden
}

    .feature-card:after {
        content: "";
        position: absolute;
        inset: auto -30% -50% -30%;
        height: 70%;
        background: radial-gradient(circle,rgba(229,43,50,.18),transparent 60%);
        transition: .4s
    }

    .feature-card:hover:after {
        transform: scale(1.4)
    }

    .feature-card h3 {
        font-size: 28px;
        line-height: .9;
        letter-spacing: -.04em;
        margin: 0 0 10px;
        z-index: 1
    }

    .feature-card p {
        font: 9px var(--mono);
        color: var(--grey);
        z-index: 1
    }

.card-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font: 9px var(--mono);
    color: var(--red)
}

.arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    z-index: 1
}

.accent-card {
    background: var(--red)
}

.page-hero {
    min-height: 65vh;
    padding: 14vh 7vw 9vh;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: end;
    border-bottom: 1px solid var(--line)
}

    .page-hero h2 {
        font-size: clamp(65px,9vw,135px);
        margin: 25px 0 0
    }

    .page-hero p {
        max-width: 470px;
        color: var(--grey);
        line-height: 1.7;
        font-size: 15px
    }

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 10vw
}

.headshot {
    width: 25vw;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 200px 200px 50px 50px;
}


.about-statement {
    font-size: clamp(28px,4vw,58px);
    line-height: 1.05;
    letter-spacing: -.04em;
    position: relative
}

    .about-statement .red-line {
        display: block;
        width: 50px;
        height: 2px;
        background: var(--red);
        margin-bottom: 25px
    }

    .about-statement strong {
        color: var(--red);
        font-weight: 500
    }

.stats {
    border-top: 1px solid var(--line)
}

    .stats div {
        padding: 19px 0;
        border-bottom: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        gap: 20px
    }

    .stats span, .stats strong {
        font: 9px var(--mono)
    }

    .stats span {
        color: var(--grey)
    }

    .stats strong {
        text-align: right
    }

.timeline {
    border-top: 1px solid var(--line)
}

    .timeline article {
        display: grid;
        grid-template-columns: 180px 280px 1fr;
        gap: 30px;
        padding: 28px 0;
        border-bottom: 1px solid var(--line)
    }

    .timeline span {
        font: 9px var(--mono);
        color: var(--red)
    }

    .timeline h3 {
        margin: 0;
        font-size: 18px
    }

    .timeline p {
        margin: 0;
        color: var(--grey);
        font-size: 14px;
        line-height: 1.6
    }

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

    .skill-cloud span, .tags span {
        padding: 9px 12px;
        border: 1px solid var(--line);
        font: 9px var(--mono);
        color: var(--light)
    }

        .skill-cloud span:hover {
            border-color: var(--red);
            color: var(--red)
        }

.award-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1px;
    background: var(--line)
}

    .award-grid div {
        background: var(--black);
        padding: 25px;
        display: flex;
        justify-content: space-between;
        gap: 20px
    }

    .award-grid b {
        font-size: 14px
    }

    .award-grid span {
        font: 9px var(--mono);
        color: var(--grey);
        white-space: nowrap
    }

.project-stack {
    display: grid;
    gap: 90px
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    border-top: 1px solid var(--line);
    padding-top: 25px
}

    .project-card.reverse .project-visual {
        order: 2
    }

    .project-card.reverse .project-info {
        order: 1
    }

.project-visual {
    position: relative;
    min-height: 560px;
    background: var(--panel);
    overflow: visible;
}

    .project-visual > span {
        position: absolute;
        top: 20px;
        left: 20px;
        font: 9px var(--mono);
        color: var(--grey)
    }

.spectrum {
    background: linear-gradient(145deg,#111,#080808)
}

.bars {
    position: absolute;
    inset: 20% 10%;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    transform-origin: center center;
}

    .bars:after {
        content: "";
        width: 100%;
        height: 1px;
        background: var(--red);
        box-shadow: 0 -35px 0 rgba(229,43,50,.3),0 35px 0 rgba(229,43,50,.3)
    }

.bars {
    background: repeating-linear-gradient(90deg,transparent 0 7px,rgba(229,43,50,.8) 8px 10px);
    mask-image: linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);
    animation: bars 1.4s ease-in-out infinite alternate
}

@keyframes bars {
    from {
        transform: scaleY(.5)
    }

    to {
        transform: scaleY(1.3)
    }
}

.red-orbit {
    background: radial-gradient(circle,#321114 0,transparent 42%),#0b0b0c
}

.orbit {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid var(--red);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 80px rgba(229,43,50,.12);
    animation: spin 10s linear infinite
}

    .orbit:before, .orbit:after {
        content: "";
        position: absolute;
        border: 1px solid var(--red);
        border-radius: 50%;
        inset: 35px;
        transform: rotate(65deg) scaleX(2)
    }

    .orbit:after {
        inset: 80px;
        transform: rotate(-30deg) scaleX(2)
    }

@keyframes spin {
    to {
        transform: translate(-50%,-50%) rotate(360deg)
    }
}

.waveform-art {
    background: #0a0a0a
}

.wave {
    position: absolute;
    inset: 25%;
    background: repeating-linear-gradient(90deg,transparent 0 8px,var(--red) 9px 10px);
    mask-image: radial-gradient(ellipse,#000 20%,transparent 70%);
    animation: wave 2s ease-in-out infinite alternate
}

@keyframes wave {
    to {
        transform: scaleY(.45) scaleX(1.1)
    }
}

.project-info {
    padding: 60px 7vw 60px 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center
}

    .project-info h3 {
        font-size: clamp(44px,6vw,82px);
        line-height: .86;
        letter-spacing: -.06em;
        margin: 20px 0
    }

    .project-info p {
        color: var(--grey);
        line-height: 1.7;
        max-width: 520px
    }

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 25px
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1px;
    background: var(--line)
}

.lab-card {
    background: var(--black);
    padding: 28px;
    min-height: 510px;
    display: flex;
    flex-direction: column
}

    .lab-card.featured {
        background: var(--red)
    }

    .lab-card h3 {
        font-size: 31px;
        letter-spacing: -.04em;
        margin: 15px 0
    }

    .lab-card p {
        color: var(--grey);
        line-height: 1.7;
        font-size: 14px;
        max-width: 540px
    }

.featured p, .featured > span {
    color: #ffd9da
}

.lab-visual {
    height: 230px;
    margin: -28px -28px 28px;
    background: var(--panel);
    position: relative;
    overflow: hidden
}

.featured .lab-visual {
    background: #a91c23
}

.knob {
    width: 100px;
    height: 100px;
    border: 1px solid var(--white);
    border-radius: 50%;
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translate(-50%,-50%)
}

    .knob:after {
        content: "";
        position: absolute;
        width: 1px;
        height: 36px;
        background: var(--red);
        left: 50%;
        top: 4px
    }

.meter {
    position: absolute;
    left: 48%;
    top: 40px;
    display: flex;
    gap: 7px;
    align-items: end;
    height: 150px
}

    .meter i {
        width: 12px;
        background: var(--red);
        display: block;
        animation: meter .8s infinite alternate
    }

        .meter i:nth-child(1) {
            height: 30%
        }

        .meter i:nth-child(2) {
            height: 60%;
            animation-delay: .1s
        }

        .meter i:nth-child(3) {
            height: 40%;
            animation-delay: .2s
        }

        .meter i:nth-child(4) {
            height: 85%;
            animation-delay: .3s
        }

        .meter i:nth-child(5) {
            height: 50%;
            animation-delay: .4s
        }

        .meter i:nth-child(6) {
            height: 95%;
            animation-delay: .5s
        }

        .meter i:nth-child(7) {
            height: 70%;
            animation-delay: .6s
        }

@keyframes meter {
    to {
        transform: scaleY(.4)
    }
}

.neural:before, .neural:after {
    content: "";
    position: absolute;
    inset: 35px;
    background: radial-gradient(circle at 15% 50%,var(--red) 0 5px,transparent 6px),radial-gradient(circle at 50% 20%,var(--red) 0 5px,transparent 6px),radial-gradient(circle at 50% 80%,var(--red) 0 5px,transparent 6px),radial-gradient(circle at 85% 50%,var(--red) 0 5px,transparent 6px);
}

.neural:after {
    background: linear-gradient(25deg,transparent 49%,rgba(229,43,50,.6) 50% 51%,transparent 52%),linear-gradient(-25deg,transparent 49%,rgba(229,43,50,.6) 50% 51%,transparent 52%)
}

.spatial {
    background: radial-gradient(circle at 50% 50%,rgba(229,43,50,.12),transparent 50%)
}

.radar {
    width: 180px;
    height: 180px;
    border: 1px solid var(--red);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    box-shadow: inset 0 0 0 35px transparent,inset 0 0 0 36px rgba(229,43,50,.15)
}

    .radar:after {
        content: "";
        position: absolute;
        width: 50%;
        height: 1px;
        top: 50%;
        left: 50%;
        background: var(--red);
        transform-origin: left;
        animation: radar 2s linear infinite
    }

@keyframes radar {
    to {
        transform: rotate(360deg)
    }
}

.code-line {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    font: 9px var(--mono);
    color: var(--light)
}

.featured .code-line {
    border-color: rgba(255,255,255,.3)
}

.technical-footer {
    padding-top: 0
}

.terminal {
    border: 1px solid var(--line);
    font: 10px var(--mono)
}

.terminal-top {
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--grey)
}

    .terminal-top span:last-child {
        color: var(--red)
    }

.terminal-body {
    padding: 25px;
    color: var(--grey);
    line-height: 2
}

    .terminal-body b {
        color: var(--white)
    }

.cursor {
    color: var(--red);
    animation: blink 1s steps(2) infinite
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

.contact-hero {
    min-height: 70vh;
    padding: 15vh 7vw 10vh;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center
}

    .contact-hero h2 {
        font-size: clamp(75px,12vw,180px);
        margin: 30px 0
    }

    .contact-hero p {
        color: var(--grey);
        max-width: 500px;
        line-height: 1.7
    }

.email-link {
    font: 500 clamp(18px,3vw,38px) var(--mono);
    color: var(--white);
    text-decoration: none;
    margin-top: 35px;
    width: max-content;
    border-bottom: 1px solid var(--red);
    padding-bottom: 8px
}

    .email-link span {
        color: var(--red)
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--line);
    padding-top: 0
}

.contact-card {
    min-height: 220px;
    background: var(--black);
    padding: 25px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative
}

    .contact-card:hover {
        background: var(--panel)
    }

    .contact-card span {
        position: absolute;
        top: 22px;
        left: 22px;
        font: 9px var(--mono);
        color: var(--red)
    }

    .contact-card b {
        font-size: 28px
    }

    .contact-card small {
        font: 9px var(--mono);
        color: var(--grey);
        margin-top: 8px
    }

    .contact-card i {
        position: absolute;
        right: 22px;
        top: 20px;
        font-style: normal;
        font-size: 20px
    }

footer {
    border-top: 1px solid var(--line);
    padding: 22px 4vw;
    display: flex;
    justify-content: space-between;
    color: var(--grey);
    font: 9px var(--mono);
    letter-spacing: .1em
}

.reveal {
    animation: rise .8s both
}

    .reveal:nth-child(2) {
        animation-delay: .15s
    }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(25px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:900px) {
    .nav {
        gap: 15px
    }

        .nav a {
            font-size: 8px
        }

    .hero-grid, .page-hero, .about-layout, .project-card {
        grid-template-columns: 1fr
    }

    .hero-visual {
        min-height: 55vh;
        border-left: 0;
    }

    .home-grid {
        grid-template-columns: 1fr
    }

    .feature-list, .lab-grid, .contact-grid {
        grid-template-columns: 1fr
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .project-card.reverse .project-visual {
        order: 0
    }

    .project-card.reverse .project-info {
        order: 0
    }

    .project-info {
        padding: 45px 0
    }

    .page-hero {
        min-height: auto;
        gap: 40px
    }

    .project-visual {
        min-height: 380px
    }

    .contact-grid {
        padding-bottom: 70px
    }
}

@media(max-width:650px) {
    .site-header {
        height: 65px
    }

    .nav {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(7,7,7,.97);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        padding: 25px 7vw
    }

        .nav.open {
            display: flex
        }

    .menu-toggle {
        display: block
    }

    .brand-text {
        font-size: 10px
    }

    main {
        padding-top: 65px
    }

    .hero-copy {
        padding: 80px 7vw
    }

    .hero-visual {
        min-height: 65vh
    }

    .ticker {
        justify-content: flex-start;
        width: max-content;
        gap: 40px
    }

    .section-pad {
        padding: 70px 7vw
    }

    .award-grid {
        grid-template-columns: 1fr
    }

    footer {
        gap: 10px;
        flex-wrap: wrap
    }

    .contact-hero {
        padding-top: 90px
    }

        .contact-hero h2 {
            font-size: 17vw
        }
}