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

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

/* Original profile banner */
.hero {
    background: #16222a;
    background: linear-gradient(160deg, #16222a 0%, #2a4a5e 100%);
    color: white;
    padding: 80px 40px 60px;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    border: 3px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.hero-text h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.hero-text .subtitle {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2px;
}

.hero-text .email {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 18px;
}

.hero-text .email a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.hero-text .email a:hover { color: #fff; border-bottom-color: #fff; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-links a {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.25s ease;
}

.hero-links a.primary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-links a.primary:hover { background: #fff; color: #16222a; border-color: #fff; }

/* Original sticky navigation */
nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .nav-inner { max-width: 960px; margin: 0 auto; display: flex; gap: 0; }

nav a {
    display: inline-block;
    padding: 16px 24px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active { color: #2a4a5e; border-bottom-color: #2a4a5e; }

/* Original content rhythm */
.content { max-width: 960px; margin: 0 auto; padding: 0 40px; }

section { padding: 50px 0; border-bottom: 1px solid #f0f0f0; }
section:last-of-type { border-bottom: none; }

h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: #16222a;
    margin-bottom: 24px;
}

.about-text { color: #555; font-size: 17px; line-height: 1.85; }
.about-text p { margin-bottom: 14px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: #2a4a5e; font-weight: 600; }
.about-text a, .text-link { color: #2a4a5e; text-decoration: none; border-bottom: 1px dashed #2a4a5e; }
.about-text a:hover, .text-link:hover { border-bottom-style: solid; }

/* Openings */
.openings-content {
    background: linear-gradient(135deg, #f6f9fb 0%, #eef3f7 100%);
    border: 1px solid #dce6ed;
    border-radius: 10px;
    padding: 28px 32px;
    font-size: 17px;
    color: #555;
    line-height: 1.85;
}

.openings-content p { margin-bottom: 12px; }
.openings-content p:last-child { margin-bottom: 0; }
.openings-content strong { color: #2a4a5e; }
.openings-content a { color: #2a4a5e; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #2a4a5e; }
.openings-content a:hover { border-bottom-style: solid; }

/* News */
.news-scroll {
    position: relative;
    max-height: 380px;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #d8e2ea transparent;
}
.news-scroll::-webkit-scrollbar { width: 5px; }
.news-scroll::-webkit-scrollbar-track { background: transparent; }
.news-scroll::-webkit-scrollbar-thumb { background: #d8e2ea; border-radius: 3px; }
.news-scroll::-webkit-scrollbar-thumb:hover { background: #9ab5c8; }
.news-fade {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}
.news-list { margin: 0; padding: 0; }
.news-item { display: flex; gap: 16px; padding: 9px 0; align-items: baseline; }
.news-date { flex-shrink: 0; width: 64px; font-size: 13px; font-weight: 600; color: #2a4a5e; font-variant-numeric: tabular-nums; }
.news-text { font-size: 15px; color: #555; line-height: 1.55; }
.news-text strong { color: #2a4a5e; }

/* Publications — unchanged from the original visual language */
.pub-list { margin-top: 10px; }
.pub-entry { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid #f0f0f0; }
.pub-entry:last-child { border-bottom: none; }
.pub-year { flex-shrink: 0; width: 130px; padding-top: 3px; display: flex; flex-direction: column; gap: 8px; }

.pub-tag {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.pub-tag.conf { color: #2a4a5e; background: #e8f0f5; }
.pub-tag.award { color: #92600a; background: #fef6e0; border: 1px solid #f0dca0; font-size: 13px; }
.pub-body { flex: 1; min-width: 0; }
.pub-body .title { font-weight: 600; color: #222; font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.pub-body .authors { font-size: 16px; color: #888; line-height: 1.6; margin-bottom: 6px; }
.pub-body .authors strong { color: #2a4a5e; }
.pub-body .venue { font-size: 15px; color: #aaa; font-style: italic; }
.footnote { font-size: 14px; color: #777; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.footnote a { color: #2a4a5e; text-decoration: none; border-bottom: 1px dashed #2a4a5e; }

/* Team additions, styled to match the original page */
.team-list { display: flex; flex-direction: column; gap: 0; }
.team-entry { display: flex; align-items: center; gap: 32px; padding: 28px 0; border-bottom: 1px solid #f0f0f0; }
.team-entry:last-child { border-bottom: none; }
.team-photo {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #e3ebf0;
    background: #eef3f7;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.pi img { object-position: center 18%; }
.team-photo.student img { transform: translate(6px, -8px) scale(2); transform-origin: 50% 0; }
.team-info h3 { font-family: 'Source Serif 4', Georgia, serif; color: #16222a; font-size: 23px; margin-bottom: 2px; }
.team-role { color: #2a4a5e; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.team-bio { color: #666; font-size: 16px; line-height: 1.7; }

footer { text-align: center; padding: 40px 20px; color: #ccc; font-size: 14px; }

@media (max-width: 700px) {
    .hero { padding: 50px 24px 40px; }
    .hero-inner { flex-direction: column; text-align: center; gap: 25px; }
    .hero-text h1 { font-size: 30px; }
    .hero-links { justify-content: center; }
    .content { padding: 0 24px; }
    section { padding: 36px 0; }
    .pub-entry { flex-direction: column; gap: 8px; }
    .pub-year { width: auto; flex-direction: row; gap: 8px; align-items: center; }
    .news-item { flex-direction: column; gap: 4px; }
    .news-date { width: auto; }
    nav .nav-inner { justify-content: center; flex-wrap: wrap; }
    nav a { padding: 14px 10px; font-size: 11px; }
    .team-entry { align-items: flex-start; gap: 20px; }
    .team-photo { width: 96px; height: 96px; }
    .team-info h3 { font-size: 20px; }
    .team-bio { font-size: 15px; }
}
