/* A reading-first profile within the portfolio's existing visual system. */
.profile-page { background: #eeebf5; }
.profile-layout {
    --profile-surface: #fbf9fe;
    --profile-rule: #dcd3e8;
    --profile-radius: .85rem;
    width: min(1100px, calc(100% - 2 * var(--gutter))); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) 15.25rem; gap: 1.25rem;
    padding-block: 1.65rem 5rem; align-items: start;
}
.profile-primary { min-width: 0; display: grid; gap: 1rem; }
.profile-panel, .profile-rail {
    background: var(--profile-surface); border: 1px solid var(--profile-rule);
    border-radius: var(--profile-radius);
}
.profile-intro { overflow: hidden; }
.profile-cover { display: block; width: 100%; height: clamp(120px, 15vw, 180px); object-fit: cover; object-position: 70% center; }
.profile-pad { padding: clamp(1.2rem, 3vw, 1.75rem); }
.profile-intro .profile-pad { padding-top: 0; }
.profile-avatar {
    width: clamp(6.5rem, 12vw, 9.2rem); aspect-ratio: 1; height: auto; position: relative;
    object-fit: cover; object-position: 50% 38%; border-radius: 50%;
    border: .34rem solid var(--profile-surface); margin-top: clamp(-5.2rem, -6vw, -3.55rem);
}
.profile-identity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12.5rem); gap: 1.25rem; align-items: start; margin-top: .75rem; }
.profile-identity h1 { font: 400 clamp(3.1rem, 5.2vw, 4.8rem)/.96 var(--serif); letter-spacing: -.035em; }
.profile-headline { margin-top: .45rem; font-size: clamp(1.01rem, 1.5vw, 1.13rem); font-weight: 630; line-height: 1.35; max-width: 34ch; }
.profile-location, .profile-meta { color: var(--secondary); font-size: .92rem; }
.profile-location { margin-top: .45rem; }
.profile-affiliations { list-style: none; padding: .25rem 0 0; display: grid; gap: .7rem; }
.profile-affiliations li, .profile-affiliations a { display: flex; align-items: center; gap: .55rem; font-weight: 680; font-size: .88rem; line-height: 1.25; }
.profile-logo {
    display: grid; place-items: center; flex: none; width: 3rem; aspect-ratio: 1; background: #fff;
    border: 1px solid var(--profile-rule); border-radius: .5rem; overflow: hidden;
}
img.profile-logo { display: block; height: auto; object-fit: contain; padding: .22rem; }
.profile-affiliations .profile-logo { width: 2rem; border-radius: .33rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.profile-links a {
    display: inline-flex; align-items: center; min-height: 42px; padding: .42rem .95rem;
    border-radius: 999px; font-size: .92rem; font-weight: 680; border: 1px solid var(--accent);
}
.profile-links a:first-child { color: var(--light); background: var(--accent); }
.profile-links a:hover { color: var(--ink); background: var(--lemon); }
.profile-panel h2 {
    font: 400 clamp(2.1rem, 3.4vw, 2.75rem)/1 var(--serif); letter-spacing: -.035em;
    margin-bottom: .7rem;
}
.profile-panel h3 { font: 700 1.06rem/1.28 var(--sans); letter-spacing: -.025em; }
.profile-about { padding-bottom: 1.2rem; }
.profile-about p { max-width: 66ch; }
.profile-rows, .profile-awards, .profile-skills { list-style: none; padding: 0; }
.profile-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; padding-block: 1.15rem; }
.profile-row + .profile-row, .profile-awards li + li, .profile-skills li + li { border-top: 1px solid var(--profile-rule); }
.profile-row:last-child { padding-bottom: 0; }
.profile-org { font-size: .96rem; margin-top: .15rem; }
.profile-row :is(.profile-org, h3) a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.profile-description { margin-top: .58rem; }
.profile-coursework { padding-inline-start: 1.25rem; }
.profile-coursework li + li { margin-top: .22rem; }
.profile-role-skills { font-size: .88rem; margin-top: .55rem; color: var(--secondary); }
.profile-project {
    display: inline-flex; align-items: center; gap: .55rem; padding: .28rem .68rem .28rem .28rem; max-width: 100%;
    margin-top: .65rem; border: 1px solid var(--profile-rule); border-radius: .4rem; font-size: .89rem; font-weight: 700;
}
.profile-project:hover { border-color: var(--accent); background: #f1ebfb; }
.profile-project img { width: 2.65rem; height: 2.05rem; object-fit: cover; border-radius: .22rem; background: #e9def8; }
.profile-project img[src$=".svg"] { object-fit: contain; }
.profile-skills li { padding-block: .65rem; }
.profile-skills li span { display: block; color: var(--secondary); font-size: .92rem; }
.profile-awards li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding-block: .9rem; }
.profile-awards li:last-child { padding-bottom: 0; }
.profile-awards h3 { grid-column: 1; }
.profile-awards time { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.profile-awards p, .profile-awards a { grid-column: 1 / -1; }
.award-result { color: #463074; font-weight: 700; font-size: .9rem; }
.profile-disclosure { margin-top: .6rem; }
.profile-disclosure summary {
    cursor: pointer; width: fit-content; display: flex; align-items: center; gap: .6rem;
    list-style: none; min-height: 36px; font-size: .91rem; font-weight: 700; color: var(--accent);
}
.profile-disclosure summary::-webkit-details-marker { display: none; }
.profile-disclosure summary::after {
    content: ""; width: .36rem; height: .36rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
    transform: translateY(-.1em) rotate(45deg); transition: transform .24s var(--ease);
}
.profile-disclosure[open] summary::after { transform: translateY(.1em) rotate(225deg); }
.profile-disclosure summary:hover { text-decoration: underline; }
.profile-disclosure:not([open]) .label-less, .profile-disclosure[open] .label-more { display: none; }
.profile-disclosure > :not(summary) { padding-block: .4rem .2rem; }
@supports (interpolate-size: allow-keywords) {
    .profile-disclosure { interpolate-size: allow-keywords; }
    .profile-disclosure::details-content {
        block-size: 0; overflow: clip; opacity: 0;
        transition: block-size .34s var(--ease), opacity .28s ease, content-visibility .34s allow-discrete;
    }
    .profile-disclosure[open]::details-content { block-size: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-disclosure::details-content { transition: none; }
}
.profile-rail { position: sticky; top: 6rem; overflow: hidden; }
.profile-rail h2 { font: 650 .96rem/1.35 var(--sans); padding: 1rem 1rem .6rem; letter-spacing: -.015em; }
.profile-rail ul { list-style: none; padding: 0 .58rem .62rem; }
.profile-rail a { display: block; padding: .43rem .44rem; color: var(--secondary); border-radius: .32rem; font-size: .92rem; }
.profile-rail a:hover { background: #ece4f7; color: var(--ink); }
.profile-rail > a { border-top: 1px solid var(--profile-rule); padding: .85rem 1rem; font-weight: 700; }
@media (max-width: 850px) {
    .profile-layout { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
    .profile-rail { display: none; }
}
@media (max-width: 500px) {
    .profile-layout { width: calc(100% - 1.5rem); padding-top: .75rem; gap: .7rem; }
    .profile-primary { gap: .7rem; }
    .profile-identity { grid-template-columns: 1fr; gap: .7rem; }
    .profile-affiliations { display: flex; flex-wrap: wrap; gap: .55rem .85rem; }
    .profile-affiliations a { font-size: .8rem; }
    .profile-row { gap: .68rem; }
    .profile-row .profile-logo { width: 2.55rem; }
    .profile-awards li { grid-template-columns: minmax(0, 1fr); gap: .18rem; }
    .profile-awards time { grid-column: 1; grid-row: auto; text-align: left; }
}

