:root {
    --bg: #080b0f;
    --panel: #10161d;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #f3f6f5;
    --muted: #939fa6;
    --muted-light: #c5ced1;
    --mint: #82f7d4;
    --blue: #8dbdff;
    --amber: #ffc76b;
    --shell: 960px;
    --content: 760px;
}

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

html {
    overflow-x: clip;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    min-width: 0;
    margin: 0;
    overflow-x: clip;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 5%, rgba(44, 173, 142, 0.1), transparent 30rem),
        radial-gradient(circle at 8% 34%, rgba(72, 104, 150, 0.09), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    color: #04100c;
    background: var(--mint);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

img,
svg {
    display: block;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 9px 13px;
    color: #06110d;
    background: var(--mint);
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.content-shell {
    width: min(calc(100% - 40px), var(--content));
}

.page-noise {
    position: fixed;
    z-index: 100;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.pointer-glow {
    position: fixed;
    z-index: -1;
    top: var(--pointer-y, 30%);
    left: var(--pointer-x, 50%);
    width: min(34rem, 100vw);
    height: min(34rem, 100vw);
    pointer-events: none;
    opacity: 0.09;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mint), transparent 68%);
    filter: blur(38px);
    transform: translate(-50%, -50%);
}

.ambient-orb {
    position: fixed;
    z-index: -2;
    width: 28rem;
    height: 28rem;
    pointer-events: none;
    border: 1px solid rgba(130, 247, 212, 0.07);
    border-radius: 50%;
    filter: blur(1px);
    animation: drift 18s ease-in-out infinite alternate;
}

.ambient-orb-one {
    top: 8%;
    right: -16rem;
}

.ambient-orb-two {
    bottom: 8%;
    left: -18rem;
    border-color: rgba(141, 189, 255, 0.07);
    animation-delay: -7s;
}

@keyframes drift {
    to { transform: translate3d(-2rem, 3rem, 0) scale(1.08); }
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--mint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero {
    position: relative;
    display: flex;
    min-height: 96svh;
    max-width: 720px;
    padding-top: clamp(65px, 9vh, 100px);
    padding-bottom: 100px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.portrait-wrap {
    position: relative;
    width: clamp(150px, 20vw, 190px);
    margin-bottom: 32px;
    aspect-ratio: 1;
    isolation: isolate;
}

.portrait-wrap img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.025);
    filter: saturate(0.9) contrast(1.03);
    transition: filter 400ms ease, transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.portrait-wrap:hover img {
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.025);
}

.portrait-orbit {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(130, 247, 212, 0.24);
    border-radius: 46% 54% 49% 51% / 53% 45% 55% 47%;
    animation: portrait-orbit 16s linear infinite;
}

.portrait-orbit-one {
    inset: -12px;
}

.portrait-orbit-two {
    inset: -22px;
    border-color: rgba(141, 189, 255, 0.16);
    border-radius: 52% 48% 44% 56% / 47% 57% 43% 53%;
    animation-duration: 23s;
    animation-direction: reverse;
}

@keyframes portrait-orbit {
    to { transform: rotate(360deg); }
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 6.5vw, 5rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.hero h1 span {
    color: var(--muted);
    font-size: 0.42em;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero h1 span i {
    font-style: normal;
}

.hero-role {
    margin: 20px 0 0;
    color: var(--muted-light);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-intro {
    max-width: 610px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.powerhaus-pill {
    display: inline-flex;
    width: 218px;
    max-width: 100%;
    min-height: 48px;
    padding: 6px 6px 6px 16px;
    margin-top: 28px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-light);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
    gap: 10px;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.powerhaus-pill:hover {
    border-color: rgba(223, 63, 134, 0.38);
    background: rgba(223, 63, 134, 0.035);
    transform: translateY(-2px);
}

.powerhaus-pill span {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 750;
}

.powerhaus-pill svg {
    width: 34px;
    height: 34px;
    padding: 9px;
    flex: 0 0 34px;
    align-self: center;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f45df, #e83d83);
    box-shadow: 0 8px 22px rgba(208, 51, 133, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.powerhaus-pill:hover svg {
    box-shadow: 0 10px 28px rgba(208, 51, 133, 0.34);
    transform: rotate(-7deg) scale(1.06);
}

.hero-actions,
.contact-email-row {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 6px 6px 16px;
    margin-top: 17px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}

.hero-actions {
    width: 218px;
    justify-content: space-between;
}

.hero-actions a,
.contact-email-row a {
    overflow: hidden;
    color: var(--muted-light);
    font-size: 0.78rem;
    font-weight: 750;
    text-overflow: ellipsis;
}

.hero-actions button,
.contact-email-row button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    flex: 0 0 34px;
    place-items: center;
    color: #06110d;
    border: 0;
    border-radius: 50%;
    background: var(--mint);
    cursor: pointer;
    transition: transform 180ms ease;
}

.hero-actions button:hover,
.contact-email-row button:hover {
    transform: rotate(-7deg) scale(1.07);
}

.hero-actions svg,
.contact-email-row svg {
    width: 15px;
    height: 15px;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: block;
    width: 1px;
    height: 42px;
    overflow: hidden;
    background: var(--line);
    transform: translateX(-50%);
}

.scroll-cue span {
    display: block;
    width: 100%;
    height: 16px;
    background: var(--mint);
    animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
    from { transform: translateY(-18px); }
    to { transform: translateY(46px); }
}

.section {
    padding-top: clamp(80px, 10vw, 120px);
    padding-bottom: clamp(80px, 10vw, 120px);
}

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

.section-heading.centered {
    text-align: center;
}

.section-heading h2,
.contact-section h2,
.legal-page h1 {
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 3.2rem);
    font-weight: 740;
    letter-spacing: -0.055em;
    line-height: 1;
}

.linear-list {
    border-top: 1px solid var(--line-strong);
}

.linear-list article {
    display: grid;
    padding: 27px 0;
    border-bottom: 0;
    grid-template-columns: 38px 1fr;
    gap: 16px;
}

.focus-icon {
    display: grid;
    width: 32px;
    height: 32px;
    margin-top: 1px;
    place-items: center;
    color: var(--mint);
    border: 1px solid rgba(130, 247, 212, 0.2);
    border-radius: 50%;
    background: rgba(130, 247, 212, 0.04);
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.focus-icon svg {
    width: 15px;
    height: 15px;
}

.linear-list article:hover .focus-icon {
    color: var(--blue);
    border-color: rgba(141, 189, 255, 0.35);
    background: rgba(141, 189, 255, 0.07);
    transform: scale(1.06);
}

.linear-list h3 {
    margin: 0 0 4px;
    font-size: 1.16rem;
    letter-spacing: -0.025em;
}

.linear-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.timeline-shell {
    max-width: 860px;
}

.timeline {
    position: relative;
    padding: 12px 0 0;
}

.timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    overflow: hidden;
    background: var(--line-strong);
    transform: translateX(-50%);
}

.timeline-track span {
    position: relative;
    display: block;
    width: 100%;
    height: var(--timeline-progress, 0%);
    background: linear-gradient(180deg, var(--mint), var(--blue), var(--mint), var(--blue));
    background-size: 100% 220%;
    box-shadow: 0 0 14px rgba(130, 247, 212, 0.52);
    animation: timeline-flow 2.8s linear infinite;
    transition: height 100ms linear;
}

.timeline-track span::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 8px var(--mint), 0 0 18px rgba(130, 247, 212, 0.7);
    content: "";
    transform: translate(50%, 50%);
}

@keyframes timeline-flow {
    to { background-position: 0 220%; }
}

.timeline-item {
    position: relative;
    width: 50%;
    min-height: 145px;
    padding-bottom: 48px;
}

.timeline-left {
    padding-right: 42px;
    margin-right: 50%;
    text-align: right;
}

.timeline-right {
    padding-left: 42px;
    margin-left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    z-index: 2;
    width: 11px;
    height: 11px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 1px var(--mint), 0 0 15px rgba(130, 247, 212, 0.35);
    transition: transform 220ms ease;
}

.timeline-left .timeline-dot {
    right: -5px;
}

.timeline-right .timeline-dot {
    left: -6px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.35);
}

.timeline-item time {
    display: block;
    margin-bottom: 4px;
    color: var(--mint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.timeline-item h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.research-section {
    border-top: 1px solid var(--line);
}

.publication-list {
    border-top: 1px solid var(--line-strong);
}

.publication-list > article {
    display: grid;
    min-height: 168px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.publication-meta {
    display: flex;
    padding: 0;
    margin-bottom: 7px;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.publication-meta time {
    display: inline;
    margin: 0;
    color: var(--mint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.64rem;
    font-weight: 800;
}

.publication-meta span {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-transform: uppercase;
}

.publication-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0;
    place-items: center;
    color: var(--mint);
    border: 1px solid rgba(130, 247, 212, 0.25);
    border-radius: 50%;
    background: rgba(130, 247, 212, 0.05);
    box-shadow: 0 0 18px rgba(130, 247, 212, 0.08);
}

.publication-icon svg {
    width: 15px;
    height: 15px;
}

.publication-icon-arxiv {
    color: var(--blue);
    border-color: rgba(141, 189, 255, 0.25);
    background: rgba(141, 189, 255, 0.05);
    font-family: Georgia, serif;
    font-size: 0.7rem;
    font-weight: 800;
}

.publication-body {
    min-width: 0;
    padding: 0;
}

.publication-body h3 {
    max-width: 580px;
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.publication-body > p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.55;
}

.publication-footer {
    display: flex;
    margin-top: 14px;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.publication-footer a {
    display: inline-flex;
    min-height: 29px;
    padding: 4px 8px;
    align-items: center;
    gap: 7px;
    color: var(--muted-light);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 750;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.publication-footer a:hover {
    color: var(--mint);
    border-color: rgba(130, 247, 212, 0.35);
    transform: translateY(-2px);
}

.publication-footer a svg {
    width: 12px;
    height: 12px;
}

.contact-section {
    padding-top: clamp(90px, 12vw, 135px);
    padding-bottom: clamp(90px, 12vw, 135px);
    text-align: center;
}

.contact-section .eyebrow {
    margin-bottom: 13px;
}

.contact-section > p:not(.eyebrow) {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.contact-email-row {
    margin-top: 24px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 9, 0.65);
}

.footer-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.footer-inner p {
    color: var(--muted);
    font-size: 0.68rem;
}

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

.footer-links a,
.text-link,
.inline-link {
    color: var(--muted-light);
    font-size: 0.68rem;
    font-weight: 700;
    transition: color 180ms ease;
}

.footer-links a:hover,
.text-link:hover,
.inline-link:hover {
    color: var(--mint);
}

.toast {
    position: fixed;
    z-index: 200;
    bottom: 22px;
    left: 50%;
    padding: 9px 14px;
    color: #06110d;
    border-radius: 999px;
    background: var(--mint);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 650ms cubic-bezier(.2, .7, .2, 1), transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.js .timeline-left[data-reveal] {
    transform: translateX(-18px);
}

.js .timeline-right[data-reveal] {
    transform: translateX(18px);
}

.js [data-reveal][data-delay="1"] { transition-delay: 80ms; }
.js [data-reveal][data-delay="2"] { transition-delay: 150ms; }
.js [data-reveal][data-delay="3"] { transition-delay: 220ms; }
.js [data-reveal][data-delay="4"] { transition-delay: 290ms; }

.js [data-reveal].is-visible,
.js .timeline-left[data-reveal].is-visible,
.js .timeline-right[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0);
}

.simple-header {
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 15, 0.88);
}

.simple-header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 750;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #07110e;
    background: var(--mint);
    border-radius: 50%;
    font-size: 0.67rem;
    font-weight: 900;
}

.legal-page {
    min-height: calc(100vh - 150px);
    padding: clamp(70px, 10vw, 120px) 0;
}

.legal-page h1 {
    margin-bottom: 42px;
}

.legal-content {
    max-width: 790px;
    border-top: 1px solid var(--line);
}

.legal-section {
    padding: clamp(25px, 4vw, 36px) 0;
    border-bottom: 1px solid var(--line);
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    letter-spacing: -0.025em;
}

.legal-section p,
.legal-section address {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.75;
}

.legal-section strong,
.legal-lead {
    color: var(--text);
    font-weight: 680;
}

.legal-section .legal-lead {
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.legal-list {
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding: 4px 0 4px 16px;
    color: var(--muted-light);
    font-size: 0.78rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.legal-list li::before {
    position: absolute;
    top: 0.83em;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--mint);
    border-radius: 50%;
    content: "";
}

.legal-list span {
    margin-right: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.legal-list span::after {
    content: ":";
}

.legal-section .legal-list + p {
    margin-top: 14px;
}

@media (max-width: 640px) {
    .shell,
    .content-shell {
        width: min(calc(100% - 32px), var(--content));
    }

    .hero {
        min-height: 94svh;
        padding-top: 50px;
        padding-bottom: 90px;
    }

    .portrait-wrap {
        width: 145px;
        margin-bottom: 27px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 14vw, 3.6rem);
    }

    .hero h1 span {
        display: block;
        margin-top: 7px;
    }

    .hero h1 span i {
        display: none;
    }

    .hero-role {
        margin-top: 16px;
    }

    .section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

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

    .section-heading h2,
    .contact-section h2,
    .legal-page h1 {
        font-size: 2.3rem;
    }

    .linear-list article {
        padding: 23px 0;
    }

    .timeline-track {
        left: 7px;
        transform: none;
    }

    .timeline-item,
    .timeline-left,
    .timeline-right {
        width: auto;
        min-height: 132px;
        padding: 0 0 42px 34px;
        margin: 0;
        text-align: left;
    }

    .timeline-left .timeline-dot,
    .timeline-right .timeline-dot {
        top: 7px;
        right: auto;
        left: 2px;
    }

    .js .timeline-left[data-reveal],
    .js .timeline-right[data-reveal] {
        transform: translateX(16px);
    }

    .js .timeline-left[data-reveal].is-visible,
    .js .timeline-right[data-reveal].is-visible {
        transform: translateX(0);
    }

    .publication-list > article {
        min-height: 0;
        padding: 27px 0;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .footer-inner {
        padding: 20px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .legal-page {
        padding: 58px 0 72px;
    }

    .legal-page h1 {
        margin-bottom: 30px;
    }

    .legal-list span {
        display: block;
        margin: 0;
    }
}

@media (max-width: 360px) {
    .hero-actions,
    .contact-email-row {
        width: 100%;
        justify-content: space-between;
    }

}

@media (hover: none) {
    .pointer-glow {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .js [data-reveal],
    .js .timeline-left[data-reveal],
    .js .timeline-right[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
