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


:root {
    --bg: #000;
    --text: #f5f5f7;
    --secondary: #86868b;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;

    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================= ANNOUNCEMENT BAR ================= */

.announcement-bar {
    width: 100%;
    background: #111;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
}






.announcement-bar a {
    color: white;
    text-decoration: underline;
}

.announcement-bar a:hover {
    opacity: 0.7;
}

/* ================= NAVIGATION ================= */
.nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;

    background: rgba(0, 0, 0, 0.85);  /* solid fallback */

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);  /* required for Chrome/Safari */

    z-index: 1000;

    transform: translateZ(0); /* prevents Chrome jitter */
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;   /* increase vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.logo-link {
    color: var(--text);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ================= MOBILE NAV ================= */

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        width: 220px;
        padding: 20px;
        display: none;
        gap: 18px;
    }

    .nav-links.show {
        display: flex;
    }

      
    .nav-links a {
        font-size: 0.95rem;
    }
}

 






.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.headline {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.5s ease;
}

.headline.secondary {
    color: var(--secondary);
}

.statement {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.big-text {
    font-size: clamp(1.4rem, 4vw, 3rem);;
    max-width: 900px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.5s ease;
}

.feature {
    padding: 90px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature + .feature {
    border-top: 1px solid #111;
}



.feature.alt {
    background: linear-gradient(180deg, #0a0a0a, #111);
}

.feature-text {
    max-width: 600px;
}

.feature h2 {
    font-size: clamp(1.4rem, 5vw, 3rem);
    line-height: 1.2;
    word-break: break-word;
    margin-bottom: 20px;
}

.feature p {
    color: var(--secondary);
    font-size: 1.2rem;
}

.publications {
    padding: 120px 10%;
}

.paper {
    margin-bottom: 40px;
}

.paper .title {
    font-size: 1.2rem;
    font-weight: 500;
}

.paper .meta {
    color: var(--secondary);
}

.contact {
    padding: 120px 10%;
    text-align: center;
}

.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Research feature layout with media */

.research-feature {
    text-align: center;
}

.feature-caption {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-top: 10px;
    letter-spacing: 1px;
}

.feature-media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.feature-media img,
.feature-media video {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
}






/* Learn More Button */

.learn-more-container {
    margin: 60px 0 0 0;
    display: flex;
    justify-content: center;
}


.learn-more-button {
    padding: 14px 36px;
    border-radius: 30px;
    background: #0071e3;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.learn-more-button:hover {
    background: #2997ff;
    transform: scale(1.05);
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .feature-media {
        width: 100%;
    }

    .publications,
    .contact {
        padding: 120px 20px;
    }
}

/* Enlarge Leidenfrost video only */

.leidenfrost-section .feature-media video {
    width: 94%;        /* 75% × 1.25 ≈ 94% */
    max-width: 950px;  /* slightly larger desktop cap */
}

/* ================= PUBLICATIONS PAGE ================= */

.publications-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}



.publications-page h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 60px;
}

.paper {
    margin-bottom: 40px;
}

.paper .title {
    font-size: 1.2rem;
    font-weight: 500;
}

.paper .meta {
    color: var(--secondary);
}

.year-heading {
    margin-top: 80px;
    font-size: 1.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.paper-text {
    margin-top: 20px;
    line-height: 1.6;
}

.paper-text a {
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.paper-text a:hover {
    opacity: 0.6;
}

/* ================= GROUP PAGE ================= */

.group-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}


.group-section h1,
.group-section h2 {
    margin-bottom: 50px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.pi-container {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.pi-container img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
}

.pi-description {
    max-width: 600px;
    line-height: 1.7;
    text-align: justify;
}

.pi-description a {
    color: inherit;
    text-decoration: underline;
}


/* 3-column grid */

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.member-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.nav-links a.active {
    border-bottom: 2px solid white;
}


.member-card img {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
}

.member-card p {
    margin-top: 12px;
    font-weight: 500;
}


/* Responsive */

@media (max-width: 900px) {

    .pi-container {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 600px) {

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

@media (min-width: 1200px) {
    .feature-media img,
    .feature-media video {
        max-width: 650px;   /* reduce from 800px */
    }
}

html {
    scroll-behavior: smooth;
}

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

.contact a.underline {
    text-decoration: underline;
}


.underline {
    text-decoration: underline;
}

.map-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.map-container img {
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.map-container img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.pi-info {
    max-width: 600px;
}
.pi-links {
    margin-top: 20px;
    display: flex;
    gap: 25px;
}

.pi-links a {
    color: var(--text);
    font-size: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pi-links a:hover {
    transform: scale(1.15);
    opacity: 0.7;
}


.pi-links img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pi-links img:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

body {
    scrollbar-gutter: stable;
}












