@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:wght@600;700&display=swap');

:root {
    --ink: #111827;
    --muted: #5b6475;
    --line: #dce4ef;
    --paper: #ffffff;
    --soft: #f5f9ff;
    --cobalt: #1d4ed8;
    --deep: #08245d;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --coral: #f9736a;
    --magenta: #d946ef;
    --green: #10b981;
    --shadow: 0 16px 40px rgba(21, 45, 94, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 32rem),
        radial-gradient(circle at top right, rgba(217, 70, 239, 0.12), transparent 30rem),
        var(--soft);
}

a {
    color: var(--cobalt);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a:hover {
    color: var(--magenta);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
}

h1,
h2 {
    font-family: Lora, Georgia, serif;
    color: var(--deep);
}

p {
    margin: 0;
}

nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(220, 228, 239, 0.85);
    backdrop-filter: blur(18px);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.nav-logo img {
    width: 56px;
    height: 42px;
    object-fit: contain;
}

.nav-logo span {
    color: var(--deep);
    font-weight: 800;
    letter-spacing: 0;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
}

nav li a:hover,
nav li a.active {
    color: var(--cobalt);
    background: rgba(29, 78, 216, 0.09);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 44px 22px;
}

.hero {
    position: relative;
    min-height: 560px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 17, 46, 0.94) 0%, rgba(4, 17, 46, 0.78) 38%, rgba(4, 17, 46, 0.18) 100%),
        linear-gradient(0deg, rgba(4, 17, 46, 0.88), rgba(4, 17, 46, 0.12) 58%);
}

.hero-content {
    position: relative;
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: 86px 22px 68px;
    color: #fff;
}

.eyebrow {
    margin-bottom: 12px;
    color: #a7f3ff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 1040px;
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    letter-spacing: 0;
}

.hero-copy {
    max-width: 840px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.hero-tags span {
    padding: 7px 11px;
    border-radius: var(--radius);
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-pi {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-pi a {
    color: #67e8f9;
    border-bottom: 1px solid rgba(103, 232, 249, 0.5);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.research-card {
    min-height: 235px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(21, 45, 94, 0.07);
}

.research-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.research-card h3 {
    margin-top: 14px;
    color: var(--deep);
    font-size: 1.05rem;
}

.research-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.mission-panel {
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(21, 45, 94, 0.07);
}

.mission-panel h2,
.section-heading h2 {
    color: var(--deep);
    font-size: 1.6rem;
}

.mission-panel p {
    margin-top: 12px;
    color: var(--muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.section-heading h2::before {
    content: "";
    width: 7px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--magenta));
}

.section-heading > a {
    font-weight: 800;
    font-size: 0.92rem;
}

.news-list {
    display: grid;
    gap: 10px;
}

.news-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-left: 5px solid var(--cyan);
    border-radius: var(--radius);
}

.news-date {
    color: var(--cobalt);
    font-weight: 800;
    font-size: 0.9rem;
}

.news-content {
    color: var(--muted);
}

.work-grid {
    display: grid;
    gap: 16px;
}

.work-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(21, 45, 94, 0.07);
}

.work-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #eef6ff;
}

.work-info {
    min-width: 0;
}

.work-venue,
.pub-venue {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #075985;
    background: rgba(6, 182, 212, 0.14);
    font-size: 0.78rem;
    font-weight: 800;
}

.work-info h3 {
    color: var(--deep);
    font-size: 1.15rem;
}

.work-authors {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.work-info p:not(.work-authors) {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.93rem;
}

.work-links,
.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.work-links a,
.pub-links a,
.work-links span,
.pub-links span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
}

.work-links a,
.pub-links a {
    color: #fff;
    background: linear-gradient(135deg, var(--cobalt), var(--teal));
}

.work-links a:hover,
.pub-links a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--magenta), var(--coral));
}

.work-links span,
.pub-links span {
    color: var(--muted);
    background: #edf2f7;
}

.page-hero {
    padding: 54px 22px 42px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(217, 70, 239, 0.12)), #fff;
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.page-hero h1 {
    color: var(--deep);
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 1.05rem;
}

.page-hero .eyebrow {
    color: var(--cobalt);
}

.pub-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pub-filter {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.pub-filter.active,
.pub-filter:hover {
    color: #fff;
    border-color: var(--cobalt);
    background: var(--cobalt);
}

.pub-search {
    width: min(100%, 320px);
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
}

.pub-section {
    margin-top: 28px;
}

.pub-section h2 {
    margin-bottom: 14px;
    color: var(--deep);
    font-size: 1.45rem;
}

.pub-list {
    display: grid;
    gap: 14px;
}

.pub-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pub-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #eef6ff;
}

.pub-title {
    display: block;
    color: var(--deep);
    font-weight: 800;
    line-height: 1.3;
}

.pub-authors,
.pub-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.91rem;
}

.pub-meta {
    color: #334155;
}

.pub-year {
    color: var(--magenta);
    font-weight: 800;
}

.member-list,
.alumni-list {
    max-width: 950px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.people-hero {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(29, 78, 216, 0.13)), #fff;
}

.album-hero {
    background: linear-gradient(135deg, rgba(249, 115, 106, 0.16), rgba(6, 182, 212, 0.15)), #fff;
}

.join-hero {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(16, 185, 129, 0.14)), #fff;
}

.people-grid,
.join-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.person-card,
.join-card {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 100%;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(21, 45, 94, 0.07);
}

.featured-person {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
}

.person-photo,
.person-initials {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 12px 26px rgba(21, 45, 94, 0.16);
}

.featured-person .person-photo {
    width: 160px;
    height: 160px;
}

.person-photo {
    object-fit: cover;
    background: #eef6ff;
}

.person-initials {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--cobalt), var(--magenta));
    font-weight: 800;
    font-size: 1.65rem;
}

.person-kicker {
    color: var(--cobalt);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.person-info h3,
.join-card h3 {
    color: var(--deep);
    font-size: 1.2rem;
}

.person-info p,
.join-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.person-focus {
    min-height: 66px;
}

.person-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.person-links a,
.person-links span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
}

.person-links a {
    color: #fff;
    background: linear-gradient(135deg, var(--cobalt), var(--teal));
}

.person-links span {
    color: var(--muted);
    background: #edf2f7;
}

.alumni-head {
    color: var(--deep);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.11), rgba(29, 78, 216, 0.08));
    font-weight: 800;
}

.join-card {
    position: relative;
    overflow: hidden;
}

.join-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--coral));
}

.join-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--cobalt), var(--teal));
    font-weight: 800;
}

.member-item,
.alumni-item {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.member-item {
    grid-template-columns: 58px minmax(0, 1fr);
}

.member-avatar {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: #eef6ff;
    padding: 4px;
}

.member-info {
    display: grid;
    gap: 2px;
}

.member-name {
    color: var(--deep);
    font-weight: 800;
}

.member-role,
.member-research,
.member-links,
.alumni-period {
    color: var(--muted);
    font-size: 0.9rem;
}

.alumni-section {
    margin-top: 42px;
}

.alumni-item {
    grid-template-columns: 1.3fr 0.8fr 1.4fr;
}

.alumni-name,
.alumni-destination {
    font-weight: 700;
}

.footer-contact {
    background: #fff;
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.map-container iframe {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
}

.contact-info {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid var(--line);
}

.contact-info h3 {
    margin-bottom: 12px;
    color: var(--deep);
}

.contact-info p + p {
    margin-top: 10px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.album-item {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.album-logo-tile {
    background: #fff;
}

.album-logo-tile img {
    object-fit: contain;
    padding: 26px;
}

.album-item::after {
    content: attr(data-description);
    position: absolute;
    inset: auto 0 0;
    padding: 42px 14px 14px;
    color: #fff;
    background: linear-gradient(to top, rgba(4, 17, 46, 0.88), transparent);
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-item:hover::after {
    opacity: 1;
}

section {
    margin-bottom: 42px;
}

footer {
    padding: 28px 22px;
    color: rgba(255, 255, 255, 0.88);
    background: var(--deep);
    text-align: center;
    font-size: 0.86rem;
}

@media (max-width: 850px) {
    .nav-container {
        align-items: flex-start;
        flex-direction: column;
    }

    nav ul {
        justify-content: flex-start;
    }

    .hero {
        min-height: 640px;
    }

    .intro-grid,
    .research-grid,
    .people-grid,
    .join-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .featured-person {
        grid-template-columns: 1fr;
    }

    .work-card,
    .pub-card {
        grid-template-columns: 1fr;
    }

    .work-card img,
    .pub-card img {
        max-height: 260px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 34px 16px;
    }

    .hero-content,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading,
    .pub-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .alumni-item {
        grid-template-columns: 1fr;
    }
}
