@font-face {
    font-family: "Resume Numerals";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/resume/fonts/resume-numerals.woff") format("woff");
    unicode-range: U+0020, U+0025, U+0028-003B, U+007E, U+00B7, U+00D7, U+2013-2014;
}

:root {
    --nav-offset: 72px;
    --paper: #FBFAF6;
    --ink: #0F172A;
    --sub: #475569;
    --line: rgba(15, 23, 42, 0.09);
    --cobalt: #2563EB;
    --cobalt-deep: #1D4ED8;
    --card-yellow: #FEF08A;
    --card-purple: #E9D5FF;
    --card-lime: #D9F99D;
    --card-rose: #FFE4E6;
    --card-blue: #DBEAFE;
    --shadow-contact: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-ambient: 0 16px 44px rgba(15, 23, 42, 0.12);
    --radius-pill: 999px;
    --radius-card: 40px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --font-number: "Resume Numerals", Georgia, "Songti SC", serif;
    --font-mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --resume-card-width: clamp(320px, 30vw, 420px);
    --resume-card-height: 436px;
}

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

html {
    scroll-behavior: auto;
    scroll-padding-top: calc(var(--nav-offset) + 18px);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: radial-gradient(1200px 600px at 12% -4%, #FFFFFF 0%, rgba(255, 255, 255, 0) 55%);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: 1;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.09 0 0 0 0 0.16 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    content: "";
    opacity: 0.45;
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}

main,
.navbar,
.resume-world-portal,
.site-footer {
    position: relative;
    top: 0;
    z-index: 2;
}

main {
    padding-top: var(--nav-offset);
}

html[data-resume-intro-state="pending"] :where(
    .labs-subtitle,
    .hero-title,
    .hero-quote,
    .hero-waypoints,
    .cards-container
) {
    opacity: 0;
    transform: translateY(18px);
}

/* 入场/转场等待期间锁定页面滚动:否则用户在云幕揭幕途中滑动,
   会滚进一个 hero 与卡片都还处于待入场隐藏状态的空页(“消失阶段”),
   并触发 ScrollTrigger 在错误位置上初始化。 */
html[data-resume-intro-state="pending"] body {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.62);
    outline-offset: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: var(--nav-offset);
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 246, 0.94);
}

.nav-left,
.nav-right,
.nav-center {
    display: flex;
    flex: 1;
    align-items: center;
}

.nav-left,
.nav-right {
    gap: 24px;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    justify-content: center;
}

.nav-link,
.logo,
.login-btn {
    font-family: var(--font-mono);
}

.nav-link {
    color: var(--sub);
    font-size: 0.86rem;
    transition: color 180ms ease;
}

.nav-link:hover {
    color: var(--cobalt);
}

.logo {
    color: var(--cobalt);
    font-size: 1.16rem;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 16px;
    color: var(--sub);
    font-size: 1rem;
}

.social-icons a {
    transition: color 180ms ease, transform 180ms var(--ease-out);
}

.social-icons a:hover {
    color: var(--cobalt);
    transform: translateY(-1px);
}

.divider {
    width: 1px;
    height: 16px;
    background: rgba(71, 85, 105, 0.32);
}

.login-btn {
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    box-shadow: inset 0 -2px rgba(0, 0, 0, 0.28), var(--shadow-contact);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 180ms var(--ease-out);
}

.login-btn:hover {
    transform: translateY(-1px);
}

/* Live 3D return portal */
.resume-world-portal {
    --resume-world-portal-size: clamp(158.4px, 12.8vw, 179.2px);
    --resume-world-portal-half-size: clamp(79.2px, 6.4vw, 89.6px);
    position: absolute;
    z-index: 1200;
    top: calc(clamp(84px, 7.2vw, 106px) + var(--resume-world-portal-half-size));
    left: calc(clamp(20px, 2.4vw, 36px) + var(--resume-world-portal-half-size));
    display: block;
    width: var(--resume-world-portal-size);
    min-width: 44px;
    min-height: 44px;
    aspect-ratio: 1 / 1;
    contain: layout;
    isolation: isolate;
    touch-action: manipulation;
    transform: translate3d(-50%, -50%, 0);
    transition:
        top 420ms cubic-bezier(0.2, 0.86, 0.24, 1),
        left 420ms cubic-bezier(0.2, 0.86, 0.24, 1),
        width 420ms cubic-bezier(0.2, 0.86, 0.24, 1),
        filter 220ms ease,
        opacity 180ms ease;
}

.resume-world-portal__visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    filter:
        drop-shadow(-10px -8px 20px rgba(255, 209, 154, 0.18))
        drop-shadow(12px 10px 26px rgba(49, 99, 255, 0.28))
        drop-shadow(0 18px 26px rgba(15, 23, 42, 0.16));
    transform: translateZ(0) scale(1);
    transform-origin: 50% 50%;
    transition: transform 260ms var(--ease-out), filter 220ms ease;
}

.resume-world-portal__visual::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 50%;
    background-image: var(--resume-world-handoff-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    will-change: opacity;
}

html[data-resume-handoff-snapshot="available"]
    .resume-world-portal:not([data-resume-planet-asset-state="ready"])
    .resume-world-portal__visual::before {
    opacity: 1;
}

.resume-mini-planet,
.resume-mini-planet > div,
.resume-mini-planet canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.resume-mini-planet {
    position: relative;
    z-index: 1;
    aspect-ratio: 1 / 1;
    pointer-events: none;
}

.resume-world-portal:hover,
.resume-world-portal:focus-visible {
    filter: saturate(1.08);
    outline: none;
}

.resume-world-portal:focus-visible .resume-world-portal__visual {
    outline: 2px solid rgba(37, 99, 235, 0.7);
    outline-offset: 8px;
}

.resume-world-portal:hover .resume-world-portal__visual,
.resume-world-portal:focus-visible .resume-world-portal__visual {
    filter:
        drop-shadow(-10px -8px 24px rgba(255, 209, 154, 0.24))
        drop-shadow(12px 10px 30px rgba(49, 99, 255, 0.4))
        drop-shadow(0 20px 30px rgba(15, 23, 42, 0.18));
    transform: translateZ(0) scale(1.035);
}

/* Pinned hero and card fan */
.experiments-section {
    position: relative;
    min-height: calc(100svh - var(--nav-offset));
    scroll-margin-top: var(--nav-offset);
}

.experiments-sticky {
    position: relative;
    height: calc(100svh - var(--nav-offset));
    min-height: 0;
    overflow: hidden;
}

.experiments-header-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 312px;
    flex: none;
    margin-top: 30px;
    pointer-events: none;
    will-change: transform;
}

.section-header {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 24px;
    text-align: center;
    will-change: opacity, transform;
}

.labs-subtitle {
    min-height: 1.4em;
    color: var(--cobalt);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-title {
    margin-top: 16px;
    color: var(--cobalt);
    font-size: clamp(3rem, 5.6vw, 5rem);
    line-height: 1.08;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
}

.hero-quote {
    margin-top: 22px;
    color: var(--ink);
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.32;
}

.hero-quote span {
    white-space: nowrap;
}

.hero-quote em {
    background: linear-gradient(transparent 80%, rgba(37, 99, 235, 0.16) 80%);
    color: var(--cobalt);
    font-style: normal;
}

.hero-waypoints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9em;
    margin-top: 18px;
    color: rgba(15, 23, 42, 0.45);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.2em;
}

.hero-waypoints i {
    color: var(--cobalt);
    font-style: normal;
    opacity: 0.7;
}

.header-fresh {
    opacity: 0;
    pointer-events: none;
}

.header-fresh h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.15;
}

.header-fresh p {
    margin-top: 10px;
    color: var(--sub);
    font-size: 0.98rem;
}

.cards-wrapper {
    position: relative;
    z-index: 12;
    width: 100%;
    height: calc(var(--resume-card-height) + 48px);
    margin-top: 4px;
    will-change: transform;
}

.cards-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    gap: 20px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 6px 48px 28px;
    overscroll-behavior-x: contain;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.cards-container.is-fanned,
.cards-container.is-transitioning {
    scroll-snap-type: none;
}

.cards-container.is-flattened {
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.cards-container.is-transitioning .experiment-card {
    pointer-events: none;
}

.experiment-card {
    --card-bg: #FFFFFF;
    --card-deep: var(--ink);
    --card-scene: var(--card-deep);
    --card-text: var(--ink);
    --card-muted: rgba(15, 23, 42, 0.72);
    position: relative;
    display: flex;
    width: var(--resume-card-width);
    min-width: var(--resume-card-width);
    max-width: var(--resume-card-width);
    height: var(--resume-card-height);
    flex: 0 0 var(--resume-card-width);
    overflow: hidden;
    padding: 30px 26px 26px;
    border: 0;
    border-radius: var(--radius-card);
    background-color: var(--card-bg);
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 46%);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.05),
        var(--shadow-contact),
        var(--shadow-ambient);
    color: var(--card-text);
    cursor: pointer;
    scroll-snap-align: center;
    transform-origin: 50% 100%;
    transition:
        top 320ms var(--ease-out),
        background-color 320ms var(--ease-out),
        color 320ms var(--ease-out),
        box-shadow 300ms var(--ease-out);
    will-change: transform;
}

.experiment-card::after {
    position: absolute;
    right: 16px;
    bottom: 2px;
    color: var(--card-scene);
    content: attr(data-card-number);
    font-family: var(--font-number);
    font-size: 5.6rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1;
    opacity: 0.1;
    pointer-events: none;
    transition: color 300ms var(--ease-out), opacity 300ms var(--ease-out);
}

.resume-experience-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.resume-experience-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: var(--card-deep);
    content: "";
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.card-scene {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--card-scene);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.35;
    transition: color 220ms ease;
}

.card-scene::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: currentColor;
    content: "";
    opacity: 0.85;
}

.experiment-card h3 {
    color: currentColor;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    line-height: 1.32;
    text-wrap: balance;
}

.resume-experience-card h3 {
    font-size: 1.22rem;
}

.card-meta {
    color: rgba(15, 23, 42, 0.55);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    line-height: 1.55;
    transition: color 220ms ease;
}

.card-summary {
    min-height: 6.4em;
    color: var(--card-muted);
    font-size: 0.86rem;
    line-height: 1.8;
    transition: color 220ms ease;
}

.card-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.card-tag,
.card-stat {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    line-height: 1;
}

.card-tag {
    padding: 6px 12px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: transparent;
    color: rgba(15, 23, 42, 0.66);
}

.card-stat {
    gap: 7px;
    padding: 7px 13px;
    background: var(--card-deep);
    box-shadow: inset 0 -1.5px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-stat::before {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    content: "";
}

.card-btn {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--ink);
    box-shadow: inset 0 -2px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 180ms var(--ease-out), background-color 220ms ease, color 220ms ease;
}

.card-btn:hover {
    transform: translateY(-1px);
}

.yellow-card {
    --card-bg: var(--card-yellow);
    --card-deep: #A16207;
    --card-scene: #A16207;
    --card-hover: #D97706;
}

.purple-card {
    --card-bg: var(--card-purple);
    --card-deep: #7C3AED;
    --card-scene: #7C3AED;
    --card-hover: #7C3AED;
}

.lime-card {
    --card-bg: var(--card-lime);
    --card-deep: #2F9E44;
    --card-scene: #2F9E44;
    --card-hover: #2F9E44;
}

.rose-card {
    --card-bg: var(--card-rose);
    --card-deep: #DB2777;
    --card-scene: #DB2777;
    --card-hover: #DB2777;
}

.blue-card {
    --card-bg: var(--card-blue);
    --card-deep: #1D4ED8;
    --card-scene: #1D4ED8;
    --card-hover: #1D4ED8;
}

.film-card {
    --card-bg: #F7ECDA;
    --card-deep: #C77E3D;
    --card-scene: #A05F22;
    --card-hover: #B36A28;
}

.teal-card {
    --card-bg: #E2F0EC;
    --card-deep: #2C8C7A;
    --card-scene: #20705F;
    --card-hover: #23705F;
}

.steel-card {
    --card-bg: #E7EDF6;
    --card-deep: #4A6FA5;
    --card-scene: #3A5A88;
    --card-hover: #3A5A88;
}

.plum-card {
    --card-bg: #EFE8F3;
    --card-deep: #8C6BA8;
    --card-scene: #71548A;
    --card-hover: #71548A;
}

@media (hover: hover) and (pointer: fine) {
    .cards-container:not(.is-transitioning) .experiment-card:hover,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered {
        z-index: 300 !important;
        top: -10px;
        background-color: var(--card-hover);
        background-image: none;
        box-shadow: var(--shadow-contact), 0 34px 76px rgba(15, 23, 42, 0.26);
        color: #FFFFFF;
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover::after,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered::after {
        color: #FFFFFF;
        opacity: 0.16;
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover .card-scene,
    .cards-container:not(.is-transitioning) .experiment-card:hover .card-meta,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-scene,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-meta {
        color: rgba(255, 255, 255, 0.75);
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover .card-summary,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-summary {
        color: rgba(255, 255, 255, 0.88);
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover .card-tag,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-tag {
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.14);
        color: #FFFFFF;
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover .card-stat,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-stat {
        background: #FFFFFF;
        color: var(--ink);
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover .card-stat::before,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-stat::before {
        background: rgba(15, 23, 42, 0.55);
    }

    .cards-container:not(.is-transitioning) .experiment-card:hover .card-btn,
    .cards-container:not(.is-transitioning) .experiment-card.is-hovered .card-btn {
        background: #FFFFFF;
        box-shadow: inset 0 -2px rgba(0, 0, 0, 0.12);
        color: var(--ink);
    }
}

/* Career */
.resume-section {
    width: min(1180px, calc(100% - 48px));
    margin: 120px auto 0;
    scroll-margin-top: calc(var(--nav-offset) + 16px);
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.2;
}

.section-heading > span {
    color: var(--sub);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
}

.career-item {
    display: grid;
    grid-template-columns: 110px 300px 1fr;
    gap: 28px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--nav-offset) + 18px);
}

.career-item__index,
.capability-index {
    color: rgba(37, 99, 235, 0.3);
    font-family: var(--font-number);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.career-item__index {
    font-size: 3rem;
    line-height: 1;
}

.career-item__meta p {
    color: var(--sub);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.career-item__meta h3 {
    margin: 6px 0 4px;
    font-size: 1.2rem;
    line-height: 1.45;
}

.career-item__meta span {
    color: var(--sub);
    font-size: 0.85rem;
}

.career-subsection {
    position: relative;
    padding: 0 0 24px 26px;
}

.career-subsection::before {
    position: absolute;
    top: 8px;
    bottom: -4px;
    left: 7px;
    width: 1.5px;
    background: var(--line);
    content: "";
}

.career-subsection::after {
    position: absolute;
    top: 6px;
    left: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cobalt);
    content: "";
}

.career-subsection--secondary::after {
    background: #EA580C;
}

.career-subsection:last-child {
    padding-bottom: 0;
}

.career-subsection:last-child::before {
    bottom: 14px;
}

.career-subsection--plain {
    padding: 0;
}

.career-subsection--plain::before,
.career-subsection--plain::after {
    content: none;
}

.career-subsection h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.career-subsection h4 small {
    margin-left: 8px;
    color: var(--sub);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
}

.career-bullets {
    list-style: none;
    color: var(--sub);
    font-size: 0.92rem;
    line-height: 1.9;
}

.career-bullets li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 14px;
}

.career-bullets li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.28);
    content: "";
}

.career-bullets strong {
    color: var(--ink);
}

.career-item:target {
    animation: timeline-flash 1.8s var(--ease-out) both;
}

@keyframes timeline-flash {
    0% {
        background: rgba(37, 99, 235, 0.1);
    }

    100% {
        background: transparent;
    }
}

/* Capabilities */
.capabilities-section {
    margin-top: 120px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
}

.capabilities-grid article {
    padding-top: 18px;
    border-top: 2px solid var(--ink);
}

.capability-index {
    font-size: 1.35rem;
}

.capabilities-grid h3 {
    margin: 8px 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.capability-claim {
    min-height: 2.6em;
    margin-bottom: 12px;
    color: var(--cobalt);
    font-size: 0.8rem;
    line-height: 1.65;
}

.capability-proof {
    width: fit-content;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-left: 3px solid var(--cobalt);
    background: rgba(37, 99, 235, 0.07);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.55;
}

.capabilities-grid ul {
    list-style: none;
    color: var(--sub);
    font-size: 0.83rem;
    line-height: 2.1;
}

.capabilities-grid li::before {
    margin-right: 8px;
    color: rgba(15, 23, 42, 0.4);
    content: "·";
}

/* Project summary modal */
.detail-modal-overlay {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.detail-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-modal {
    position: relative;
    width: min(620px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 220ms ease, transform 300ms var(--ease-out);
}

.detail-modal-overlay.active .detail-modal {
    opacity: 1;
    transform: none;
}

.detail-modal-accent {
    position: sticky;
    z-index: 3;
    top: 0;
    height: 6px;
    border-radius: 24px 24px 0 0;
    background: var(--modal-accent, var(--cobalt));
}

.detail-close {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ink);
    cursor: pointer;
    transition: background-color 180ms ease;
}

.detail-close:hover {
    background: rgba(15, 23, 42, 0.12);
}

.detail-header {
    padding: 22px 56px 16px 30px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
}

.detail-header .card-scene {
    color: var(--modal-accent, var(--cobalt));
}

.detail-header h2 {
    margin-top: 8px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.detail-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 30px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
}

.detail-metrics div {
    min-width: min(145px, 100%);
}

.detail-metrics strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-number);
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.25;
}

.detail-metrics span {
    color: var(--sub);
    font-size: 0.68rem;
}

.detail-decisions {
    padding: 16px 30px 0;
    color: var(--sub);
    font-size: 0.88rem;
    line-height: 1.95;
}

.detail-decisions strong {
    color: var(--ink);
}

.detail-body blockquote {
    margin: 16px 30px 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--modal-accent, var(--cobalt));
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.65;
}

.detail-stage {
    padding: 12px 30px 0;
    color: var(--sub);
    font-size: 0.72rem;
    line-height: 1.7;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 30px 26px;
}

.detail-page-link,
.detail-world-link {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    line-height: 1;
    transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.detail-page-link {
    padding: 12px 24px;
    border: 0;
    background: var(--cobalt);
    box-shadow: inset 0 -2px rgba(0, 0, 0, 0.18);
    color: #FFFFFF;
    font-weight: 600;
}

.detail-page-link:hover {
    background: var(--cobalt-deep);
    transform: translateY(-1px);
}

.detail-page-link span {
    margin-left: 8px;
}

.detail-world-link {
    padding: 12px 22px;
    border: 1.5px solid rgba(15, 23, 42, 0.14);
    color: var(--sub);
}

.detail-world-link:hover {
    border-color: var(--cobalt);
    color: var(--cobalt);
}

/* Footer */
.site-footer {
    margin-top: 130px;
    padding: 80px 40px 28px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-message {
    max-width: 36em;
    margin: 0 auto 44px;
    color: var(--sub);
    line-height: 2;
}

.footer-brand-word {
    appearance: none;
    border: 0;
    background: none;
    color: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: clamp(4rem, 13vw, 11rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.95;
    -webkit-text-stroke: 2px rgba(37, 99, 235, 0.75);
    transition: color 400ms var(--ease-out);
    user-select: none;
}

.footer-brand-word:hover {
    color: rgba(37, 99, 235, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin-top: 40px;
    color: var(--sub);
    font-size: 0.78rem;
}

.footer-bottom a:hover {
    color: var(--cobalt);
}

@media (max-width: 1100px) {
    .career-item {
        grid-template-columns: 70px 1fr;
    }

    .career-item__body {
        grid-column: 1 / -1;
    }

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

@media (max-width: 860px) {
    :root {
        --nav-offset: 64px;
        --resume-card-width: min(100%, 520px);
        --resume-card-height: auto;
    }

    .navbar {
        min-height: var(--nav-offset);
        padding: 12px 16px;
    }

    .nav-left {
        gap: 14px;
    }

    .nav-link {
        font-size: 0.74rem;
    }

    .social-icons,
    .divider {
        display: none;
    }

    .login-btn {
        padding: 8px 14px;
        font-size: 0.74rem;
    }

    .logo {
        font-size: 1rem;
    }

    .resume-world-portal {
        --resume-world-portal-size: 76.8px;
        --resume-world-portal-half-size: 38.4px;
        top: calc(84px + var(--resume-world-portal-half-size));
        left: calc(14px + var(--resume-world-portal-half-size));
        width: var(--resume-world-portal-size);
    }

    .experiments-section,
    .experiments-sticky {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .experiments-sticky {
        padding-top: 1px;
    }

    .experiments-header-wrapper {
        height: auto;
        margin-top: 64px;
    }

    .section-header {
        position: static;
        min-height: 0;
        opacity: 1 !important;
        transform: none !important;
    }

    .labs-subtitle {
        max-width: calc(100% - 116px);
        margin-left: auto;
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .hero-title {
        margin-top: 14px;
        font-size: clamp(2rem, 8vw, 2.8rem);
        letter-spacing: 0.12em;
        line-height: 1.16;
        text-indent: 0.12em;
    }

    .hero-quote {
        max-width: 30em;
        margin-top: 16px;
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .hero-quote span {
        white-space: normal;
    }

    .hero-waypoints {
        max-width: 30em;
        gap: 0.55em;
        flex-wrap: wrap;
        margin-top: 14px;
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .header-fresh {
        margin-top: 44px;
    }

    .header-fresh h2 {
        font-size: 1.9rem;
    }

    .header-fresh p {
        max-width: 30em;
        line-height: 1.7;
    }

    .cards-wrapper {
        height: auto;
        margin-top: 20px !important;
        transform: none !important;
    }

    .cards-container,
    .cards-container.is-flattened,
    .cards-container.is-fanned,
    .cards-container.is-transitioning {
        display: flex;
        height: auto;
        align-items: center;
        flex-direction: column;
        gap: 18px;
        overflow: visible;
        padding: 0 20px;
        scroll-snap-type: none;
    }

    .experiment-card {
        width: min(100%, 520px);
        min-width: 0;
        max-width: 520px;
        height: auto;
        min-height: 0;
        flex-basis: auto;
        order: 10;
        top: 0 !important;
        transform: none !important;
    }

    .experiment-card[data-detail="blobi"] {
        order: 1;
    }

    .experiment-card[data-detail="final-world"] {
        order: 2;
    }

    .experiment-card[data-detail="coding-ranch"] {
        order: 3;
    }

    .experiment-card[data-detail="creator-growth"] {
        order: 4;
    }

    .experiment-card[data-detail="b-talk"] {
        order: 5;
    }

    .resume-experience-card:nth-of-type(6) {
        order: 6;
    }

    .resume-experience-card:nth-of-type(7) {
        order: 7;
    }

    .resume-experience-card:nth-of-type(8) {
        order: 8;
    }

    .resume-experience-card:nth-of-type(9) {
        order: 9;
    }

    .card-summary {
        min-height: 0;
    }

    .card-btn {
        margin-top: 12px;
    }

    .resume-section {
        width: min(100% - 40px, 680px);
        margin-top: 96px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .career-item {
        grid-template-columns: 52px 1fr;
        gap: 16px;
        padding: 28px 0;
    }

    .career-item__index {
        font-size: 2.2rem;
    }

    .career-subsection h4 small {
        display: block;
        margin: 4px 0 0;
        line-height: 1.6;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .capability-claim {
        min-height: 0;
    }

    .site-footer {
        margin-top: 96px;
        padding: 64px 20px 24px;
    }

    .footer-message {
        font-size: 0.9rem;
    }

    .footer-bottom {
        gap: 16px;
        flex-wrap: wrap;
    }
}

html[data-resume-motion-mode="reduced"] .experiments-section,
html[data-resume-motion-mode="reduced"] .experiments-sticky {
    height: auto;
    min-height: 0;
    overflow: visible;
}

html[data-resume-motion-mode="reduced"] .experiments-header-wrapper {
    height: auto;
}

html[data-resume-motion-mode="reduced"] .section-header {
    position: static;
    opacity: 1 !important;
    transform: none !important;
}

html[data-resume-motion-mode="reduced"] .header-fresh {
    margin-top: 44px;
}

html[data-resume-motion-mode="reduced"] .cards-wrapper {
    height: calc(var(--resume-card-height) + 48px);
    margin-top: 20px !important;
    transform: none !important;
}

@media (max-width: 560px) {
    .nav-center {
        display: none;
    }

    .nav-left {
        flex: 2;
    }

    .nav-right {
        flex: 0 0 auto;
    }

    .experiment-card {
        padding: 28px 22px 24px;
        border-radius: 32px;
    }

    .card-chips {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-modal-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .detail-modal {
        width: 100%;
        max-height: 90svh;
        border-radius: 22px;
    }

    .detail-header,
    .detail-metrics,
    .detail-decisions,
    .detail-actions {
        padding-right: 22px;
        padding-left: 22px;
    }

    .detail-body blockquote {
        margin-right: 22px;
        margin-left: 22px;
    }

    .detail-stage {
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .resume-world-portal,
    .resume-world-portal__visual {
        transition: none;
    }
}
