@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/Inter-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/Inter-Bold.woff2") format("woff2");
}

:root {
    --ink: #111111;
    --muted: #5f5f5d;
    --faint: #9a9a96;
    --line: #e7e7e2;
    --accent: #4f46e5;
    --bg: #fbfbfa;
    --maxw: 880px;
    --bar: 64px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar) + 20px);
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px 96px;
}

/* ---------- sticky top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-8deg);
}

.brand-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.brand-role {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- nav ---------- */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
}

.nav a {
    position: relative;
    font-size: 13.5px;
    color: var(--faint);
    padding: 7px 11px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav a .num {
    margin-right: 6px;
    font-size: 10.5px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.nav a:hover {
    color: var(--ink);
    background: #fff;
}

.nav a.is-active {
    color: var(--ink);
}

.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

/* ---------- sections ---------- */
.section {
    padding: 76px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--bar) + 20px);
}

.section:last-of-type {
    border-bottom: none;
}

.hero {
    padding: 72px 0 64px;
}

.section-head {
    margin: 0 0 36px;
}

.hero .section-head {
    margin-bottom: 0;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-size: clamp(30px, 5vw, 40px);
}

.hero .section-title {
    line-height: 1.02;
    font-size: clamp(40px, 8vw, 60px);
}

.page-lead {
    margin: 22px 0 0;
    max-width: 62ch;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---------- spec rows (label / value) ---------- */
.specs {
    margin: 40px 0 0;
    border-top: 1px solid var(--line);
}

.specs.tight {
    margin-top: 0;
}

.spec {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.spec dt {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.spec dd {
    margin: 0;
    font-size: 15.5px;
}

.spec dd a {
    color: var(--accent);
}

.spec dd a:hover {
    text-decoration: underline;
}

/* ---------- work / achievement list ---------- */
.work {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.work li {
    position: relative;
    padding: 16px 0 16px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
    line-height: 1.6;
}

.work li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

/* ---------- experience roles ---------- */
.exp-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 40px;
}

.exp-jump-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-right: 2px;
}

.exp-jump a {
    font-size: 13px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.exp-jump a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.role {
    scroll-margin-top: calc(var(--bar) + 20px);
}

.role + .role {
    margin-top: 52px;
    padding-top: 52px;
    border-top: 1px solid var(--line);
}

.role-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.role-sub {
    margin: 7px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.role-lead {
    margin: 14px 0 28px;
    max-width: 62ch;
    color: var(--muted);
}

/* ---------- tags ---------- */
.tags-label {
    margin: 36px 0 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag {
    font-size: 12.5px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
}

/* ---------- footer ---------- */
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 32px 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 13px;
    color: var(--faint);
}

.site-footer a {
    color: var(--muted);
}

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

.back-top {
    margin-left: auto;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 640px) {
    .topbar-inner {
        padding: 10px 20px;
    }

    .wrap {
        padding: 0 20px 72px;
    }

    .section {
        padding: 56px 0;
    }

    .spec {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }
}

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