@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/ibm-plex-mono.woff2") format("woff2");
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0b0c0a;
    --surface: #111210;
    --border: #252522;
    --dim: #404040;
    --muted: #6b6b64;
    --mid: #9d9d94;
    --body: #c8c8be;
    --ink: #eeeee6;
    --accent: #a8ff6e;
    --accent-dim: #3a5c28;
    --accent-bg: #182214;

    --font-mono: "IBM Plex Mono", "Courier New", monospace;
    --font-disp: system-ui, sans-serif;

    --gap-section: 6.5rem;
    --wrap: 900px;
    --pad-x: 2.2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-disp);
    background: var(--bg);
    color: var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

::selection {
    background: #a8ff6e22;
    color: var(--accent);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dim);
}

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

.wrap {
    position: relative;
    z-index: 1;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
}

.section {
    padding: var(--gap-section) 0;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 12, 10, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.nav-logo .cur {
    color: var(--accent);
    animation: blink 1.1s step-end infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--mid);
}

.nav-links a {
    position: relative;
    padding-bottom: 2px;
    transition: color .2s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .22s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--mid);
    transition: transform .25s, opacity .25s, background .2s;
}

.nav-toggle:hover span {
    background: var(--ink);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

#hero {
    padding-top: 10rem;
    padding-bottom: var(--gap-section);
}

.hero-pre {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    animation: fadeUp .55s .05s ease both;
}

.hero-name {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.6rem;
    width: fit-content;
    animation: fadeUp .55s .15s ease both;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2.6rem;
    animation: fadeUp .55s .25s ease both;
}

.hero-bio {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--mid);
    max-width: 560px;
    font-weight: 400;
    animation: fadeUp .55s .35s ease both;
}

.hero-bio strong {
    color: var(--body);
    font-weight: 500;
}

.hero-contacts {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 13px;
    animation: fadeUp .55s .45s ease both;
}

.hero-contacts a {
    color: var(--muted);
    transition: color .2s;
}

.hero-contacts a:hover {
    color: var(--accent);
}

.hero-contacts span {
    color: var(--muted);
}

.sec-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.sec-label::before {
    content: "//";
    color: var(--accent);
    font-size: 11px;
}

.sec-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.jobs {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.job {
    position: relative;
    padding-left: 1.5rem;
}

.job::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--dim);
    transform: rotate(45deg);
}

.job-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.3rem;
}

.job-title {
    font-family: var(--font-disp);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.job-period {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}

.job-co {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.55rem;
}

.job-desc {
    font-size: 0.92rem;
    line-height: 1.78;
    color: var(--mid);
    max-width: 620px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem 5rem;
}

.sb-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sb-label::before {
    content: "›";
    color: var(--accent);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 11px;
    transition: color .18s, border-color .18s, background .18s;
    cursor: default;
}

.tag:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-bg);
}

.tag.hi {
    color: var(--ink);
    border-color: var(--dim);
}

.tag.hi:hover {
    color: var(--accent);
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-school {
    font-family: var(--font-disp);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.edu-field {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.edu-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--dim);
    margin-top: 0.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list a,
.contact-list span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--mid);
    transition: color .2s;
}

.contact-list a:hover {
    color: var(--accent);
}

footer {
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.6rem var(--pad-x);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--dim);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .58s ease, transform .58s ease;
}

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

.d1 {
    transition-delay: .05s;
}

.d2 {
    transition-delay: .12s;
}

.d3 {
    transition-delay: .19s;
}

.d4 {
    transition-delay: .26s;
}

.d5 {
    transition-delay: .33s;
}

@media (max-width: 768px) {
    :root {
        --pad-x: 1.6rem;
        --gap-section: 5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: fixed;
        top: 54px;
        left: 0;
        right: 0;
        background: rgba(11, 12, 10, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 1.2rem var(--pad-x) 1.6rem;
    }

    .nav-links.mobile-open a {
        padding: 0.7rem 0;
        font-size: 14px;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.mobile-open a:last-child {
        border-bottom: none;
    }

    .nav-links.mobile-open a::after {
        display: none;
    }

    #hero {
        padding-top: 8rem;
    }

    .hero-name {
        font-size: clamp(2.8rem, 10vw, 4rem);
    }

    .hero-contacts {
        flex-direction: column;
        gap: 0.6rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .skills-grid>.span-full {
        grid-column: 1;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .job-period {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --pad-x: 1.2rem;
        --gap-section: 4rem;
    }

    .nav-logo {
        font-size: 13px;
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 3.4rem);
    }

    .hero-role {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .hero-bio {
        font-size: 0.95rem;
    }

    .hero-contacts {
        font-size: 12px;
    }

    .job-head {
        flex-direction: column;
        gap: 0.2rem;
    }

    .job-period {
        margin-left: 0;
    }

    .tag {
        font-size: 11px;
        padding: 3px 9px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
    }
}