:root {
    --bg: #f7f8fb;
    --surface: rgba(0, 0, 0, .035);
    --surface2: rgba(0, 0, 0, .055);
    --text: rgba(0, 0, 0, .88);
    --muted: rgba(0, 0, 0, .60);
    --border: rgba(0, 0, 0, .12);
    --shadow: 0 12px 28px rgba(0, 0, 0, .10);

    --radius: 16px;
    --radius2: 22px;

    --container: 1120px;

    --space: 18px;
    --gap: var(--space);
    --pad: 18px;

    --accent: 90, 140, 255;
    --accent2: 140, 90, 255;
    --accent3: 54, 211, 153;

    --btn-bg: rgba(var(--accent), .12);
    --btn-bg2: rgba(var(--accent), .08);
    --btn-primary-bg: rgba(var(--accent), .18);
    --btn-primary-bg2: rgba(var(--accent), .14);

    --header-h: 86px;
    /* used for anchor offset */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    background: var(--bg);
    position: relative;

    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);

    /* prevents layout shift from scrollbar appearing/disappearing */
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    background: transparent;
    line-height: 1.55;
    position: relative;
    overflow-x: hidden;
}

/* background */
html::before {
    content: "";
    position: fixed;
    inset: -20vh -20vw;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1200px 900px at 18% 10%,
            rgba(var(--accent), .20) 0%,
            rgba(var(--accent), .10) 40%,
            rgba(var(--accent), 0) 78%),
        radial-gradient(1100px 800px at 86% 14%,
            rgba(var(--accent2), .16) 0%,
            rgba(var(--accent2), .08) 42%,
            rgba(var(--accent2), 0) 78%),
        radial-gradient(1000px 700px at 60% 92%,
            rgba(var(--accent3), .14) 0%,
            rgba(var(--accent3), .07) 45%,
            rgba(var(--accent3), 0) 78%),
        linear-gradient(180deg,
            rgba(255, 255, 255, .55) 0%,
            rgba(255, 255, 255, .15) 45%,
            rgba(255, 255, 255, 0) 80%);
    filter: blur(18px);
    opacity: .75;
    transform: translateZ(0);
}

html::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .020;
    mix-blend-mode: overlay;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, .45) 0px,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0) 2px);
    transform: translateZ(0);
}

body>* {
    position: relative;
    z-index: 1;
}

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

a:hover {
    text-decoration: underline;
}

p {
    margin: 0 0 10px;
}

h1,
h2,
h3 {
    margin: 0 0 10px;
}

.container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.skip-link:focus {
    left: 12px;
    z-index: 1000;
}

/* header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--bg) 70%, rgba(255, 255, 255, .45));
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(var(--accent), .12);
    border: 1px solid color-mix(in oklab, rgba(var(--accent), .45) 40%, var(--border));
}

.brand-text {
    opacity: .92;
}

.nav {
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    opacity: .86;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .85);
    color: var(--text);
}

.header-cta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

/* buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--btn-bg);
    font-weight: 650;
    text-decoration: none;
    transition: background .15s ease, transform .08s ease;
}

.btn:hover {
    background: var(--btn-bg2);
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
}

.btn-link {
    background: transparent;
    border-color: transparent;
    padding-left: 6px;
    padding-right: 6px;
    opacity: .9;
}

.btn-link:hover {
    background: transparent;
    text-decoration: underline;
}

.btn-primary {
    background: var(--btn-primary-bg);
    border-color: color-mix(in oklab, rgba(var(--accent), .55) 35%, var(--border));
}

.btn-primary:hover {
    background: var(--btn-primary-bg2);
}

/* hero */
.hero {
    padding: 44px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: start;
}

.kicker {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(var(--accent), .07);
    color: var(--muted);
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--muted);
    margin-bottom: 14px;
}

.bullets {
    margin: 0 0 16px;
    padding-left: 18px;
    opacity: .92;
}

.hero-panels {
    margin-top: var(--space);
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0 10px;
}

.note {
    color: var(--muted);
    font-size: 13px;
}

/* sections */
.section {
    padding: calc(var(--space) * 2) 0;
}

.section-head {
    margin-bottom: var(--space);
}

h2 {
    font-size: clamp(20px, 2.6vw, 26px);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 16px;
    letter-spacing: -0.01em;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

/* grids + cards */
.grid {
    display: grid;
    gap: var(--space);
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    border: 1px solid var(--border);
    background: color-mix(in oklab, rgba(255, 255, 255, .75) 60%, var(--surface));
    border-radius: var(--radius2);
    padding: var(--pad);
    box-shadow: var(--shadow);
}

.card> :first-child {
    margin-top: 0;
}

.card> :last-child {
    margin-bottom: 0;
}

.single-card {
    margin-top: var(--space);
    justify-items: center;
}

.single-card .card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.hero-card .card {
    position: sticky;
    top: 84px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.label {
    color: var(--muted);
}

.value {
    text-align: right;
}

.card-sep {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

/* tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(var(--accent), .06);
}

/* lists */
.list {
    margin: 0;
    padding-left: 18px;
}

.list li {
    margin: 0 0 6px;
}

.list li:last-child {
    margin-bottom: 0;
}

/* timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.timeline li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
}

.timeline-compact li {
    grid-template-columns: 60px 1fr;
}

.time {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* wide cards */
.card-wide {
    padding: clamp(16px, 2.2vw, 22px);
    margin-top: var(--space);
}

.wide-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.exp-grid {
    margin-top: 10px;
}

.exp-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px;
    background: rgba(255, 255, 255, .55);
}

.exp-item p {
    margin: 0 0 6px;
}

.exp-item p:last-child {
    margin: 0;
}

/* footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 10px;
    background: color-mix(in oklab, var(--bg) 75%, rgba(255, 255, 255, .35));
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: var(--text);
}

/* hero photo */
.hero-profile {
    display: grid;
    gap: 14px;
    max-width: 385px;
}

.hero-photo {
    border-radius: calc(var(--radius2) - 6px);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
    position: relative;
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .20), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(var(--accent), .18), transparent 60%);
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: .9;
}

.avatar {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(1.03) contrast(1.02);
}

@media (max-width: 860px) {
    :root {
        --header-h: 72px;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .brand {
        min-width: 0;
        gap: 10px;
    }

    .header-cta {
        gap: 8px;
        justify-self: end;
    }

    .header-cta .btn {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .nav {
        position: relative;
        justify-self: end;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;

        border-radius: 14px;
        border: 1px solid color-mix(in oklab, rgba(var(--accent), .45) 40%, var(--border));
        background: rgba(var(--accent), .10);
        color: rgba(0, 0, 0, .82);

        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle {
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
        white-space: nowrap;
    }

    .nav-toggle::before {
        content: "";
        position: absolute;
        width: 18px;
        height: 12px;
        background:
            linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
            linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
            linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
        opacity: .95;
    }

    .nav-toggle[aria-expanded="true"]::before {
        width: 18px;
        height: 18px;
        background:
            linear-gradient(currentColor, currentColor) 50% 50% / 18px 2px no-repeat,
            linear-gradient(currentColor, currentColor) 50% 50% / 2px 18px no-repeat;
        transform: rotate(45deg);
    }

    .nav-toggle:hover {
        background: rgba(var(--accent), .08);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;

        width: min(280px, calc(100vw - 40px));
        padding: 10px;

        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255, 255, 255, .92);
        box-shadow: var(--shadow);

        flex-direction: column;
        gap: 6px;
        z-index: 50;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 12px;
        border-radius: 12px;
        opacity: 1;
        white-space: nowrap;
    }

    .nav-menu a:hover {
        background: rgba(var(--accent), .10);
        text-decoration: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        justify-self: center;
        width: 100%;
    }

    .hero-profile {
        margin: 0 auto;
        width: min(420px, 100%);
    }

    .hero-card .card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card .card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 980px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }

    .cards-2 {
        grid-template-columns: 1fr;
    }

    .exp-grid {
        grid-template-columns: 1fr;
    }
}