:root {
    color-scheme: dark;
    --page: #080808;
    --surface: #0d0d0d;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.075);
    --text: #efefed;
    --muted: #858582;
    --dim: #5d5d59;
    --mono: "DM Mono", monospace;
    --sans: "Manrope", sans-serif;
    --display: "Oxanium", "Manrope", sans-serif;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 36px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .site-cursor {
        position: fixed;
        z-index: 2000;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        pointer-events: none;
        opacity: 0;
        transition: opacity 160ms ease;
    }

    .site-cursor.is-visible {
        opacity: 1;
    }

    .site-cursor__trail {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
    }

    .site-cursor__dash {
        position: absolute;
        width: 8px;
        height: 2px;
        border-radius: 2px;
        background: #ffd39b;
        box-shadow: 0 0 5px rgba(244, 190, 126, 0.72);
        transform: translate(-50%, -50%) rotate(var(--trail-angle, 0deg));
        opacity: var(--trail-opacity, 0);
        transition: opacity 120ms ease, background-color 160ms ease;
    }

    .site-cursor.is-hovering .site-cursor__dash {
        background: #fff0d9;
        box-shadow: 0 0 7px rgba(255, 211, 155, 0.9);
    }
}

.site-loader {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    background: #080808;
    opacity: 1;
    transition: opacity 420ms ease, visibility 420ms ease;
    visibility: visible;
}

.site-loader-seen .site-loader {
    display: none;
}

.site-loader.is-dismissed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.site-loader-logo {
    width: clamp(86px, 16vw, 128px);
    height: clamp(86px, 16vw, 128px);
    object-fit: contain;
    animation: site-loader-pulse 1.4s ease-in-out infinite;
}

.site-loader-name {
    color: #efefed;
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-loader-indicator {
    width: 36px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.site-loader-indicator::after {
    display: block;
    width: 100%;
    height: 100%;
    background: #d5a46f;
    content: "";
    animation: site-loader-progress 1.1s ease-in-out infinite;
    transform: translateX(-100%);
}

@keyframes site-loader-pulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes site-loader-progress {
    to {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader,
    .site-loader-logo,
    .site-loader-indicator::after {
        animation: none;
        transition-duration: 0.01ms;
    }
}

body.home-page {
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
    background: var(--page);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-page a {
    color: inherit;
    text-decoration: none;
}

.home-page button,
.home-page summary {
    font: inherit;
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page summary:focus-visible {
    outline: 1px solid #ddd;
    outline-offset: 5px;
}

.ambient-grid {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: 0.19;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.6px, transparent 0.6px);
    background-size: 14px 14px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

.network-background-canvas {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.9;
}

.structural-background {
    position: absolute;
    z-index: 0;
    inset: 0 auto auto 50%;
    width: 100vw;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
    contain: strict;
    transform: translateX(-50%);
}

.ambient-grid::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        470px circle at var(--pointer-x, 50%) var(--pointer-y, 30%),
        rgba(255, 255, 255, 0.045),
        transparent 78%
    );
    content: "";
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1060px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 15px;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 23px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(9, 9, 9, 0.82);
    backdrop-filter: blur(18px);
}

.audio-player {
    display: flex;
    width: clamp(170px, 19vw, 220px);
    min-width: 0;
    height: 40px;
    flex: 0 1 auto;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.audio-player:hover,
.audio-player:focus-within {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
}

.audio-toggle {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    cursor: pointer;
    transition:
        background-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.audio-toggle:hover,
.audio-toggle:focus-visible,
.audio-toggle[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
    transform: scale(1.04);
}

.audio-toggle svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.audio-toggle .audio-icon-pause {
    display: none;
}

.audio-toggle .audio-icon-music {
    display: none;
}

.audio-toggle[aria-pressed="true"] .audio-icon-play {
    display: none;
}

.audio-toggle[aria-pressed="true"] .audio-icon-pause {
    display: block;
}

.audio-player-details {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 3px;
}

.audio-player-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.audio-track-title {
    overflow: hidden;
    color: #d0d0cb;
    font-size: 9px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-time {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    white-space: nowrap;
}

.audio-seek {
    width: 100%;
    height: 3px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(to right, #d0d0cb var(--seek-progress, 0%), rgba(255, 255, 255, 0.14) var(--seek-progress, 0%));
    cursor: pointer;
}

.audio-seek:disabled {
    cursor: default;
    opacity: 0.55;
}

.audio-seek::-webkit-slider-thumb {
    width: 7px;
    height: 7px;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: #efefed;
}

.audio-seek::-moz-range-thumb {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: #efefed;
}

.site-time {
    display: flex;
    min-width: 132px;
    flex: 0 0 auto;
    flex-direction: column;
    line-height: 1.35;
    text-decoration: none;
}

.site-greeting {
    color: var(--text);
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 220ms ease, transform 220ms ease;
}

.site-time time {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    transition: color 220ms ease, letter-spacing 220ms ease, transform 220ms ease;
}

.site-time:hover .site-greeting,
.site-time:focus-visible .site-greeting {
    color: #fff;
    transform: translateX(2px);
}

.site-time:hover time,
.site-time:focus-visible time {
    color: #d8d8d4;
    letter-spacing: 0.12em;
    transform: translateX(4px);
}

.desktop-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #aaa;
    font-size: 12px;
}

.desktop-nav::before {
    position: absolute;
    z-index: 0;
    top: var(--nav-pill-top, 0);
    left: var(--nav-pill-left, 0);
    width: var(--nav-pill-width, 0);
    height: var(--nav-pill-height, 0);
    border-radius: 999px;
    background: #f2f2ef;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition:
        top 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
        left 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
        width 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
        height 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 180ms ease;
}

.desktop-nav.has-active-pill::before {
    opacity: 1;
}

.desktop-nav a,
.social-links a,
.inline-link,
.text-link {
    position: relative;
    z-index: 1;
    transition:
        color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.text-link:hover {
    color: #fff;
}

.desktop-nav a.is-active,
.desktop-nav a.is-active:hover,
.desktop-nav a.is-active:focus-visible {
    color: #080808;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    transform: translateY(-2px);
}

.desktop-nav a span {
    color: #72726f;
}

.desktop-nav a.is-active span {
    color: #555;
}

.desktop-nav .nav-profile {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid rgba(38, 38, 38, 0.6);
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.4);
    color: #aaa;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.desktop-nav .nav-profile:hover,
.desktop-nav .nav-profile:focus-visible {
    border-color: rgba(63, 63, 63, 0.8);
    background: rgba(38, 38, 38, 0.6);
    color: #fff;
}

.desktop-nav .nav-profile > span {
    color: #72726f;
}

.desktop-nav .nav-research-projects {
    display: inline-flex;
    min-height: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 12px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.desktop-nav .nav-research-projects:hover,
.desktop-nav .nav-research-projects:focus-visible {
    background: rgba(38, 38, 38, 0.6);
    color: #fff;
}

.nav-research-projects svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.nav-research-projects > span:last-child {
    color: #72726f;
}

.theme-toggle {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    cursor: pointer;
    transition:
        border-color 240ms ease,
        background-color 240ms ease,
        color 240ms ease,
        transform 240ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.theme-icon-moon,
.mobile-theme-toggle {
    display: none;
}

.mobile-profile-link {
    display: none;
}

.menu-toggle,
.mobile-menu {
    display: none;
}

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 690px;
    align-items: center;
    padding: 100px 5.5% 116px;
    border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 610px);
}

.eyebrow,
.section-index,
.mono-label,
.hero-index,
.scroll-cue,
.item-company,
.item-date,
.education-year,
.menu-note,
.site-footer {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9a9a96;
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #a0aa91;
    box-shadow: 0 0 12px rgba(160, 170, 145, 0.45);
}

.hero-marker {
    position: relative;
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d5a46f;
    box-shadow: 0 0 6px rgba(213, 164, 111, 0.45);
}

.hero-marker::after {
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(213, 164, 111, 0.65);
    border-radius: 50%;
    content: "";
    animation: hero-marker-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-marker-pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.65);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.6);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.65);
    }
}

.eyebrow-divider {
    color: #50504d;
}

.hero h1 {
    margin: 35px 0 0 -7px;
    font-size: clamp(72px, 10.5vw, 120px);
    font-family: var(--display);
    font-weight: 300;
    letter-spacing: normal;
    line-height: 0.79;
}

.hero h1 span,
.section-heading h2 span,
.contact-section h2 span {
    color: #666663;
}

.hero h1 span {
    display: inline-block;
    margin-top: 0.08em;
    font-size: 0.76em;
    letter-spacing: normal;
}

.hero h1 .glitch-name {
    position: relative;
    isolation: isolate;
    animation: name-glitch 1s steps(1, end) infinite;
}

.hero h1 .glitch-name > span {
    display: inline;
    margin: 0;
    font-size: inherit;
    animation: name-flicker 3.6s steps(1, end) infinite;
}

.hero h1 .glitch-name::before,
.hero h1 .glitch-name::after {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(50% 0 50%);
    content: attr(data-text);
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero h1 .glitch-name::before {
    color: #fff;
    animation: name-glitch-top 1s steps(1, end) infinite;
}

.hero h1 .glitch-name::after {
    color: #aaa;
    animation: name-glitch-bottom 1s steps(1, end) infinite;
}

@keyframes name-flicker {
    0%, 37%, 38%, 40%, 76%, 77%, 79%, 100% { opacity: 1; }
    39%, 78% { opacity: 0.18; }
}

@keyframes name-glitch {
    0%, 9%, 17%, 56%, 63%, 100% { transform: translate(0); }
    10% { transform: translate(-4px, 1px); }
    11% { transform: translate(4px, -1px); }
    12% { transform: translate(0); }
    57% { transform: translate(3px, 0); }
    58% { transform: translate(-3px, 0); }
}

@keyframes name-glitch-top {
    0%, 9%, 12%, 56%, 59%, 100% { clip-path: inset(50% 0 50%); transform: translate(0); }
    10% { clip-path: inset(8% 0 72%); transform: translate(-6px, -1px); }
    11% { clip-path: inset(42% 0 44%); transform: translate(5px, 0); }
    57% { clip-path: inset(18% 0 65%); transform: translate(5px, -1px); }
    58% { clip-path: inset(68% 0 14%); transform: translate(-5px, 1px); }
}

@keyframes name-glitch-bottom {
    0%, 10%, 13%, 57%, 60%, 100% { clip-path: inset(50% 0 50%); transform: translate(0); }
    11% { clip-path: inset(72% 0 8%); transform: translate(6px, 1px); }
    12% { clip-path: inset(32% 0 50%); transform: translate(-5px, 0); }
    58% { clip-path: inset(12% 0 70%); transform: translate(-5px, 1px); }
    59% { clip-path: inset(54% 0 28%); transform: translate(5px, -1px); }
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 31px;
}

.text-link,
.inline-link {
    color: #e5e5e2;
    font-size: 12px;
}

.text-link span {
    margin-left: 8px;
    display: inline-block;
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateY(3px);
}

.hero-index {
    color: var(--dim);
    font-size: 9px;
}

.about-card {
    position: absolute;
    z-index: 2;
    right: 3%;
    bottom: 97px;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(14px);
}

.about-card,
.experience-item,
.education-item {
    background-image: radial-gradient(
        340px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(255, 255, 255, 0.055),
        transparent 78%
    );
    background-repeat: no-repeat;
    background-size: 0 0;
    transition:
        border-color 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-size 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 400ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-card:hover,
.about-card:focus-within,
.experience-item:hover,
.experience-item:focus-within,
.education-item:hover,
.education-item:focus-within {
    background-size: 100% 100%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.about-card:hover,
.about-card:focus-within,
.experience-item:hover,
.experience-item:focus-within,
.education-item:hover,
.education-item:focus-within {
    transform: translateY(-2px);
}

.about-card summary,
.experience-item summary,
.education-item summary {
    display: flex;
    cursor: pointer;
    list-style: none;
}

.about-card summary::-webkit-details-marker,
.experience-item summary::-webkit-details-marker,
.education-item summary::-webkit-details-marker {
    display: none;
}

@supports selector(details::details-content) {
    .about-card,
    .experience-item,
    .education-item {
        interpolate-size: allow-keywords;
    }

    .about-card::details-content,
    .experience-item::details-content,
    .education-item::details-content {
        height: 0;
        overflow: clip;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            height 520ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 360ms ease,
            transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
            content-visibility 520ms allow-discrete;
    }

    .about-card[open]::details-content,
    .experience-item[open]::details-content,
    .education-item[open]::details-content {
        height: auto;
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card summary {
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.mono-label {
    color: #aaa;
    font-size: 9px;
}

.summary-icon,
.item-arrow {
    color: #777;
    transition:
        transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
        color 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.summary-icon {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.about-card[open] .summary-icon {
    transform: translateY(2px) rotate(225deg);
}

.about-content {
    padding: 0 15px 17px;
}

.about-content p,
.item-details p,
.education-more > p {
    margin: 0;
    color: #a4a4a0;
    font-size: 12px;
    line-height: 1.8;
}

.about-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 13px;
}

.inline-link {
    display: inline-block;
    font-size: 11px;
}

.inline-link span {
    margin-left: 4px;
    color: #858582;
}

.scroll-cue {
    position: absolute;
    z-index: 1;
    bottom: 31px;
    left: 5.5%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dim);
    font-size: 8px;
}

.scroll-cue span {
    display: block;
    width: 25px;
    height: 1px;
    background: #555;
}

.content-section {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 8%;
    padding: 122px 5.5% 128px;
    border-bottom: 1px solid var(--line-soft);
}

.portfolio-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 92px 5.5% 108px;
    border-bottom: 1px solid var(--line-soft);
}

.portfolio-structure {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    overflow: visible;
    color: #c8c8c1;
    opacity: 0.2;
    pointer-events: none;
    transform: translateX(-50%);
}

.portfolio-structure-lines path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.portfolio-structure-lines .structure-outline {
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 1.2;
}

.structure-site {
    opacity: 0.18;
}

.structure-building-left,
.structure-building-right {
    opacity: 0.35;
}

.structure-building-center {
    opacity: 0.52;
}

.structure-crane {
    opacity: 0.4;
}

.structure-construction-scan {
    opacity: 0.55;
}

.structure-construction-scan path {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-dasharray: 5 1735;
    stroke-width: 1;
    animation: portfolio-structure-scan 12s linear infinite;
}

.portfolio-structure-nodes circle {
    fill: currentColor;
    animation: portfolio-structure-pulse 4.5s ease-in-out infinite;
}

.portfolio-structure-nodes circle:nth-child(2n) {
    animation-delay: -1.8s;
}

.portfolio-heading,
.portfolio-feature {
    position: relative;
    z-index: 1;
}

@keyframes portfolio-structure-scan {
    to {
        stroke-dashoffset: -1740;
    }
}

@keyframes portfolio-structure-pulse {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

.portfolio-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.portfolio-heading-actions,
.portfolio-controls {
    display: flex;
    align-items: center;
}

.portfolio-heading-actions {
    gap: 22px;
}

.portfolio-controls {
    gap: 10px;
}

.portfolio-controls[hidden] {
    display: none;
}

.portfolio-arrow {
    display: grid;
    width: 24px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: #858581;
    cursor: pointer;
    transition: color 220ms ease, transform 220ms ease;
}

.portfolio-arrow:hover,
.portfolio-arrow:focus-visible {
    color: #d5a46f;
}

.portfolio-arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.portfolio-arrow:focus-visible {
    outline: 1px solid #d5a46f;
    outline-offset: 3px;
}

.portfolio-arrow-previous:hover {
    transform: translateX(-2px);
}

.portfolio-arrow-next:hover {
    transform: translateX(2px);
}

.portfolio-feature {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13, 13, 13, 0.76);
}

.portfolio-feature-stage {
    display: grid;
}

.portfolio-featured-item {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    align-items: stretch;
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 600ms ease, visibility 600ms ease;
}

.portfolio-featured-item.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portfolio-feature-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.portfolio-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 220ms ease;
}

.portfolio-feature-image:hover img {
    filter: brightness(1.08);
}

.portfolio-demo-art {
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 72% 24%, rgba(213, 164, 111, 0.18), transparent 35%),
        linear-gradient(135deg, #1b1b19, #0d0d0d 55%, #24221e);
}

.portfolio-demo-art > span {
    padding: 9px 12px;
    border: 1px solid rgba(213, 164, 111, 0.38);
    border-radius: 999px;
    color: #d5a46f;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.portfolio-feature-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
}

.portfolio-project-category,
.research-eyebrow,
.research-publication-meta,
.research-project-card-meta {
    color: #858581;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.portfolio-feature-copy h3 {
    margin: 17px 0 11px;
    font-size: clamp(21px, 2.5vw, 30px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.22;
}

.portfolio-feature-copy h3 a {
    transition: color 220ms ease;
}

.portfolio-feature-copy h3 a:hover,
.portfolio-feature-copy h3 a:focus-visible {
    color: #d5a46f;
}

.portfolio-feature-copy p {
    margin: 0 0 20px;
    color: #92928d;
    font-size: 11px;
    line-height: 1.8;
}

.portfolio-demo-note {
    color: #858581;
    font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-featured-item {
        transition-duration: 0.01ms;
    }

    .structure-construction-scan path,
    .portfolio-structure-nodes circle {
        animation: none;
    }
}

.portfolio-heading h2 {
    margin: 22px 0 0;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 300;
    letter-spacing: -0.075em;
    line-height: 1.02;
}

.portfolio-heading h2 span {
    color: #777772;
}

.portfolio-more,
.portfolio-project-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c7c7c1;
    font-size: 11px;
    transition: color 220ms ease, transform 220ms ease;
}

.portfolio-more:hover,
.portfolio-more:focus-visible,
.portfolio-project-link:hover,
.portfolio-project-link:focus-visible {
    color: var(--text);
    transform: translateX(3px);
}

.section-index {
    color: #777773;
    font-size: 9px;
}

.section-heading h2,
.contact-section h2 {
    margin: 29px 0 15px;
    font-size: clamp(39px, 5.2vw, 59px);
    font-weight: 300;
    letter-spacing: -0.075em;
    line-height: 1.06;
}

.section-heading > p,
.contact-section > p {
    max-width: 280px;
    margin: 0;
    color: #81817d;
    font-size: 12px;
    line-height: 1.9;
}

.experience-list {
    position: relative;
    padding: 7px 0 0 20px;
}

.experience-list::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 5px;
    width: 1px;
    background: var(--line);
    content: "";
}

.experience-item {
    position: relative;
    border-top: 1px solid var(--line);
}

.experience-item::before {
    position: absolute;
    top: 50px;
    left: -15px;
    width: 15px;
    height: 1px;
    background: var(--line);
    content: "";
}

.experience-item::after {
    position: absolute;
    top: 46px;
    left: -24px;
    width: 7px;
    height: 7px;
    border: 1px solid #73736f;
    border-radius: 50%;
    background: var(--page);
    content: "";
    transition:
        border-color 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.experience-item:hover::after,
.experience-item:focus-within::after,
.experience-item[open]::after {
    border-color: #d5a46f;
    background: #d5a46f;
    box-shadow: 0 0 12px rgba(213, 164, 111, 0.25);
}

.experience-item:hover,
.education-item:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.experience-item:last-child {
    border-bottom: 1px solid var(--line);
}

.experience-item summary {
    min-height: 100px;
    align-items: center;
    gap: 15px;
}

.item-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

.item-company {
    color: #858581;
    font-size: 8px;
}

.item-title {
    font-size: 19px;
    font-weight: 300;
    letter-spacing: -0.04em;
}

.item-date {
    color: #73736f;
    font-size: 8px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.item-arrow {
    margin-left: 10px;
    font-size: 15px;
}

.experience-item[open] .item-arrow,
.education-item[open] .item-arrow,
.experience-item:hover .item-arrow,
.education-item:hover .item-arrow {
    color: #ddd;
    transform: rotate(45deg);
}

.item-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 0 20px 23px 39px;
}

.item-details p {
    max-width: 375px;
}

.item-details .inline-link {
    flex: 0 0 auto;
}

.memberships {
    padding: 43px 5.5% 48px;
    border-bottom: 1px solid var(--line-soft);
}

.membership-logos {
    display: flex;
    min-height: 95px;
    align-items: center;
    gap: 24px;
    padding-top: 12px;
}

.membership-marquee {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.membership-track {
    display: flex;
    width: max-content;
    animation: membership-scroll 22s linear infinite;
    will-change: transform;
}

.membership-set {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

.membership {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
}

.membership img {
    width: 45px;
    height: 29px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(0.8);
    opacity: 0.8;
}

.membership span {
    color: #9c9c98;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.membership-divider {
    width: 1px;
    height: 26px;
    background: var(--line);
}

@keyframes membership-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .membership-track {
        animation: none;
        transform: none;
    }
}

.education-section {
    padding-top: 112px;
    padding-bottom: 158px;
}

.education-list {
    padding-top: 7px;
}

.education-item {
    border-top: 1px solid var(--line);
}

.education-entry {
    position: relative;
    border-top: 1px solid var(--line);
}

.education-entry .education-item {
    border-top: 0;
}

.experience-item,
.education-item {
    background-size: 0 100%;
    transition:
        border-color 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-size 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 400ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.experience-item:hover,
.experience-item:focus-within,
.education-item:hover,
.education-item:focus-within {
    background-size: 100% 100%;
}

.education-entry:last-child {
    border-bottom: 1px solid var(--line);
}

.education-meta-row {
    position: absolute;
    z-index: 2;
    top: 72px;
    right: 37px;
    left: 104px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.education-item summary {
    min-height: 91px;
    align-items: center;
    gap: 20px;
}

.education-year {
    width: 84px;
    flex: 0 0 auto;
    color: #73736f;
    font-size: 8px;
    letter-spacing: 0.03em;
}

.education-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.education-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.education-email {
    color: #9c9c98;
    font-family: var(--mono);
    font-size: 7px;
    text-align: right;
    white-space: nowrap;
    transition: color 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.education-email:hover,
.education-email:focus-visible {
    color: #fff;
}

.education-main .education-institution {
    color: #858581;
    font-size: 11px;
}

.education-level {
    flex: 0 0 auto;
    margin: 0;
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.035);
    color: #888883;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    transition:
        border-color 250ms ease,
        background-color 250ms ease,
        color 250ms ease;
}

.education-item[open] .education-level-bachelor {
    border-color: rgba(202, 145, 79, 0.25);
    background: rgba(202, 145, 79, 0.09);
    color: #d5a46f;
}

.education-item[open] .education-level-hsc {
    border-color: rgba(128, 164, 132, 0.25);
    background: rgba(128, 164, 132, 0.09);
    color: #a5c2a7;
}

.education-main strong {
    font-size: 17px;
    font-weight: 300;
}

.education-item .item-arrow {
    font-size: 15px;
}

.education-more {
    display: grid;
    gap: 14px;
    padding: 0 37px 20px 104px;
}

.education-result {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 0;
    color: #b3b3ad;
    font-family: var(--mono);
    font-size: 9px;
}

.education-activities,
.education-achievements {
    display: grid;
    gap: 9px;
}

.education-activities h3,
.education-achievements h3 {
    margin: 0;
    color: #c8c8c2;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-timeline {
    display: grid;
    gap: 13px;
    margin-left: 4px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.education-activity {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    margin: 0;
    color: #c1c1bc;
    font-size: 10px;
}

.education-activity-standalone {
    margin-left: 4px;
    padding-left: 18px;
}

.education-activity::before {
    position: absolute;
    top: 0.55em;
    left: -23px;
    width: 8px;
    height: 8px;
    border: 1px solid #858581;
    border-radius: 50%;
    background: var(--page);
    content: "";
}

.education-activity-standalone::before,
.education-activity-standalone::after {
    display: none;
}

.education-activity::after {
    position: absolute;
    top: 0.85em;
    left: -18px;
    width: 13px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    content: "";
}

.education-activity-role {
    color: #c1c1bc;
    font-size: 10px;
}

.education-activity-date {
    flex: 0 0 auto;
    color: #777773;
    font-family: var(--mono);
    font-size: 9px;
    white-space: nowrap;
}

.education-achievements p {
    margin: 0;
    color: #a4a4a0;
    font-size: 11px;
}

.education-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.education-subjects span {
    padding: 3px 7px;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: #aaa;
    font-family: var(--mono);
    font-size: 8px;
}

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 72px 5.5% 83px;
    border-bottom: 1px solid var(--line-soft);
    background: radial-gradient(ellipse at 74% 23%, rgba(255, 255, 255, 0.045), transparent 40%);
    scroll-margin-top: 100px;
}

.contact-section h2 {
    margin-top: 26px;
    font-size: clamp(52px, 8vw, 88px);
    line-height: 0.99;
}

.contact-section > p {
    max-width: 340px;
    margin-top: 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    align-items: start;
    gap: clamp(34px, 6vw, 76px);
    margin-top: 30px;
}

.contact-form {
    width: 100%;
    max-width: 580px;
    margin: 0;
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #aaa;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: normal;
    text-transform: none;
    transition:
        border-color 250ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 250ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact-form input {
    height: 43px;
    padding: 0 12px;
}

.contact-form textarea {
    min-height: 112px;
    resize: vertical;
    padding: 12px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #696965;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035);
}

.contact-message-field {
    grid-column: 1 / -1;
}

.contact-form .contact-button {
    display: inline-flex;
    min-width: 130px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: transparent;
    color: #eee;
    font-size: 11px;
    cursor: pointer;
    transition:
        background 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact-form .contact-button:hover,
.contact-form .contact-button:focus-visible {
    border-color: #ddd;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-form .contact-button span {
    color: #999;
}

.contact-form-status {
    margin-top: 14px;
    color: #c6c6bd;
    font-size: 11px;
    line-height: 1.6;
}

.social-links {
    display: grid;
    gap: 11px;
    margin: 0;
}

.social-links a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    color: #8d8d89;
    transition:
        color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.035);
    color: #eee;
}

.social-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #d0d0cb;
    animation: social-icon-float 6s ease-in-out infinite;
}

.social-links a:nth-child(2) .social-icon {
    animation-delay: -1.5s;
}

.social-links a:nth-child(3) .social-icon {
    animation-delay: -3s;
}

.social-links a:nth-child(4) .social-icon {
    animation-delay: -4.5s;
}

.social-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.social-links a:first-child .social-icon svg,
.social-links a:nth-child(4) .social-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.social-letter-icon {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.social-profile {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.social-profile > span {
    color: #aaa;
    font-size: 9px;
}

.social-profile strong {
    overflow: hidden;
    color: #73736f;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-external {
    margin-left: auto;
    color: #656561;
    font-size: 11px;
    transition: color 250ms ease, transform 250ms ease;
}

.social-links a:hover .social-external,
.social-links a:focus-visible .social-external {
    color: #ddd;
    transform: translate(2px, -2px);
}

.social-panel {
    padding-top: 3px;
}

.profile-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 5px;
    border-bottom: 1px solid var(--line-soft);
}

.profile-back,
.profile-research-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #aaa;
    font-size: 11px;
    transition: color 250ms ease;
}

.profile-back:hover,
.profile-research-link:hover {
    color: var(--text);
}

.profile-main {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(70px, 12vw, 130px) 0 35px;
}

.research-back-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.research-catalog,
.research-projects-section {
    margin-bottom: 72px;
}

.research-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.research-section-heading h2 {
    margin: 12px 0 6px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1.15;
}

.research-section-heading p {
    margin: 0;
    color: #898984;
    font-size: 12px;
}

.research-publications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.research-publication-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(13, 13, 13, 0.92);
    transition: border-color 250ms ease, background-color 250ms ease, transform 250ms ease;
}

.research-publication-card[hidden] {
    display: none;
}

.research-publication-card:hover {
    border-color: rgba(255, 255, 255, 0.23);
    background: rgba(18, 18, 18, 0.97);
    transform: translateY(-2px);
}

.research-publication-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 8px;
    letter-spacing: 0.06em;
}

.research-status-pill {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid rgba(213, 164, 111, 0.23);
    border-radius: 999px;
    background: rgba(213, 164, 111, 0.08);
    color: #d5a46f;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.research-demo-pill {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid rgba(153, 153, 147, 0.24);
    border-radius: 999px;
    background: rgba(153, 153, 147, 0.08);
    color: #aaa9a2;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.research-publication-card h3 {
    margin: 19px 0 10px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.5;
}

.research-publication-card h3 a {
    transition: color 220ms ease;
}

.research-publication-card h3 a:hover,
.research-publication-card h3 a:focus-visible {
    color: #d5a46f;
}

.research-publication-card h3 a span {
    color: #858581;
    font-size: 12px;
}

.research-publication-card > p {
    margin: 0;
    color: #969690;
    font-size: 11px;
    line-height: 1.8;
}

.research-read-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: #d5a46f;
    font-size: 11px;
    transition: color 220ms ease;
}

.research-read-link:hover,
.research-read-link:focus-visible {
    color: #f0c18d;
}

.research-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 34px;
}

.research-page-tab {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: #92928d;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}

.research-page-tab[aria-selected="true"],
.research-page-tab:hover,
.research-page-tab:focus-visible {
    border-color: rgba(213, 164, 111, 0.5);
    background: rgba(213, 164, 111, 0.1);
    color: #d5a46f;
}

.research-paper-detail {
    scroll-margin-top: 28px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(13, 13, 13, 0.94);
}

.research-paper-detail h3 {
    max-width: 720px;
    margin: 15px 0 18px;
    font-size: clamp(21px, 3vw, 29px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.3;
}

.research-paper-detail p {
    margin: 0 0 13px;
    color: #a1a19b;
    font-size: 12px;
    line-height: 1.85;
}

.research-detail-year {
    display: block;
    margin-top: 18px;
    color: #777772;
    font-family: var(--mono);
    font-size: 9px;
}

.research-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-catalog-error:not([hidden]) {
    margin: 14px 0 0;
    color: #e7a7a0;
    font-size: 12px;
    line-height: 1.5;
}

.research-project-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(13, 13, 13, 0.94);
    transition: border-color 250ms ease, background-color 250ms ease, transform 250ms ease;
}

.research-project-card[hidden] {
    display: none;
}

.research-project-card:hover,
.research-project-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(18, 18, 18, 0.97);
    transform: translateY(-3px);
}

.research-project-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
}

.research-project-demo-art {
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 72% 24%, rgba(213, 164, 111, 0.18), transparent 35%),
        linear-gradient(135deg, #1b1b19, #0d0d0d 55%, #24221e);
}

.research-project-demo-art > span {
    padding: 9px 12px;
    border: 1px solid rgba(213, 164, 111, 0.38);
    border-radius: 999px;
    color: #d5a46f;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.research-project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.research-project-card:hover .research-project-image img {
    transform: scale(1.035);
}

.research-project-card-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 19px;
}

.research-project-card-meta {
    font-size: 8px;
}

.research-project-demo-note {
    color: #969690;
    font-size: 10px;
    line-height: 1.6;
}

.research-project-card-copy strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.research-project-card-link {
    color: #aaa9a2;
    font-size: 10px;
}

.research-project-card-link span {
    color: #d5a46f;
}

.academic-profiles-section {
    padding-top: 29px;
    border-top: 1px solid var(--line-soft);
}

.academic-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.academic-profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(13, 13, 13, 0.9);
    color: #aaa9a2;
    font-size: 10px;
    transition: border-color 220ms ease, color 220ms ease;
}

.academic-profile-links a:hover,
.academic-profile-links a:focus-visible {
    border-color: rgba(255, 255, 255, 0.27);
    color: var(--text);
}

.project-detail-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(32px, 7vw, 78px) 28px 90px;
    position: relative;
    z-index: 1;
}

.project-detail-back {
    color: #aaa9a2;
    font-size: 11px;
    transition: color 220ms ease;
}

.project-detail-back:hover,
.project-detail-back:focus-visible {
    color: var(--text);
}

.project-detail-heading {
    max-width: 780px;
    margin: 64px 0 36px;
}

.project-detail-heading h1 {
    margin: 17px 0 14px;
    font-size: clamp(34px, 6vw, 62px);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 1.04;
}

.project-detail-heading p {
    max-width: 620px;
    margin: 0;
    color: #9a9a94;
    font-size: 13px;
    line-height: 1.85;
}

.project-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-detail-gallery figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(13, 13, 13, 0.94);
}

.project-detail-video-embed {
    grid-column: 1 / -1;
}

.project-detail-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-detail-video-embed iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.project-detail-video-embed iframe[hidden] {
    display: none;
}

.project-video-local-fallback {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #080808;
    color: #fff;
}

.project-video-local-fallback[hidden] {
    display: none;
}

.project-video-local-fallback img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.project-video-local-fallback > span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.76);
    font-size: 12px;
}

.project-detail-gallery figcaption {
    padding: 12px 15px;
    color: #858581;
    font-family: var(--mono);
    font-size: 9px;
}

.project-detail-description {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 45px;
    margin-top: 48px;
    padding-top: 27px;
    border-top: 1px solid var(--line-soft);
}

.project-detail-description h2 {
    margin: 12px 0 0;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.project-detail-description p {
    margin: 0 0 15px;
    color: #a1a19b;
    font-size: 12px;
    line-height: 1.9;
}

.project-detail-video {
    display: inline-flex;
    gap: 8px;
    margin-top: 4px;
    color: #d5a46f;
    font-size: 11px;
}

.research-page .network-background-canvas {
    opacity: 0.28;
}

.research-page main > section:first-of-type a {
    background-color: rgba(13, 13, 13, 0.9);
}

.research-page .research-project {
    position: relative;
    background-color: rgba(13, 13, 13, 0.94);
    transition:
        border-color 280ms ease,
        background-color 280ms ease,
        box-shadow 280ms ease,
        transform 280ms ease;
}

.research-page .research-project:hover,
.research-page .research-project:focus-visible,
.research-page .research-project.is-active,
.research-page .research-project.is-pinned {
    border-color: rgba(255, 255, 255, 0.22);
    background-color: rgba(18, 18, 18, 0.97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.research-project-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.research-pin {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(9, 9, 9, 0.55);
    color: #858582;
    cursor: pointer;
    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.research-pin:hover,
.research-pin:focus-visible,
.research-project.is-pinned .research-pin {
    border-color: rgba(213, 164, 111, 0.5);
    background: rgba(202, 145, 79, 0.12);
    color: #d5a46f;
}

.research-pin:active {
    transform: scale(0.94);
}

.research-pin svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.research-page .research-project-description {
    grid-template-rows: 0fr;
}

.research-page .research-project:hover .research-project-description,
.research-page .research-project:focus-visible .research-project-description,
.research-page .research-project.is-active .research-project-description,
.research-page .research-project.is-pinned .research-project-description {
    grid-template-rows: 1fr;
}

@media (hover: none) {
    .research-page .research-project:hover:not(.is-active):not(.is-pinned) .research-project-description {
        grid-template-rows: 0fr;
    }

    .research-page .research-project:hover {
        transform: none;
    }
}

.profile-main > .section-index {
    display: block;
    margin: 0 0 16px 2px;
}

.profile-card {
    padding: clamp(22px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    backdrop-filter: blur(14px);
}

.profile-intro {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: clamp(25px, 5vw, 58px);
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line-soft);
}

.profile-avatar {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background:
        radial-gradient(circle at 70% 25%, rgba(225, 184, 115, 0.15), transparent 38%),
        linear-gradient(145deg, #20201e, #0d0d0c 68%);
    color: rgba(255, 255, 255, 0.8);
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa9a2;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.09em;
}

.profile-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d2aa6b;
    box-shadow: 0 0 10px rgba(210, 170, 107, 0.5);
}

.profile-heading h1 {
    margin: 18px 0 12px;
    font-size: clamp(48px, 8vw, 76px);
    font-weight: 300;
    letter-spacing: -0.085em;
    line-height: 0.94;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-linkedin-cta {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #aaa9a2;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}

.profile-linkedin-cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.profile-linkedin-cta:hover,
.profile-linkedin-cta:focus-visible {
    border-color: rgba(213, 164, 111, 0.55);
    background: rgba(213, 164, 111, 0.08);
    color: var(--text);
}

.profile-linkedin-cta > span:last-child {
    color: #72726f;
}

.profile-heading h1 span {
    color: #777772;
}

.profile-role {
    max-width: 390px;
    margin: 0;
    color: #a09f99;
    font-size: 12px;
    line-height: 1.8;
}

.profile-role span {
    padding: 0 4px;
    color: #686862;
}

.profile-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.78fr);
    gap: clamp(30px, 5vw, 58px);
    padding: 30px 0;
    border-bottom: 1px solid var(--line-soft);
}

.profile-bio .mono-label {
    display: block;
    margin-bottom: 13px;
}

.profile-bio p {
    margin: 0 0 13px;
    color: #a09f99;
    font-size: 12px;
    line-height: 1.9;
}

.profile-facts {
    display: grid;
    align-content: start;
    gap: 17px;
}

.profile-facts > div {
    display: grid;
    gap: 4px;
}

.profile-facts > div > span {
    color: #74746e;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.profile-facts strong,
.profile-facts small,
.profile-facts a {
    font-size: 10px;
    font-weight: 400;
}

.profile-facts strong {
    color: #d1d0ca;
}

.profile-facts small {
    color: #868680;
}

.profile-facts a {
    color: #b9b8b1;
    overflow-wrap: anywhere;
}

.profile-facts a:hover {
    color: #fff;
}

.profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 24px;
}

.profile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-socials a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    color: #aaa9a2;
    font-size: 9px;
    transition: border-color 250ms ease, background-color 250ms ease, color 250ms ease;
}

.profile-socials a:hover,
.profile-socials a:focus-visible {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
}

.profile-socials svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.profile-socials a:nth-child(2) svg,
.profile-socials a:nth-child(4) svg {
    fill: currentColor;
    stroke: none;
}

.profile-social-letter {
    width: 14px;
    color: currentColor;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.profile-contact-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #d0cfc8;
    font-size: 10px;
}

.profile-contact-link:hover {
    color: #fff;
}

.profile-page-footer {
    padding: 25px 4px 0;
    color: #686864;
    font-size: 8px;
    letter-spacing: 0.07em;
}

.social-panel h3 {
    margin: 0 0 15px;
    color: #999994;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[data-theme="light"] .site-shell,
html[data-theme="light"] .research-page main {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="light"] .project-detail-heading h1,
html[data-theme="light"] .project-detail-description h2 {
    color: #fff;
}

html[data-theme="light"] .site-shell img,
html[data-theme="light"] .site-shell canvas,
html[data-theme="light"] .research-page main img,
html[data-theme="light"] .research-page main canvas,
html[data-theme="light"] .research-page main iframe {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="light"] .back-to-top {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="light"] .ambient-grid {
    opacity: 0.09;
}

html[data-theme="light"] .structural-background {
    opacity: 0.16;
}

html[data-theme="light"] .theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-icon-moon {
    display: block;
}

@keyframes social-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.site-footer {
    display: flex;
    min-height: 83px;
    align-items: center;
    justify-content: space-between;
    color: #686864;
    font-size: 8px;
    letter-spacing: 0.07em;
}

.footer-note span {
    color: #aaa;
}

.back-to-top {
    position: fixed;
    z-index: 20;
    right: 28px;
    bottom: 28px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(9, 9, 9, 0.84);
    color: #deded9;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 250ms ease,
        background-color 250ms ease;
    visibility: hidden;
    backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(30, 30, 30, 0.94);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.motion-ready .hero-copy,
.motion-ready .about-card,
.motion-ready .scroll-cue {
    opacity: 0;
    transition: opacity 750ms ease, transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-ready .hero-copy {
    transform: translateY(16px);
}

.motion-ready .about-card,
.motion-ready .scroll-cue {
    transform: translateY(10px);
}

.motion-ready .hero.is-intro .hero-copy,
.motion-ready .hero.is-intro .about-card,
.motion-ready .hero.is-intro .scroll-cue {
    opacity: 1;
}

.motion-ready .hero.is-intro .hero-copy,
.motion-ready .hero.is-intro .about-card,
.motion-ready .hero.is-intro .scroll-cue {
    transform: translateY(0);
}

.motion-ready .reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 650ms ease var(--reveal-delay, 0ms),
        transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
        border-color 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
        background-size 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-ready .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.motion-ready .experience-item:hover,
.motion-ready .experience-item:focus-within,
.motion-ready .education-item:hover,
.motion-ready .education-item:focus-within {
    transform: translateY(-2px);
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 30px, 580px);
    }

    .site-header {
        position: sticky;
        top: 15px;
        justify-content: flex-start;
        height: 58px;
        padding: 0 17px;
        border-radius: 15px;
    }

    .site-time {
        order: 2;
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        margin-left: 4px;
    }

    .site-greeting,
    .site-time time {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .audio-player {
        position: relative;
        top: auto;
        left: auto;
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
        justify-content: center;
        order: 1;
        margin-right: 6px;
        padding: 0;
        border-radius: 10px;
        transform: none;
    }

    .audio-player-details {
        display: none;
    }

    .mobile-profile-link {
        display: grid;
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: var(--text);
        order: 4;
        margin-left: auto;
        transition:
            border-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
            background-color 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
            transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .mobile-theme-toggle {
        display: grid;
        width: 38px;
        height: 38px;
        order: 5;
        margin-left: 4px;
    }

    .mobile-profile-link:hover,
    .mobile-profile-link:focus-visible {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.06);
        transform: translateY(-1px);
    }

    .mobile-profile-link svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.5;
    }

    .audio-toggle {
        position: relative;
        width: 36px;
        height: 36px;
        background: transparent;
    }

    .audio-toggle .audio-icon-play {
        display: block;
    }

    .audio-toggle .audio-icon-pause {
        display: none;
    }

    .audio-toggle .audio-icon-music {
        display: none;
    }

    .audio-toggle[aria-pressed="true"] .audio-icon-play {
        display: none;
    }

    .audio-toggle[aria-pressed="true"] .audio-icon-pause {
        display: block;
    }

    .audio-toggle[aria-pressed="true"] .audio-icon-pause {
        color: #f1d9aa;
        filter: drop-shadow(0 0 5px rgba(241, 217, 170, 0.65));
    }

    .audio-toggle[aria-pressed="true"]::before,
    .audio-toggle[aria-pressed="true"]::after {
        position: absolute;
        color: #f1d9aa;
        content: "✦";
        font-size: 8px;
        line-height: 1;
        pointer-events: none;
        animation: audio-sparkle 1.8s ease-in-out infinite;
    }

    .audio-toggle[aria-pressed="true"]::before {
        top: 3px;
        right: 5px;
    }

    .audio-toggle[aria-pressed="true"]::after {
        bottom: 4px;
        left: 5px;
        content: "✧";
        animation-delay: -0.9s;
    }

    @keyframes audio-sparkle {
        0%,
        100% {
            opacity: 0.25;
            transform: scale(0.7) rotate(-12deg);
        }

        50% {
            opacity: 1;
            transform: scale(1.15) rotate(12deg);
        }
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: 4px;
        width: 38px;
        height: 38px;
        order: 6;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
        cursor: pointer;
    }

    .menu-toggle span {
        width: 14px;
        height: 1px;
        background: #ddd;
        transition: transform 180ms ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    .mobile-menu:not([hidden]) {
        position: absolute;
        top: 66px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        padding: 10px 17px 15px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: rgba(10, 10, 10, 0.97);
        box-shadow: 0 18px 50px #0009;
        backdrop-filter: blur(18px);
    }

    .mobile-menu > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 2px;
        border-bottom: 1px solid var(--line-soft);
        color: #ddd;
        font-size: 13px;
    }

    .mobile-menu > .mobile-menu-research-projects {
        justify-content: flex-start;
        gap: 10px;
        border-bottom: 0;
        color: #aaa;
        font-weight: 500;
    }

    .mobile-menu-research-projects svg {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
        fill: currentColor;
    }

    .mobile-menu-research-projects span:last-child {
        margin-left: auto;
        color: #72726f;
    }

    .mobile-menu-research-projects:hover,
    .mobile-menu-research-projects:focus-visible {
        color: var(--text);
    }

    .hero {
        flex-direction: column;
        min-height: 720px;
        align-items: flex-start;
        padding: 116px 4% 155px;
    }

    .hero-copy {
        width: 100%;
        flex: 0 0 auto;
    }

    .hero h1 {
        margin-top: 38px;
        font-size: clamp(64px, 13vw, 96px);
    }

    .about-card {
        position: relative;
        right: auto;
        bottom: auto;
        align-self: flex-start;
        width: min(100%, 340px);
        margin: 28px 0 60px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .scroll-cue {
        bottom: 31px;
        left: 4%;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 43px;
        padding: 86px 4% 90px;
    }

    .section-heading h2 {
        margin-top: 22px;
        font-size: clamp(44px, 10vw, 58px);
    }

    .section-heading > p {
        max-width: none;
    }

    .experience-item summary {
        min-height: 88px;
    }

    .experience-item::before {
        top: 44px;
    }

    .experience-item::after {
        top: 40px;
    }

    .item-date {
        font-size: 7px;
    }

    .item-title {
        font-size: 17px;
    }

    .item-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-left: 36px;
    }

    .memberships {
        padding: 38px 4% 40px;
    }

    .membership-logos {
        gap: 15px;
    }

    .membership-set {
        gap: 15px;
        padding-right: 15px;
    }

    .membership {
        gap: 8px;
    }

    .membership img {
        width: 33px;
    }

    .membership span {
        font-size: 7px;
    }

    .education-section {
        padding-top: 85px;
        padding-bottom: 128px;
    }

    .education-list {
        padding-top: 0;
    }

    .education-item summary {
        gap: 10px;
    }

    .education-year {
        width: 72px;
        font-size: 7px;
    }

    .education-main strong {
        font-size: 15px;
    }

    .education-main .education-institution {
        font-size: 10px;
    }

    .education-more {
        padding-left: 82px;
    }

    .education-email {
        font-size: 6px;
    }

    .education-meta-row {
        top: 70px;
        right: 20px;
        left: 82px;
    }

    .contact-section {
        padding: 58px 4% 65px;
    }

    .contact-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .contact-form-fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-message-field {
        grid-column: auto;
    }

    .contact-section h2 {
        font-size: clamp(55px, 13vw, 78px);
    }

    .social-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .site-shell {
        width: calc(100% - 22px);
    }

    .hero {
        min-height: 700px;
        padding-right: 2%;
        padding-left: 2%;
    }

    .eyebrow {
        gap: 6px;
        font-size: 8px;
    }

    .hero h1 {
        font-size: clamp(56px, 16vw, 72px);
    }

    .hero-index {
        font-size: 7px;
    }

    .hero-actions {
        gap: 17px;
    }

    .content-section,
    .memberships,
    .contact-section {
        padding-right: 2%;
        padding-left: 2%;
    }

    .experience-item summary {
        gap: 9px;
    }

    .item-date {
        max-width: 75px;
        white-space: normal;
        text-align: right;
    }

    .item-arrow {
        margin-left: 0;
    }

    .social-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 .glitch-name::before,
    .hero h1 .glitch-name::after {
        content: none;
    }

    .hero-marker::after,
    .social-icon,
    .audio-toggle[aria-pressed="true"]::before,
    .audio-toggle[aria-pressed="true"]::after {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 760px) {
    .profile-main {
        padding-top: 62px;
    }

    .profile-intro {
        grid-template-columns: clamp(84px, 25vw, 150px) minmax(0, 1fr);
        gap: clamp(14px, 4vw, 28px);
    }

    .profile-heading h1 {
        font-size: clamp(38px, 10vw, 60px);
    }

    .profile-name-row {
        gap: 10px;
    }

    .profile-linkedin-cta {
        gap: 6px;
        padding: 0 9px;
        font-size: 10px;
    }

    .profile-role {
        font-size: 10px;
    }

    .profile-details {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .profile-main {
        padding-top: 48px;
    }

    .profile-header {
        min-height: 56px;
    }

    .profile-card {
        padding: 17px;
    }

    .profile-intro {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding-bottom: 23px;
    }

    .profile-heading h1 {
        font-size: clamp(34px, 10vw, 42px);
    }

    .profile-name-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .profile-heading h1 {
        margin-bottom: 10px;
    }

    .profile-linkedin-cta {
        align-self: flex-end;
    }

    .profile-eyebrow {
        gap: 6px;
        font-size: 7px;
    }

    .profile-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .portfolio-section {
        padding: 72px 4% 82px;
    }

    .portfolio-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .portfolio-featured-item {
        grid-template-columns: 1fr;
    }

    .portfolio-feature-image,
    .portfolio-feature-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .portfolio-feature-copy {
        min-height: 210px;
        padding: 23px;
    }

    .research-page main {
        padding: 42px 18px 64px;
    }

    .research-publications-grid,
    .research-projects-grid,
    .project-detail-gallery {
        grid-template-columns: 1fr;
    }

    .research-catalog,
    .research-projects-section {
        margin-bottom: 54px;
    }

    .project-detail-main {
        padding: 28px 18px 60px;
    }

    .project-detail-heading {
        margin-top: 44px;
    }

    .project-detail-description {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 34px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 17px;
    }

    .site-shell {
        width: min(calc(100% - 96px), 1280px);
    }

    .site-header {
        min-height: 70px;
        padding-right: 28px;
        padding-left: 28px;
    }

    .site-greeting {
        font-size: 11px;
    }

    .site-time time,
    .audio-time {
        font-size: 10px;
    }

    .audio-track-title {
        font-size: 10px;
    }

    .desktop-nav {
        gap: 20px;
        font-size: 13px;
    }

    .hero {
        min-height: clamp(740px, 82svh, 940px);
        padding: 120px 6% 140px;
    }

    .eyebrow,
    .section-index,
    .mono-label,
    .hero-index,
    .scroll-cue,
    .item-company,
    .item-date,
    .education-year,
    .menu-note,
    .site-footer {
        font-size: 11px;
    }

    .hero-actions {
        gap: 36px;
        margin-top: 38px;
    }

    .text-link,
    .inline-link {
        font-size: 13px;
    }

    .about-card {
        right: 4%;
        bottom: 110px;
        width: 300px;
    }

    .about-card summary {
        min-height: 52px;
    }

    .about-content p,
    .item-details p,
    .education-more > p,
    .section-heading > p,
    .contact-section > p,
    .profile-bio p {
        font-size: 14px;
    }

    .content-section {
        gap: 9%;
        padding: 140px 6% 145px;
    }

    .section-heading h2 {
        font-size: clamp(48px, 5.2vw, 68px);
    }

    .item-title {
        font-size: 21px;
    }

    .item-details {
        gap: 28px;
        padding-bottom: 28px;
    }

    .memberships {
        padding: 50px 6% 56px;
    }

    .membership span {
        font-size: 10px;
    }

    .education-section {
        padding-top: 132px;
        padding-bottom: 178px;
    }

    .education-main strong {
        font-size: 19px;
    }

    .education-main .education-institution {
        font-size: 12px;
    }

    .contact-section {
        padding: 88px 6% 100px;
    }

    .contact-section h2 {
        font-size: clamp(60px, 7vw, 100px);
    }

    .contact-form label {
        font-size: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form .contact-button {
        font-size: 12px;
    }

    .profile-header {
        min-height: 70px;
    }

    .profile-back,
    .profile-research-link {
        font-size: 13px;
    }

    .profile-main {
        max-width: 1000px;
        padding-top: clamp(90px, 10vw, 150px);
    }

    .profile-card {
        padding: clamp(52px, 5vw, 68px);
    }

    .profile-intro {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .profile-heading h1 {
        font-size: clamp(76px, 6vw, 92px);
    }

    .profile-role {
        font-size: 14px;
    }

    .profile-bio p {
        font-size: 14px;
    }

    .profile-facts strong,
    .profile-facts small,
    .profile-facts a,
    .profile-contact-link {
        font-size: 12px;
    }

    .profile-socials a {
        min-height: 40px;
        font-size: 11px;
    }

    .profile-page-footer {
        font-size: 10px;
    }

    .research-page main {
        max-width: 1080px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }

    .site-shell {
        width: min(calc(100% - 120px), 1360px);
    }

    .hero {
        min-height: clamp(820px, 84svh, 1020px);
    }

    .section-heading h2 {
        font-size: clamp(58px, 4.8vw, 74px);
    }

    .research-page main {
        max-width: 1160px;
    }
}
