:root {
    --bg-start: #ffffff;
    --bg-mid: #c2e9fb;
    --bg-end: #a1c4fd;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --ink: #24313f;
    --muted: #5f7082;
    --cyan: #55c4d7;
    --cyan-dark: #237d96;
    --red: #ff6b6b;
    --line: rgba(36, 49, 63, 0.14);
    --shadow: 0 18px 50px rgba(55, 95, 135, 0.16);
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.75), transparent 28rem),
        linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

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

img {
    max-width: 100%;
}

.menu-state {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    z-index: 50;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--surface-strong);
    border-right: 1px solid var(--line);
    box-shadow: 3px 0 18px rgba(36, 49, 63, 0.12);
    backdrop-filter: blur(12px);
    transition: left 0.45s ease;
}

.menu-state:checked + .sidebar {
    left: 0;
}

.menu-toggle {
    position: absolute;
    top: 22px;
    right: -52px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    width: 52px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    writing-mode: vertical-lr;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: var(--cyan);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 34px 22px 18px;
    color: var(--ink);
}

.sidebar-title:hover {
    color: var(--ink);
}

.sidebar-title img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.sidebar-title strong,
.sidebar-title small {
    display: block;
}

.sidebar-title small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.site-nav {
    padding: 18px 22px;
}

.site-nav a {
    display: block;
    border-left: 4px solid transparent;
    color: #333;
    margin: 8px 0;
    padding: 9px 12px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    border-left-color: var(--cyan);
    background: rgba(85, 196, 215, 0.11);
    color: var(--cyan-dark);
}

.page-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 76px;
    transition: transform 0.45s ease;
}

.menu-state:checked ~ .page-shell,
.menu-state:checked ~ .site-footer {
    transform: translateX(120px);
}

.content-panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 60px);
    backdrop-filter: blur(8px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(28px, 5vw, 52px);
    align-items: center;
    min-height: 58vh;
}

.eyebrow {
    color: var(--cyan-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: #1d2a37;
    line-height: 1.18;
}

h1 {
    font-size: clamp(1.95rem, 3.2vw, 3rem);
    margin: 0 0 16px;
}

h2 {
    font-size: 1.45rem;
    margin: 34px 0 16px;
    text-align: center;
}

h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

p {
    margin: 0 0 17px;
}

table {
    width: 100%;
    margin: 22px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(36, 49, 63, 0.18);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

thead th {
    background: linear-gradient(180deg, rgba(85, 196, 215, 0.18), rgba(85, 196, 215, 0.08));
    color: #133544;
    font-weight: 700;
    text-align: left;
}

th,
td {
    border-bottom: 1px solid rgba(36, 49, 63, 0.14);
    border-right: 1px solid rgba(36, 49, 63, 0.12);
    padding: 12px 14px;
    vertical-align: top;
}

th:last-child,
td:last-child {
    border-right: 0;
}

tbody tr:nth-child(even) td {
    background: rgba(194, 233, 251, 0.18);
}

tbody tr:hover td {
    background: rgba(85, 196, 215, 0.12);
}

tbody tr:last-child td {
    border-bottom: 0;
}

caption {
    caption-side: bottom;
    padding-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: left;
}

.lead {
    color: #34495e;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    max-width: 760px;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--cyan);
    border-radius: 999px;
    background: var(--cyan);
    color: #fff;
    font-weight: 700;
    padding: 8px 17px;
}

.button:hover {
    background: var(--cyan-dark);
    border-color: var(--cyan-dark);
    color: #fff;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--cyan-dark);
}

.visual-panel,
.card,
.callout {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(55, 95, 135, 0.12);
}

.visual-panel {
    overflow: hidden;
    border-radius: 12px;
}

.visual-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero .visual-panel img {
    aspect-ratio: 16 / 10;
}

.figure-grid .visual-panel img {
    aspect-ratio: 16 / 10;
    background: #fff;
    object-fit: contain;
}

.caption {
    color: var(--muted);
    font-size: 0.88rem;
    padding: 13px 15px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

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

.figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.card {
    border-radius: 12px;
    padding: 22px;
}

.card p:last-child,
.callout p:last-child {
    margin-bottom: 0;
}

.list-clean {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-clean li {
    border-top: 1px solid var(--line);
    padding: 15px 0;
}

.list-clean li:first-child {
    border-top: 0;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 26px 0 0;
}

.logos img {
    max-height: 44px;
    width: auto;
}

.callout {
    border-left: 5px solid var(--red);
    border-radius: 8px;
    color: #4a5563;
    margin: 28px 0;
    padding: 18px 20px;
}

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.timeline-item {
    border-left: 5px solid var(--red);
    background: rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    padding: 14px 18px;
}

.timeline-item strong {
    display: block;
}

.role-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.role-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 242, 0.9));
    border: 1px solid rgba(36, 49, 63, 0.12);
    border-left: 6px solid var(--red);
    border-radius: 12px;
    padding: 18px 20px 17px;
    box-shadow: 0 8px 20px rgba(55, 95, 135, 0.08);
}

.role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgba(255, 108, 12, 0.12);
    color: var(--red);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.role-meta {
    color: var(--cyan-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.role-item strong {
    display: block;
    font-size: 1.03rem;
    margin-bottom: 8px;
}

.role-item p {
    margin-bottom: 0;
}

.role-figure {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 14px;
    border: 1px solid rgba(36, 49, 63, 0.14);
    border-radius: 10px;
}

@media (max-width: 860px) {
    .role-list {
        grid-template-columns: 1fr;
    }
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.research-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line);
    margin: 30px 0 12px;
}

.research-summary > div {
    background: rgba(255, 255, 255, 0.78);
    padding: 18px;
}

.summary-label {
    display: block;
    color: var(--cyan-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.research-list {
    display: grid;
    gap: 22px;
}

.research-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.research-number {
    color: var(--red);
    font-size: 1.15rem;
    font-weight: 700;
}

.publication-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.publication {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.featured-publication {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(216, 160, 74, 0.35);
    border-left: 6px solid var(--red);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(55, 95, 135, 0.12);
    padding: 22px 24px 20px;
}

.featured-publication h3 {
    font-size: 1.16rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.featured-publication .authors,
.featured-publication .venue,
.featured-publication .meta {
    font-size: 0.98rem;
}

.publication h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.authors,
.venue {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.venue {
    color: var(--cyan-dark);
}

.institution-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    height: 2.1rem;
    padding: 0 0.6rem;
    margin-right: 10px;
    border: 1px solid rgba(255, 108, 12, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 108, 12, 0.12), rgba(255, 108, 12, 0.06));
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    vertical-align: middle;
    text-transform: uppercase;
}

.caltech-badge {
    font-family: Georgia, "Times New Roman", serif;
}

.award-brand {
    flex: 0 0 132px;
}

.caltech-logo-mark {
    display: block;
    width: 132px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(92, 112, 95, 0.22);
    background: rgba(255, 255, 255, 0.88);
    padding: 4px 6px;
}

.award-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.award-details {
    min-width: 0;
}

.compliment-note {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(36, 49, 63, 0.14);
    border-left: 5px solid var(--red);
    border-radius: 10px;
    padding: 14px 16px;
}

.compliment-note summary {
    cursor: pointer;
    color: var(--cyan-dark);
    font-weight: 700;
    list-style: none;
}

.compliment-note summary::-webkit-details-marker {
    display: none;
}

.compliment-note p {
    margin: 12px 0 0;
}

.compliment-figure-link {
    display: block;
    margin-top: 12px;
}

.compliment-figure {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(36, 49, 63, 0.16);
    border-radius: 8px;
}

.compliment-text {
    margin: 12px 0 0;
    white-space: pre-wrap;
}

.publication-link {
    margin-top: 18px;
}

.research-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 22px;
    align-items: start;
    margin: 24px 0;
}

.split-feature.reverse > :first-child {
    order: 2;
}

.split-feature.reverse > :last-child {
    order: 1;
}

.split-feature .visual-panel {
    margin: 0;
}

.split-feature .figure-grid {
    margin-top: 0;
}

.slideshow {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding-bottom: 132px;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.slideshow-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #fff;
}

.slideshow-slide .caption {
    min-height: 70px;
    padding-bottom: 12px;
}

.slideshow-caption {
    display: none;
}

.slideshow-caption-panel {
    padding: 12px 16px 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    min-height: 56px;
}

.slideshow-controls {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.94));
    z-index: 2;
}

.slideshow-nav,
.slideshow-dot {
    border: 0;
    background: rgba(19, 53, 68, 0.9);
    color: #fff;
}

.slideshow-nav {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.slideshow-nav:hover,
.slideshow-nav:focus-visible {
    background: var(--cyan-dark);
    outline: none;
}

.slideshow-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-height: 18px;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.34;
    cursor: pointer;
}

.slideshow-dot[aria-pressed="true"] {
    opacity: 1;
    transform: scale(1.2);
}

.slideshow-dot:hover,
.slideshow-dot:focus-visible {
    opacity: 1;
    outline: none;
}

.role-slideshow {
    margin-top: 14px;
    min-height: 0;
    padding-bottom: 94px;
    border: 1px solid rgba(36, 49, 63, 0.12);
}

.role-slideshow .slideshow-slide img {
    aspect-ratio: 16 / 7;
}

.role-slideshow .slideshow-caption-panel {
    min-height: 42px;
    padding: 10px 12px 0;
    font-size: 0.82rem;
}

.role-slideshow .slideshow-controls {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding: 8px 10px 10px;
}

.role-slideshow .slideshow-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
}

.research-figures .visual-panel img {
    aspect-ratio: 16 / 10;
    background: #fff;
    object-fit: contain;
}

.mentor-map {
    position: relative;
    margin: 24px 0 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
}

.mentor-map-svg {
    display: block;
    width: 100%;
    aspect-ratio: 940 / 477;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(194, 233, 251, 0.24));
}

.mentor-link {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.36;
}

.mentor-pin {
    cursor: pointer;
}

.mentor-pin circle,
.mentor-hub circle {
    transition: transform 0.2s ease, filter 0.2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.mentor-pin:hover circle,
.mentor-pin:focus-visible circle,
.mentor-pin.is-active circle,
.mentor-hub:hover circle {
    transform: scale(1.14);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.mentor-pin-label,
.mentor-hub-label {
    fill: #102530;
    font-size: 30px;
    font-weight: 700;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 6px;
    stroke-linejoin: round;
}

.mentor-hub-label {
    font-size: 28px;
    font-weight: 700;
}

.mentor-map-card {
    position: absolute;
    right: 16px;
    bottom: 16px;
    max-width: min(320px, calc(100% - 32px));
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(55, 95, 135, 0.12);
    backdrop-filter: blur(10px);
}

.mentor-map-card p:last-child {
    margin-bottom: 0;
}

.mentor-card-list {
    margin: 10px 0 12px;
    padding-left: 18px;
}

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

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 34px;
    color: rgba(36, 49, 63, 0.72);
    font-size: 0.9rem;
    transition: transform 0.45s ease;
}

@media (max-width: 860px) {
    .page-shell,
    .site-footer {
        width: min(100% - 34px, 1120px);
    }

    .menu-state:checked ~ .page-shell,
    .menu-state:checked ~ .site-footer {
        transform: translateX(0);
    }

    .hero,
    .section-grid,
    .figure-grid,
    .research-summary,
    .research-figures,
    .split-feature {
        grid-template-columns: 1fr;
    }

    .mentor-map-card {
        position: static;
        max-width: none;
        margin: 0;
        border-radius: 0 0 12px 12px;
    }

    .mentor-summary-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .slideshow {
        padding-bottom: 84px;
    }

    .slideshow-controls {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding: 8px 10px 10px;
    }

    .slideshow-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 560px) {
    .menu-toggle {
        right: -44px;
        width: 44px;
    }

    .content-panel {
        border-radius: 12px;
        padding: 24px 18px;
    }

    h2 {
        text-align: left;
        font-size: 1.28rem;
        margin: 28px 0 14px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    table {
        border-radius: 10px;
    }

    thead {
        display: none;
    }

    tbody tr {
        border-bottom: 1px solid rgba(36, 49, 63, 0.14);
    }

    tbody tr:last-child {
        border-bottom: 0;
    }

    td {
        border-right: 0;
        border-bottom: 1px solid rgba(36, 49, 63, 0.12);
        padding: 10px 12px;
    }

    td:last-child {
        border-bottom: 0;
    }
}
