@font-face {
    font-family: 'Cafe24Surround';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff') format('woff');
    font-weight: normal;
    font-display: swap
}

:root {
    --bg: #101010;
    --text: #f4f3f3;
    --line: #292929;
    --accent: #f1b4da
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Cafe24Surround', Arial, sans-serif;
    font-size: 14px;
    transition: transform .4s ease, opacity .4s ease;
}

body.leave-left {
    transform: translateX(-60px);
    opacity: 0;
}

body.leave-right {
    transform: translateX(60px);
    opacity: 0;
}

body.leave-down {
    transform: translateY(60px);
    opacity: 0;
}

.page-noise {
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: .22;
    background-image: radial-gradient(#8f8f8f .65px, transparent .65px);
    background-size: 5px 5px;
    mask-image: linear-gradient(#000, transparent 23%)
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 16, 16, .9);
    backdrop-filter: blur(16px)
}

.topbar-inner {
    height: 76px;
    max-width: 1280px;
    margin: auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px
}

.brand {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap
}

.i-logo {
    width: 50px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.brand small {
    display: block;
    color: #aaa;
    font-weight: 500;
    font-size: 10px;
    margin-top: 3px
}

.side-nav {
    display: flex;
    align-items: center;
    gap: 4px
}

.side-nav a {
    height: 37px;
    border-radius: 10px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #aaa;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    transition: .2s
}

.side-nav a:hover,
.side-nav a.active {
    background: #252525;
    color: #fff
}

.side-nav i {
    font-style: normal;
    font-size: 15px;
    color: #aaa
}

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 102px 35px 90px
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.intro h1 {
    font-size: 42px;
    line-height: 1.03;
    letter-spacing: -.09em;
    margin: 0;
    font-weight: 800
}

.intro p {
    color: #aaa;
    font-weight: 700;
    margin: 10px 0 0;
    letter-spacing: -.04em
}

.avatar {
    width: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .avatar {
        width: 150px;
    }
}

.content-section {
    margin-top: 61px
}

.content-section h2 {
    font-size: 19px;
    letter-spacing: -.06em;
    margin: 0 0 18px
}

.bio {
    color: #aaa;
    line-height: 1.85;
    font-size: 13px;
    font-weight: 500;
    margin: 0
}

.skills-section {
    margin-top: 58px
}

.contact {
    border-top: 1px solid var(--line);
    margin-top: 85px;
    padding-top: 42px
}

.contact h2 {
    font-size: 26px;
    margin-bottom: 14px
}

.contact a {
    color: var(--accent);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none
}

.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: .55s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.badge-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.badge-scroll img {
    height: 28px
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.project-hero {
    margin-bottom: 60px
}

.project-hero .kicker {
    color: #777;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 12px
}

.project-hero h1 {
    font-size: 42px;
    letter-spacing: -.04em;
    margin: 0 0 12px;
    font-weight: 800
}

.project-hero h1 span {
    color: var(--accent)
}

.project-hero p {
    color: #aaa;
    font-size: 15px;
    max-width: 520px
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 50px
}

.project-card {
    border-radius: 20px;
    background: #181818;
    border: 1px solid #282828;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.project-visual {
    aspect-ratio: 1/1;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual.shop {
    background: linear-gradient(145deg, #1b1b1b, #272727);
    position: relative;
}

.project-visual.shop .project-image {
    position: absolute;
    inset: 0;
}

.project-visual.shop span,
.project-visual.shop strong,
.project-visual.shop .orb {
    position: relative;
    z-index: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.project-copy {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.project-type {
    font-size: 11px;
    letter-spacing: .05em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px
}

.project-copy h2 {
    font-size: 26px;
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: -.03em
}

.project-copy .description {
    color: #bbb;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
    font-weight: 400
}

.project-copy .meta {
    border-top: 1px solid #2a2a2a;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888
}

.project-copy .meta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600
}

.partner-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

@media(max-width:800px) {
    .topbar-inner {
        padding: 0 20px
    }

    .side-nav {
        position: fixed;
        top: 66px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #1b1b1b;
        border: 1px solid #333;
        border-radius: 15px
    }

    .side-nav.open {
        display: flex
    }

    .mobile-menu {
        display: block;
        position: absolute;
        z-index: 5;
        right: 14px;
        top: 17px;
        width: 42px;
        height: 42px;
        border: 1px solid #333;
        border-radius: 12px;
        background: #1e1e1e;
        padding: 10px;
        cursor: pointer
    }

    .mobile-menu span {
        display: block;
        height: 1px;
        background: #fff;
        margin: 6px 0
    }

    main {
        padding: 72px 24px 60px
    }

    .intro {
        gap: 18px
    }

    .intro h1 {
        font-size: 33px
    }

    .avatar {
        width: 80px;
        height: 80px;
        flex-basis: 80px
    }

    .content-section {
        margin-top: 50px
    }

    .contact {
        margin-top: 60px
    }

    .project-card {
        grid-template-columns: 1fr
    }

    .project-visual {
        aspect-ratio: 16/10
    }

    .project-copy {
        padding: 24px 22px
    }

    .project-hero h1 {
        font-size: 32px
    }

    .badge-scroll img {
        height: 24px
    }
}

@media(min-width:801px) {
    .mobile-menu {
        display: none
    }
}