/* Bio */
.bio { display: flex; gap: 42px; align-items: center; padding: 44px 0 18px; }
.bio-photo { flex: 0 0 220px; position: relative; }
.bio-photo img {
    width: 200px; height: 260px; object-fit: cover; object-position: 50% 25%;
    border-radius: 14px; box-shadow: var(--shadow-lg); display: block;
    transition: transform .4s ease;
}
.bio-photo:hover img { transform: rotate(-1.2deg) scale(1.02); }
.bio-photo::after {
    content: ''; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
    border-radius: 14px; background: var(--accent-soft); border: 1.5px solid var(--accent-line);
}
.bio-body { flex: 1; min-width: 0; }
.bio-name { font-size: 40px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.bio-name span { color: var(--accent); }
.bio-sub { margin: 4px 0 14px; color: var(--ink-3); font-size: 14.5px; }
.bio-tagline { font-size: 18px; font-weight: 700; color: var(--accent-ink); margin: 0 0 10px; }
.bio-body p { margin: 0 0 11px; color: var(--ink-2); }
.bio-body p strong { color: var(--ink); }
.highlights { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 7px; }
.mentor-note {
    margin-top: 16px; display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--accent-line);
    font-size: 14px; color: var(--ink-2);
}
.mentor-note a { font-weight: 700; }

/* News */
.news-wrap { display: flex; gap: 34px; align-items: flex-start; }
.news-main { flex: 1; min-width: 0; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
    display: grid; grid-template-columns: 88px 1fr; gap: 12px;
    padding: 7px 10px; margin: 0 -10px; border-radius: 8px; line-height: 1.55;
    transition: background .15s;
}
.news-list li:hover { background: var(--surface); }
.news-list li.hidden { display: none; }
.news-list li.star { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.news-list li.star .news-date { color: var(--gold); }
.star-badge { font-size: 12.5px; padding: 3px 11px; font-weight: 900; }
.oral-mark { color: var(--gold); }
details.abstract { margin-top: 6px; }
details.abstract summary { cursor: pointer; color: var(--accent-ink); font-weight: 700; font-size: 13.5px; }
details.abstract p { font-size: 14px; line-height: 1.6; margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.news-date { font: 500 12.5px/1.9 var(--mono); color: var(--ink-3); white-space: nowrap; }
.news-list li.hot .news-date { color: var(--accent-ink); }
.news-new {
    display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px;
    font: 700 10px/1.7 var(--font); letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: var(--accent); vertical-align: 2px;
}
.more-btn {
    margin-top: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer;
    color: var(--accent-ink); font: 700 14px var(--font);
}
.more-btn:hover { text-decoration: underline; }
.news-media { flex: 0 0 230px; display: flex; flex-direction: column; gap: 16px; padding-top: 52px; }
.media-card { display: block; border-radius: 12px; overflow: hidden; background: var(--bg);
    border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.media-card .thumb { background: #fff; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-card figcaption { padding: 8px 12px 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.media-card figcaption b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.media-card figure { margin: 0; }

/* ── Research pillars ───────────────────────────── */
.statement p { color: var(--ink-2); max-width: 860px; }
.statement .hl { color: var(--accent-ink); font-weight: 700; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 6px; }
.pillar { position: relative; padding: 18px 18px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pillar-num { font: 500 12px var(--mono); color: var(--accent-ink); letter-spacing: .08em; }
.pillar h3 { font-size: 16px; margin: 4px 0 6px; }
.pillar p { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.55; }
.pillar ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.pillar li { padding: 3px 0 3px 16px; position: relative; }
.pillar li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.pillar-arrow { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 10px; letter-spacing: .02em; }

/* ── Project strip (auto-scrolling) ─────────────── */
.strip {
    position: relative; margin: 22px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.strip::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, var(--accent), #8ec0f5, var(--accent), #2a6ab5, var(--accent));
    background-size: 200% 100%; animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.strip-label {
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 44px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--bg); border-right: 1px solid var(--line);
    font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
    writing-mode: vertical-rl; transform: rotate(180deg);
}
.strip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.6); } }
.strip-fade { position: absolute; right: 0; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
    background: linear-gradient(270deg, var(--bg), transparent); }
.strip-viewport { overflow: hidden; margin-left: 44px; }
.strip-track { display: flex; gap: 12px; padding: 16px 0 16px 12px; width: max-content; animation: scroll 55s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .strip-viewport { overflow-x: auto; }
}
.p-card {
    width: 210px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--surface);
    border: 1.5px solid var(--line); display: flex; flex-direction: column; color: var(--ink);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.p-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); text-decoration: none; }
.p-thumb { position: relative; height: 118px; background: #fff; overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s; }
.p-card:hover .p-thumb img { transform: scale(1.06); }
.p-tag { position: absolute; top: 8px; left: 8px; }
.p-body { padding: 10px 12px 12px; }
.p-name { font-weight: 900; font-size: 14px; line-height: 1.3; display: block; }
.p-desc { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; line-height: 1.4; }

/* ── Publications ───────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.filter {
    padding: 5px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
    color: var(--ink-2); font: 700 13px var(--font); cursor: pointer; transition: all .15s;
}
.filter:hover { border-color: var(--accent); color: var(--accent-ink); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter .count { opacity: .7; font-weight: 400; margin-left: 3px; }
.pub {
    display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 14px; margin: 0 -14px;
    border-radius: 12px; transition: background .2s;
}
.pub:hover { background: var(--surface); }
.pub.is-hidden { display: none; }
.pub.featured { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.pub-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #fff;
    border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.pub-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.pub:hover .pub-thumb img { transform: scale(1.04); }
.pub-title { font-size: 16.5px; font-weight: 900; color: var(--ink); line-height: 1.35; }
a.pub-title:hover { color: var(--accent-ink); }
.pub-authors { font-size: 14px; color: var(--ink-3); margin: 4px 0; }
.pub-authors a { color: var(--ink-3); }
.pub-authors a:hover { color: var(--accent-ink); }
.first-author { color: var(--ink); font-weight: 700; }
.pub-venue { font-size: 14px; margin: 4px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pub-venue b { color: var(--ink); }
.pub-tldr { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 8px; line-height: 1.55; }
.pub-links { font-size: 14px; font-weight: 700; }
.pub-links a + a::before, .pub-links span + a::before, .pub-links a + span::before { content: '|'; color: var(--line); margin: 0 8px; font-weight: 400; }
.pub-links .soon { color: var(--ink-3); font-weight: 400; font-style: italic; }

.cite-list { list-style: none; padding: 0; margin: 0; counter-reset: cite; }
.cite-list li {
    position: relative; padding: 9px 0 9px 36px; border-bottom: 1px dashed var(--line);
    font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
}
.cite-list li::before {
    counter-increment: cite; content: counter(cite, decimal-leading-zero);
    position: absolute; left: 0; top: 11px; font: 500 12px var(--mono); color: var(--accent-ink);
}
.cite-list li a.tiny { font-size: 12.5px; font-weight: 700; margin-left: 6px; }

/* ── Lists: talks / honors / media ─────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.clean li { position: relative; padding: 5px 0 5px 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
ul.clean li::before { content: '–'; position: absolute; left: 0; color: var(--ink-3); }
ul.clean li b { color: var(--ink); }
.meta { color: var(--ink-3); font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--accent-line); }
.timeline li { position: relative; padding: 6px 0 8px 14px; font-size: 14.5px; color: var(--ink-2); }
.timeline li::before {
    content: ''; position: absolute; left: -25px; top: 13px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg); border: 2.5px solid var(--accent);
}
.timeline li.star::before { background: var(--accent); }
.timeline .when { font: 500 12px var(--mono); color: var(--ink-3); display: block; }
.timeline b { color: var(--ink); }

.logos { display: flex; justify-content: center; align-items: center; gap: 44px; margin: 26px 0 0; flex-wrap: wrap; opacity: .75; }
.logos img { height: 46px; }
[data-theme="dark"] .logos img { background: #fff; padding: 6px 10px; border-radius: 10px; }

/* Dark-mode easter egg */
.floating-icon { position: fixed; font-size: 20px; opacity: 0; pointer-events: none; z-index: 0; animation: float 7s ease-in-out infinite; }
[data-theme="dark"] .floating-icon { opacity: .14; }
@keyframes float { 50% { transform: translateY(-16px) rotate(8deg); } }

@media (max-width: 860px) {
    .bio { flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 30px; }
    .bio-photo img { width: 160px; height: 200px; }
    .bio-name { font-size: 32px; }
    .news-wrap { flex-direction: column; gap: 10px; }
    .news-media { flex-direction: row; padding-top: 0; width: 100%; }
    .news-media > * { flex: 1; min-width: 0; }
    .pillars { grid-template-columns: 1fr; }
    .pub { grid-template-columns: 1fr; gap: 12px; }
    .pub-thumb { max-width: 360px; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .news-list li { grid-template-columns: 1fr; gap: 0; }
    .news-media { flex-direction: column; }
    .strip-label { display: none; }
    .strip-viewport { margin-left: 0; }
}