/* Loaded by the two bilingual profile pages. */
.site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 3vw, 3rem);
}

.site-nav { justify-self: end; }
.site-nav a { font-size: .9375rem; }

.language-switch {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid rgba(159, 185, 233, .35);
    border-radius: 999px;
    background: #0d1929;
}

.language-switch a {
    display: grid;
    min-width: 2.7rem;
    min-height: 2.2rem;
    padding: 0 .55rem;
    place-items: center;
    border-radius: inherit;
    color: #c2cee1;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.language-switch a[aria-current] { background: #24404b; color: var(--cyan); }
.language-switch a:hover { color: white; }
.language-switch a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.profile-name {
    color: transparent;
    background: linear-gradient(125deg, #fff 12%, #aeeeff 59%, #9b8cff 94%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: clamp(3rem, 5.9vw, 6.2rem);
    font-weight: 750;
    line-height: 1.09;
    letter-spacing: -.055em;
}

html[lang="zh-CN"] .profile-name { font-size: clamp(3.75rem, 7.7vw, 7.375rem); }
.other-name { margin: .45rem 0 0 .15rem; color: #a1b2cc; font-size: 1.2rem; letter-spacing: .13em; }
.hero-description { max-width: 54ch; font-size: 1rem; line-height: 1.75; }
.topic-row span, .card-tags span { font-size: .8125rem; letter-spacing: .025em; text-transform: none; }
.button, .contact-panel .text-link { font-size: 1rem; }
.coordinate-card { font-size: .75rem; }
.coordinate-card strong, .globe-hint, .home-footer { font-size: .8125rem; }
.home-footer, .about-footer { padding-inline-end: max(var(--page-pad), 6.5rem); }

.about-hero h1 { text-wrap: balance; line-height: 1.13; }
.signal-strip span, .project-kicker { font-size: .8125rem; letter-spacing: .055em; }
.signal-strip strong { font-size: 1rem; line-height: 1.45; }
.profile-heading { margin: 0 0 2rem; font-size: clamp(2rem, 3.8vw, 3.45rem); letter-spacing: -.045em; line-height: 1.16; }
.project-card { min-height: auto; }
.project-kicker { line-height: 1.6; text-transform: none; }
.project-card > p:not(.project-kicker), .toolkit-grid p, .offscreen-description {
    font-size: 1rem;
    line-height: 1.75;
}

.experience-list, .honors-list { border-top: 1px solid var(--line); }
.experience-row, .honors-list li {
    display: grid;
    align-items: baseline;
    gap: clamp(1rem, 3vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.experience-row { grid-template-columns: minmax(12rem, .48fr) 1.52fr; padding: 2rem 0; }
.experience-date, .honors-list time { margin: 0; color: var(--muted); font-size: .925rem; }
.experience-row h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.experience-role { margin: .45rem 0 .8rem; color: var(--blue); }
.experience-detail, .profile-summary { max-width: 72ch; margin: 0; color: #b7c4db; font-size: 1rem; line-height: 1.75; }
.profile-summary { margin-bottom: 1.75rem; }
.honors-list { margin: 0; padding: 0; list-style: none; }
.honors-list li { grid-template-columns: 5rem 1fr auto; padding: 1rem 0; line-height: 1.6; }
.honors-list strong { color: var(--cyan); }

@media (max-width: 820px) {
    .site-header { align-items: center; }
    .site-nav { max-width: 100%; }
    .profile-name { font-size: clamp(2.875rem, 9.5vw, 5.75rem); }
    html[lang="zh-CN"] .profile-name { font-size: clamp(3.625rem, 14vw, 5.875rem); }
}

@media (max-width: 620px) {
    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand language" "nav nav";
        gap: .55rem 1rem;
        padding-bottom: .5rem;
    }
    .site-header .brand { grid-area: brand; justify-self: start; }
    .site-header .brand-name { display: inline; }
    .language-switch { grid-area: language; }
    .site-nav {
        grid-area: nav;
        justify-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .125rem .65rem;
        overflow: visible;
    }
    .site-nav a { font-size: .875rem; }
    .experience-row { grid-template-columns: 1fr; gap: .65rem; }
    .honors-list li { grid-template-columns: 3.5rem 1fr; gap: .2rem .85rem; }
    .honors-list time { grid-column: 2; }
    .home-footer, .about-footer { padding-inline-end: var(--page-pad); padding-bottom: 5.5rem; }
}

@media (max-width: 380px) {
    .site-header { padding-inline: .75rem; }
    .site-nav { column-gap: .35rem; }
    html[lang="en"] .about-hero h1 { font-size: 2.125rem; }
}
