/* =========================
   Base
========================= */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

:root {
    --font-headings: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    --bg: #f5f6f7;
    --text: #111827;
    --muted: #4b5563;
    --line: rgba(17, 24, 39, 0.12);
    --white: #ffffff;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-headings);
}

h1, h2, h3, h4, h5, h6,
.main-nav a {
    font-family: var(--font-headings);
    letter-spacing: 0.02em;
}

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

a:hover {
    opacity: 0.8;
}

/* =========================
   Header
========================= */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    background: #111827;

    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#research-start {
    scroll-margin-top: 79px;
}

/* =========================
   Hero slideshow
========================= */

.hero {
    position: relative;
    height: calc(100vh - 79px);
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0b1118;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    filter: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #07121f;
    opacity: 0.10;
}

.hero-content {
    position: relative;
    z-index: 3;

    width: min(1180px, calc(100% - 96px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 54px;
    box-sizing: border-box;

    background: rgba(7, 18, 31, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;

    color: white;
    text-align: left;
}

.hero-kicker {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-subheading {
    margin: 14px 0 0 0;
    color: white;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-heading {
    margin: 0 0 18px 0;
    color: white;
    font-size: clamp(56px, 8vw, 92px);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: 0.01em;
    max-width: none;
}

.hero-about-title {
    margin: 24px 0 18px 0;
    color: white;
    max-width: none;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.25;
    font-weight: 400;
}

.hero-about-text {
    margin: 28px 0 0 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: none;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 300;
}

.hero-controls {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-control {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(7, 18, 31, 0.80);
    color: white;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-control:hover {
    background: rgba(7, 18, 31, 0.95);
}

@media (max-width: 760px) {
    .hero-content {
        width: calc(100% - 36px);
        padding: 36px 28px;
        border-radius: 18px;
    }

    .hero-heading {
        font-size: clamp(48px, 14vw, 72px);
    }

    .hero-about-title {
        font-size: 24px;
    }

    .hero-about-text {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* =========================
   Research Focus Circles
========================= */

.focus-section {
    background: #111827;
    color: white;
    min-height: calc(100vh - 79px);
    box-sizing: border-box;
    padding: 72px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    max-width: 1280px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-label {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: white;
}

.focus-circle-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    row-gap: 48px;
}

.focus-circle-card {
    text-align: center;
    cursor: pointer;
}

.focus-circle-card:nth-child(1) {
    grid-column: 1 / span 4;
}

.focus-circle-card:nth-child(2) {
    grid-column: 5 / span 4;
}

.focus-circle-card:nth-child(3) {
    grid-column: 9 / span 4;
}

.focus-circle-card:nth-child(4) {
    grid-column: 3 / span 4;
}

.focus-circle-card:nth-child(5) {
    grid-column: 7 / span 4;
}

.focus-circle-image {
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.focus-circle-card:hover .focus-circle-image {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.55);
}

.focus-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* IMPORTANT: if images fail to load, circle stays visible */
.focus-circle-image:empty {
    background: rgba(255, 255, 255, 0.12);
}

.focus-circle-card h3 {
    max-width: 280px;
    margin: 0 auto;
    color: white;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
}

/* =========================
   Research Focus Modal
========================= */

.focus-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.focus-modal.open {
    display: flex;
}

.focus-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 18, 0.68);
    backdrop-filter: blur(6px);
}

.focus-modal-card {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    color: #111827;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 48px;
}

.focus-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #111827;
}

.focus-modal-layout {
    display: flex;
    align-items: center;
    gap: 52px;
}

.focus-modal-left {
    flex: 0 0 330px;
    text-align: center;
}

.focus-modal-left img {
    width: 310px;
    height: 310px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.focus-modal-right h2 {
    margin: 0 0 20px 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 400;
    color: #111827;
}

.focus-modal-right {
    flex: 1;
}

.focus-modal-right p {
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
}

/* =========================
   Responsive Research Focus
========================= */

@media (max-width: 950px) {
    .focus-section {
        min-height: auto;
        padding: 80px 28px 90px;
    }

    .focus-circle-grid {
        max-width: 680px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .focus-circle-card:nth-child(n) {
        grid-column: auto;
    }

    .focus-modal-layout {
        gap: 36px;
    }

    .focus-modal-left {
        flex: 0 0 280px;
    }

    .focus-modal-left img {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 700px) {
    .focus-modal-card {
        padding: 42px 28px 34px;
    }

    .focus-modal-layout {
        flex-direction: column;
        gap: 28px;
    }

    .focus-modal-left {
        flex: none;
    }

    .focus-modal-left img {
        width: 190px;
        height: 190px;
    }

    .focus-modal-right p {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .focus-section {
        padding: 76px 24px 84px;
    }

    .focus-circle-grid {
        grid-template-columns: 1fr;
        row-gap: 44px;
    }

    .focus-circle-image {
        width: 210px;
    }

    .focus-circle-card h3 {
        font-size: 19px;
    }
}


/* =========================
   Contact us
========================= */

.home-contact {
    background: #ffffff;
    padding: 42px 48px 46px;
}

.home-contact-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 48px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.home-contact-left h2 {
    margin: 0 0 14px 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #111827;
}

.home-contact-text {
    margin: 0;
    max-width: 470px;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 300;
    color: #4b5563;
}

.home-contact-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 0;
}

.contact-mini-block {
    padding-top: 0;
}

.contact-mini-block h3 {
    margin: 0 0 7px 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 400;
}

.contact-mini-block p,
.contact-mini-block a {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 300;
    color: #111827;
}


/* =========================
   Publications Page
========================= */

.page-content {
    padding: 72px 48px 100px;
    background: var(--bg);
    min-height: 100vh;
}

.publications-section {
    max-width: 1180px;
    margin: 0 auto;
}

.page-title,
.small-section-title {
    margin: 0 0 18px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 400;
    color: #111827;
}

.pub-year {
    margin-bottom: 64px;
}

.pub-year-title {
    margin: 0 0 24px 0;
    font-size: 34px;
    font-weight: 400;
    color: #111827;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.pub-item {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 30px 32px;
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
}

.pub-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 400;
    color: #111827;
}

.pub-authors {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.pub-venue {
    margin: 0 0 18px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    font-style: italic;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #111827;
    background: transparent;
    transition: 0.2s ease;
}

.pub-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: #111827;
    color: #ffffff;
}

/* =========================
   Responsive Publications
========================= */

@media (max-width: 960px) {

    .page-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .page-title {
        margin-bottom: 42px;
    }

    .pub-item {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .pub-year-title {
        font-size: 28px;
    }

    .pub-title {
        font-size: 20px;
    }

    .pub-links {
        gap: 8px;
    }
}


/* =========================
   People Page
========================= */

.page-content {
    padding: 72px 32px 100px 32px;
    background: var(--bg);
    min-height: 100vh;
}

.people-hero {
    min-height: auto;
    margin: 0 auto 70px auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 34px;
}

.people-hero-top {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(320px, 1fr);
    gap: 42px;
    align-items: start;
}

.people-slideshow {
    position: relative;
    width: 100%;
    overflow: visible;
    background: transparent;
}

.people-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.people-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.people-slide img {
    width: 100%;
    height: min(34vh, 340px);
    object-fit: cover;
    display: block;
}

.people-slide-title {
    margin: 18px 0 0 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    color: #111827;
}

.people-diversity-statement {
    max-width: 620px;
}

.people-diversity-statement h1 {
    margin: 0 0 22px 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    font-weight: 400;
    color: #111827;
}

.people-diversity-statement p {
    margin: 0;
    font-size: 19px;
    line-height: 1.8;
    color: #374151;
}

/* Right-side slideshow text */

.people-slideshow-description {
    max-width: 620px;
}

.people-kicker {
    margin: 0 0 16px 0;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.people-slideshow-description h1 {
    margin: 0 0 22px 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    font-weight: 400;
    color: #111827;
}

.people-slideshow-description p {
    margin: 0;
    font-size: 19px;
    line-height: 1.8;
    color: #374151;
}

/* Lab Director inside first screen */

.lab-director {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 24px;
    margin: 0;
}

.lab-director-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.lab-director-text h2,
.person-card h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 400;
    color: #111827;
}

.lab-director-bio {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.65;
    color: #374151;
}

.people-hero,
.people-section {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.description {
    margin: 16px 0 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.scholar-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #111827;
    transition: 0.2s ease;
}

.scholar-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: #111827;
    color: #ffffff;
}

.person-card .scholar-link,
.lab-director-text .scholar-link {
    margin-right: 10px;
    margin-bottom: 4px;
}

.lab-director,
.person-card {
    border-radius: 18px;
    overflow: hidden;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 80px;
}

.person-card {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 14px;
}

.person-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;

    border-radius: 12px;
}

.bio-button {
    font-family: var(--font-headings);
    background: transparent;
    cursor: pointer;
}

/* =========================
   Bio Modal
========================= */

.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.bio-modal.open {
    display: flex;
}

.bio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 18, 0.68);
    backdrop-filter: blur(6px);
}

.bio-modal-card {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 32px;
}

.bio-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #111827;
}

.bio-modal-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.bio-modal-content h2 {
    margin: 0 36px 18px 0;
    font-size: 30px;
    font-weight: 400;
    color: #111827;
}

.bio-modal-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

/* =========================
   Alumni
========================= */

.alumni-wrapper {
    margin-bottom: 80px;
}

.alumni-group {
    margin-bottom: 36px;
}

.alumni-group-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 400;
    color: #111827;
}

.alumni-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 400;
    color: #111827;
}

.alumni-name:last-child {
    margin-bottom: 0;
}

.side-by-side-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    margin-bottom: 80px;
}

.grouped-list-column {
    min-width: 0;
}

.grouped-list-wrapper {
    margin-bottom: 0;
}

.people-slide-description {
    margin: 8px 0 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: #4b5563;
}

@media (max-width: 800px) {
    .side-by-side-lists {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* =========================
   Responsive People Page
========================= */

@media (max-width: 1250px) {
    .people-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .people-hero {
        min-height: auto;
        justify-content: flex-start;
    }

    .people-hero-top {
        grid-template-columns: 1fr;
    }
    
    .people-slide img {
        height: 360px;
    }

    .lab-director {
        grid-template-columns: 220px 1fr;
    }

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

@media (max-width: 800px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-director {
        grid-template-columns: 1fr;
    }

    .lab-director-image {
        max-width: 280px;
    }
}

@media (max-width: 500px) {
    .page-content {
        padding-left: 22px;
        padding-right: 22px;
    }

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

    .people-slideshow {
        height: 280px;
    }

    .people-slideshow-description h1 {
        font-size: 42px;
    }
}