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

html {
    font-size: 110%;
}

:root {
    --bg: #f9f9fb;
    --surface: #fff;
    --border: #e4e4ec;
    --accent: #c8102e;
    --accent2: #d64c62;
    --text: #1a1a2e;
    --muted: #6b6b80;
    --card: #fff;
    --content-width: 1140px;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Nav ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 249, 251, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    height: 84px;
}

@media (max-width: 600px) {
    nav {padding: .6rem 1rem;}
    .lab-logo img {height: 35px;}
    .tab-links {gap: 0;}
    .tab-links a, .dropdown-toggle, .tab-link-disabled {padding: .4rem .6rem;font-size: .78rem;}
}

.lab-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    cursor: pointer;
}

.lab-logo img {
    height: 74px;
    width: auto;
    display: block;
}

.tab-links {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: .15rem;
    margin-left: auto;
}

.tab-links a,
.dropdown-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: var(--muted);
    text-decoration: none;
    padding: .45rem .9rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: color .2s, background .2s;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
}

.dropdown-toggle {
    padding: .7rem 1.4rem;
    min-width: 160px;
    text-align: center;
}

.tab-links a:hover,
.dropdown-toggle:hover {
    color: var(--text);
    background: #f0f0f5;
}

.tab-links a.active,
.dropdown-toggle.active {
    color: var(--accent);
    background: #fbeef0;
}

.tab-link-disabled {
    display: inline-block;
    padding: .45rem .9rem;
    font-size: 1.2rem;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--muted);
    cursor: default;
    border-radius: 6px;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    gap: .1rem;
    width: 100%;
    padding: 1rem;
    margin-top: 0.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    z-index: 200;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: 0;
    right: 0;
    height: 0.25rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    display: block;
    padding: .5rem .7rem;
    border-radius: 0;
    color: var(--text);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 6px 6px;
}

.dropdown-menu a:hover {
    background: #f0f0f5;
    color: var(--accent);
}

@media (max-width: 600px) {
    .dropdown-toggle {padding: .5rem .9rem;}
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 64vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2.5rem 3rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(rgba(15, 15, 25, .55), rgba(15, 15, 25, .65)), url('assets/hero.png') top/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: -140px;
    left: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, .08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -60px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 76, 98, .07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 16, 46, .08);
    border: 1px solid rgba(200, 16, 46, .18);
    border-radius: 20px;
    padding: .3rem .85rem;
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
    max-width: 700px;
}

.hero p {
    margin: 1.2rem 0 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.8;
    max-width: var(--content-width);
}

.hero-btns {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1.3rem;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter Tight', sans-serif;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    color: var(--text);
    padding: .6rem 1.3rem;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter Tight', sans-serif;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Sections ── */
.section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
}

.section-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
    margin-bottom: .6rem;
}

.section-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.section-link:hover {
    color: var(--accent);
}

.section-intro {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ── Research Topics ── */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.topic-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.topic-item:nth-child(even) {
    flex-direction: row-reverse;
}

.topic-item:hover {
    border-color: rgba(200, 16, 46, .35);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(200, 16, 46, .07);
}

a.topic-item {
    text-decoration: none;
    color: inherit;
}

.topic-media {
    flex: 0 0 220px;
}

.topic-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
    background: #f0f0f6;
}

.topic-body {
    flex: 1 1 auto;
}

.topic-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(200, 16, 46, .3);
    line-height: 1;
    margin-bottom: .4rem;
}

.topic-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: .3rem;
}

.topic-body p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 640px) {
    .topic-item,
    .topic-item:nth-child(even) {
        flex-direction: column;
    }
    .topic-media {
        flex-basis: auto;
        width: 100%;
    }
}

/* ── News ── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    gap: 1.2rem;
    align-items: baseline;
    padding: .3rem 0;
}

.news-item .date {
    min-width: 80px;
    font-size: .75rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: .02em;
    flex-shrink: 0;
}

.news-item .text {
    font-size: .87rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ── Inner Pages ── */
.page {
    max-width: var(--content-width);
    margin: 3rem auto;
    padding: 0 2.5rem;
}

.page h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.page h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 2.5rem 0 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.page p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: .8rem;
}

.page ul {
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 2;
    font-size: .9rem;
}

.page a {
    color: var(--accent);
    text-decoration: none;
}

.page a:hover {
    text-decoration: underline;
}

/* ── Team ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1rem;
    margin: 1rem 0;
}

.card {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
}

.card .avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: #f0f0f6;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .6rem;
    overflow: hidden;
    font-size: 2rem;
    color: #bbb;
    transition: border-color .2s, box-shadow .2s;
}

.card:hover .avatar {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(200, 16, 46, .1);
}

.card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card .name {
    font-weight: 600;
    font-size: .85rem;
    color: var(--text);
}

.card .role {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .15rem;
}

.site-link {
    display: inline-flex;
    vertical-align: middle;
    margin-left: .3rem;
    color: var(--muted);
}

.site-link:hover {
    color: var(--accent);
}

.site-link svg {
    display: block;
}

.alumni-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alumni-list {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.alumni-item {
    color: var(--text);
    font-size: .9rem;
}

/* ── Research Projects ── */
.page-intro {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.project:last-child {
    border-bottom: none;
}

.project-media {
    flex: 0 0 300px;
}

.project-media img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
    background: #f0f0f6;
}

.project-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    text-transform: none !important;
    letter-spacing: -.01em !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin: 0 0 .5rem !important;
}

.project-body p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: .7rem;
}

@media (max-width: 640px) {
    .project {
        flex-direction: column;
    }
    .project-media {
        flex-basis: auto;
        width: 100%;
    }
}

.pi-title {
    margin-top: 1rem !important;
}

/* ── Publications ── */
.pub {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.pub:last-child {
    border-bottom: none;
}

.pub-img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: #f0f0f6;
}

.pub .title {
    font-weight: 600;
    font-size: .93rem;
    color: var(--text);
}

.pub .authors {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .3rem;
}

.pub .venue {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .2rem;
}

.pub .venue a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.pub .venue a:hover {
    text-decoration: underline;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: .75rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}