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

:root {
    --bg: #07080d;
    --panel: #0d0f16;
    --line: rgba(255,255,255,.10);
    --text: #f4f5f7;
    --muted: #8c919e;
    --accent: #c8ff3d;
    --accent-soft: rgba(200,255,61,.15);
    --max: 1420px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(200,255,61,.055), transparent 30%),
        radial-gradient(circle at 90% 65%, rgba(77,98,255,.06), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    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 80%);
    z-index: -3;
}

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

.ambient {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -2;
    opacity: .16;
}

.ambient-one {
    background: #b8ff35;
    top: -330px;
    left: -200px;
}

.ambient-two {
    background: #465cff;
    right: -350px;
    bottom: -300px;
}

.topbar,
main,
footer {
    width: min(calc(100% - 64px), var(--max));
    margin-inline: auto;
}

.topbar {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand span:last-child span {
    color: var(--accent);
}

.brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(200,255,61,.45);
    color: var(--accent);
    font: 500 13px "DM Mono", monospace;
    transform: rotate(45deg);
}

.brand-mark::first-letter {
    transform: rotate(-45deg);
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777d89;
    font: 10px "DM Mono", monospace;
    letter-spacing: .16em;
}

.status-dot,
.live-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}

.status-dot {
    animation: pulse 1.8s infinite;
}

.separator {
    color: #3d414a;
}

.hero {
    padding: 130px 0 105px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    color: var(--accent);
    font: 11px "DM Mono", monospace;
    letter-spacing: .18em;
}

.eyebrow-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.hero h1 {
    max-width: 1100px;
    font-size: clamp(55px, 8.2vw, 128px);
    line-height: .89;
    letter-spacing: -.075em;
    font-weight: 700;
}

.hero h1 span {
    display: block;
}

.hero h1 .muted {
    color: #626773;
}

.hero h1 em {
    color: var(--text);
    font-style: normal;
}

.hero-bottom {
    margin-top: 58px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-bottom p {
    max-width: 530px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.hero-bottom strong {
    color: var(--text);
    font-weight: 500;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #6e737e;
    font: 10px "DM Mono", monospace;
    letter-spacing: .15em;
}

.scroll-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--accent);
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    perspective: 1400px;
}

.project-card {
    min-width: 0;
    transform-style: preserve-3d;
    transition: transform .18s ease, border-color .3s ease;
}

.project-image {
    height: 490px;
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    text-decoration: none;
    isolation: isolate;
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,5,8,.92), transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.78) brightness(.72);
    transform: scale(1.015);
    transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.075);
    filter: saturate(1) brightness(.86);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 25%, rgba(200,255,61,.11), transparent 45%);
    transform: translateX(-100%);
    transition: transform .9s ease;
    z-index: 2;
}

.project-card:hover .image-overlay {
    transform: translateX(100%);
}

.card-index {
    position: absolute;
    top: 18px;
    left: 18px;
    color: rgba(255,255,255,.65);
    font: 10px "DM Mono", monospace;
    letter-spacing: .12em;
    z-index: 3;
}

.live-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: rgba(7,8,13,.64);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    color: #d7d9df;
    font: 9px "DM Mono", monospace;
    letter-spacing: .12em;
    z-index: 3;
}

.open-icon {
    position: absolute;
    right: 18px;
    bottom: 17px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(7,8,13,.36);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    z-index: 3;
    transition: .3s ease;
}

.project-card:hover .open-icon {
    background: var(--accent);
    color: #10120a;
    border-color: var(--accent);
    transform: rotate(45deg);
}

.project-info {
    min-height: 148px;
    padding: 25px 2px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border-bottom: 1px solid var(--line);
}

.project-type {
    margin-bottom: 9px;
    color: var(--accent);
    font: 9px "DM Mono", monospace;
    letter-spacing: .13em;
}

.project-info h2 {
    font-size: clamp(27px, 3vw, 39px);
    letter-spacing: -.05em;
    font-weight: 600;
}

.project-description p {
    color: #858a96;
    font-size: 12px;
    line-height: 1.65;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.tags span {
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.09);
    color: #777c87;
    font: 8px "DM Mono", monospace;
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 2px 0;
    color: #7f8490;
    text-decoration: none;
    font: 10px "DM Mono", monospace;
    transition: color .25s ease;
}

.project-link:hover {
    color: var(--accent);
}

.project-link span:last-child {
    font-size: 15px;
}

.numbers {
    margin: 110px 0 120px;
    padding: 27px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.numbers div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid var(--line);
    padding-left: 28px;
}

.numbers div:first-child {
    padding-left: 0;
}

.numbers div:last-child {
    border-right: 0;
}

.numbers strong {
    font-size: 28px;
    letter-spacing: -.05em;
}

.numbers span {
    color: #696e79;
    font: 9px "DM Mono", monospace;
    letter-spacing: .13em;
}

footer {
    padding: 0 0 35px;
    display: flex;
    justify-content: space-between;
    color: #555a65;
    font: 9px "DM Mono", monospace;
    letter-spacing: .12em;
}

footer a {
    color: #747984;
    text-decoration: none;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.75); }
}

@media (max-width: 1050px) {
    .projects {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .project-image {
        height: min(70vw, 620px);
    }

    .project-info {
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .topbar,
    main,
    footer {
        width: min(calc(100% - 34px), var(--max));
    }

    .topbar {
        height: 76px;
    }

    .topbar-meta span:not(.status-dot) {
        display: none;
    }

    .hero {
        padding: 90px 0 75px;
    }

    .hero h1 {
        font-size: clamp(49px, 15vw, 86px);
    }

    .hero-bottom {
        display: block;
        margin-top: 42px;
    }

    .scroll-hint {
        margin-top: 30px;
    }

    .project-image {
        height: 112vw;
        max-height: 600px;
    }

    .project-info {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .numbers {
        grid-template-columns: 1fr 1fr;
        gap: 25px 0;
        margin: 80px 0;
    }

    .numbers div:nth-child(2) {
        border-right: 0;
    }

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

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

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