:root {
    --bg: #f7f7f7;
    --bg-soft: #ececec;
    --paper: #ffffff;
    --ink: #141414;
    --muted: #595959;
    --line: #d8d8d8;
    --accent: #222222;
    --accent-soft: #efefef;
    --max: 1120px;
    --r: 16px;
    --shadow: none;
}

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

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "montserrat-regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(var(--max), calc(100% - 2.4rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.topbar__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-family: "montserrat-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.06rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 1.05rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.93rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.hero {
    padding: 3.4rem 0 2.2rem;
}

.hero--compact {
    padding-top: 2.6rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.95fr;
    gap: 1.1rem;
}

.hero__text,
.hero__panel {
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: none;
}

.hero__text {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero__text::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #f0f0f0, transparent 75%);
}

.hero__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.kicker {
    margin: 0;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
    font-family: "librebaskerville-bold", Georgia, serif;
}

h1 {
    margin-top: 0.45rem;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

.lead {
    margin: 0.55rem 0 0;
    color: var(--muted);
    max-width: 70ch;
}

.meta {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 14%;
    border-radius: 999px;
    border: 2px solid #d6d6d6;
    box-shadow: none;
}

.profile-photo--small {
    width: 138px;
    height: 138px;
    min-width: 138px;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 0.45rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.68rem 1.16rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--ink);
    color: #fff;
}

.btn--ghost {
    color: var(--ink);
    border-color: #bdbdbd;
    background: #fff;
}

.hero__panel {
    padding: 1.5rem;
    background: #fafafa;
}

.hero__panel h2 {
    margin-bottom: 0.5rem;
}

.hero__panel h3 {
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.hero__panel ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.panel-block + .panel-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #d1d1d1;
}

.linklist {
    display: grid;
    gap: 0.32rem;
}

.linklist a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.94rem;
}

.linklist a:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    padding: 0.48rem 0.55rem;
    background: #ffffff;
}

.quick-link:hover {
    border-color: #bdbdbd;
    background: #f3f3f3;
}

.quick-link__logo {
    width: 1.58rem;
    height: 1.58rem;
    border-radius: 999px;
    border: 1px solid #bdbdbd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "iconmonstr-iconic-font" !important;
    font-style: normal;
    font-weight: normal;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    background: #f7f7f7;
    line-height: 1;
}

.quick-link__label {
    font-size: 0.86rem;
}

.section {
    padding: 1.8rem 0 2.35rem;
}

.section--alt {
    background: #efefef;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__title {
    margin: 0 0 0.95rem;
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.section__intro {
    margin: 0 0 1rem;
    max-width: 70ch;
    color: var(--muted);
}

.cards {
    display: grid;
    gap: 0.9rem;
}

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

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

.card {
    border-radius: 14px;
    padding: 1.05rem 1.05rem 1.15rem;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: none;
}

.card h3 {
    margin-bottom: 0.48rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card__meta {
    margin-bottom: 0.38rem;
    color: #707070;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.card__link {
    display: inline-block;
    margin-top: 0.66rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.model-card h3 {
    font-size: 1.05rem;
}

.model-tags {
    margin: 0 0 0.22rem;
    color: #4d4d4d;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
}

.model-link {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
}

.model-link .im {
    font-size: 0.9rem;
    line-height: 1;
}

.home-research-links .section__title {
    margin-bottom: 0.7rem;
}

.home-research-links .card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.home-research-links .card p {
    font-size: 0.92rem;
    line-height: 1.5;
}

.title-en {
    color: var(--muted);
    font-family: "montserrat-regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.94em;
}

.timeline {
    display: grid;
    gap: 0.8rem;
}

.timeline__item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.9rem;
    align-items: start;
    border-left: 3px solid #bcbcbc;
    background: var(--paper);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.timeline__year {
    margin: 0;
    color: var(--accent);
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.timeline__citation {
    margin: 0;
    color: var(--ink);
}

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

.pub-group {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    padding: 1.05rem 1.1rem;
    margin-bottom: 0.9rem;
}

.hero--publications {
    padding-bottom: 0.7rem;
}

.hero--publications .kicker {
    margin-bottom: 0.35rem;
}

.hero--publications .hero__text,
.hero--publications .hero__text::before {
    all: unset;
}

.hero--publications h1 {
    margin: 0;
}

.pub-section {
    padding: 0.85rem 0;
    margin-bottom: 1.25rem;
}

.pub-shell {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    padding: 1rem 1.05rem 0.2rem;
}

.pub-section + .pub-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.pub-group__title {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pub-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.7rem;
}

.pub-list--unordered {
    list-style: disc;
}

.pub-item {
    color: var(--ink);
}

.pub-item strong {
    font-family: "montserrat-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #000;
    background: #e6e6e6;
    padding: 0.02rem 0.22rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 640px;
}

.info-list {
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
}

.to-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.to-section + .to-section {
    margin-top: 1.4rem;
}

.to-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    padding: 1rem 1.05rem;
}

.to-panel h3 {
    margin: 0.7rem 0 0.35rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.03rem;
}

.teaching-block + .teaching-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dddddd;
}

.teaching-meta {
    margin: 0.1rem 0 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mini-list,
.activity-list {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
}

.activity-list li {
    color: #222;
}

.activity-date {
    display: inline-block;
    min-width: 6.2rem;
    color: var(--muted);
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.feedback-box {
    margin-top: 0.7rem;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #fafafa;
    padding: 0.7rem 0.8rem;
}

.feedback-title {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.feedback-box blockquote {
    margin: 0.45rem 0;
    border-left: 2px solid #d0d0d0;
    padding-left: 0.65rem;
    color: #333;
    font-size: 0.94rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #ddd;
}

.feature-card__body {
    padding: 0.75rem 0.8rem 0.9rem;
}

.feature-card__body h3 {
    margin: 0;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
}

.feature-card__body p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.research-area {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    padding: 1rem 1.05rem;
}

.research-area + .research-area {
    margin-top: 1rem;
}

.research-head {
    margin-bottom: 0.9rem;
}

.research-eyebrow {
    margin: 0;
    color: #6a6a6a;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.research-title {
    margin: 0.18rem 0 0;
    font-size: clamp(1.72rem, 3.1vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.research-lead {
    margin: 0.45rem 0 0;
    color: var(--muted);
    max-width: 62ch;
}

.research-project-list {
    display: grid;
    gap: 0.85rem;
}

.research-subtopic {
    border-top: 1px solid #d8d8d8;
    padding-top: 0.85rem;
}

.research-subtopic + .research-subtopic {
    margin-top: 0.2rem;
}

.research-subtopic__title {
    margin: 0 0 0.65rem;
    font-size: 1.14rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.01em;
}

.research-project-inline {
    --figure-col: 35%;
    display: grid;
    grid-template-columns: var(--figure-col) 1fr;
    gap: 1.1rem;
    align-items: start;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.85rem;
}

.research-subtopic > .research-project-inline:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.project-note h3 {
    margin: 0;
    font-size: 1.04rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.research-project-level3 {
    margin: 0;
    font-size: 0.95rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #303030;
}

.project-note p {
    margin: 0.28rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
    font-family: "montserrat-regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.project-note .card__link {
    font-size: 0.92rem;
}

.research-actions {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    align-items: center;
}

.research-btn {
    display: inline-block;
    text-decoration: none;
    color: #111111;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    padding: 0.33rem 0.58rem;
    font-size: 0.85rem;
    font-family: "montserrat-semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f4f4f4;
}

.research-btn:hover {
    background: #ececec;
    border-color: #a9a9a9;
}

.research-list {
    margin: 0.42rem 0 0;
    padding-left: 1.05rem;
    gap: 0.34rem;
    color: #505050;
    font-size: 0.91rem;
    line-height: 1.5;
}

.research-figure {
    margin: 0;
    border: 1px solid #dddddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.research-figure img {
    width: 100%;
    aspect-ratio: var(--img-ratio, 16 / 10);
    object-fit: contain;
    display: block;
    border-bottom: 1px solid #e1e1e1;
    background: #ffffff;
}

.research-figure--vertical img {
    aspect-ratio: 3 / 4;
}

.research-figure figcaption {
    padding: 0.45rem 0.6rem 0.5rem;
    color: #5f5f5f;
    font-size: 0.82rem;
    line-height: 1.45;
}

.footer {
    padding: 1.2rem 0 1.7rem;
    color: #666666;
    text-align: center;
    font-size: 0.86rem;
}

.reveal {
    animation: fadeUp 500ms ease both;
}

.reveal--delay {
    animation-delay: 100ms;
}

.reveal--delay-2 {
    animation-delay: 180ms;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .topbar__inner {
        align-items: flex-start;
        padding: 0.72rem 0;
    }

    .nav {
        gap: 0.6rem 0.95rem;
    }

    .hero__text,
    .hero__panel {
        padding: 1.25rem;
    }

    .profile-photo--small {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }

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

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

    .research-project-inline {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

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