/* Arial academic and engineering portfolio; no external fonts or libraries. */
:root {
    color-scheme: light;
    --text: #2c3948;
    --muted: #52606e;
    --heading: #162b42;
    --link: #245a8d;
    --rule: #dce4ed;
    --tint: #f4f8fc;
    --nav-height: 112px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font: 16px/1.7 Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.page { max-width: 1080px; padding: 52px 32px 28px; margin: 0 auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #163b60; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 3px; }
::selection { background: #dcebf8; color: var(--heading); }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: inherit; color: var(--heading); }
h1 { margin: 0 0 14px; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
h2 { margin: 0 0 24px; font-size: 25px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
h3 { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }
a, p, h1, h2, h3 { overflow-wrap: break-word; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: #fff; border: 1px solid var(--link); }
.skip-link:focus { top: 12px; }
.hero { scroll-margin-top: 24px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-heading { min-width: 0; }
.professional-role { font-size: 21px; font-weight: 600; color: var(--link); line-height: 1.45; margin-bottom: 10px; }
.academic-role { font-size: 16px; color: var(--heading); line-height: 1.55; margin-bottom: 3px; }
.affiliation { font-size: 15px; color: var(--muted); margin: 0; }
.location { white-space: nowrap; }
.profile-meta { min-width: 0; }
.advising { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.profile-links a { display: inline-flex; align-items: center; min-height: 36px; }
.availability { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; border: 1px solid #cadced; border-left: 4px solid var(--link); border-radius: 8px; background: #edf5fc; padding: 21px 24px; margin-top: 30px; scroll-margin-top: calc(var(--nav-height) + 20px); }
.availability-copy { min-width: 0; }
.availability-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--heading); line-height: 1.45; margin-bottom: 5px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #20725c; flex: 0 0 auto; }
.opportunity-areas { font-size: 13px; color: #40566c; line-height: 1.7; margin: 0; }
.availability-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.primary-button { background: var(--link); color: #fff; }
.primary-button:hover { color: #fff; background: #163b60; }
.secondary-button { color: var(--link); border-color: #adc5db; background: #fff; }
.secondary-button:hover { background: #f7fbff; }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 24px; padding: 0; list-style: none; }
.highlights li { display: flex; flex-direction: column; padding: 0 24px; border-left: 1px solid var(--rule); }
.highlights li:first-child { padding-left: 0; border-left: none; }
.highlights li:last-child { padding-right: 0; }
.highlights strong { font-size: 29px; line-height: 1.25; color: var(--heading); letter-spacing: -.025em; }
.highlights span { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 5px; }
.bio { max-width: 75ch; }
.bio p { margin-bottom: 13px; }
.section-nav { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; background: #fff; margin-top: 30px; padding: 8px 0; border-block: 1px solid var(--rule); }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border-radius: 5px; font-size: 14px; text-decoration: none; }
.section-nav a:hover, .section-nav a[aria-current] { background: #edf4fb; color: #194d7e; }
.section-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--link); }
main { min-width: 0; scroll-margin-top: calc(var(--nav-height) + 20px); }
section { padding: 36px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-height) + 20px); }
.entry-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 28px; margin-bottom: 10px; }
.dates { color: var(--muted); background: #f4f7fa; border-radius: 4px; padding: 3px 8px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0; }
.organization { color: var(--muted); margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.experience-entry { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #e9eef3; }
.experience-entry:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.experience-entry > p:not([class]) { max-width: 75ch; }
.entry-note, .honors { color: var(--muted); font-size: 13px; margin-top: 8px; }
.project { padding: 24px; border: 1px solid var(--rule); border-radius: 9px; background: #fff; margin-bottom: 18px; scroll-margin-top: calc(var(--nav-height) + 20px); }
.project:last-child { margin-bottom: 0; }
.featured-project { background: #f8fbff; border-color: #c2d6e9; border-top: 3px solid var(--link); }
.project-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 20px; }
.project-status { flex-shrink: 0; color: #23527e; background: #e5eff9; border-radius: 4px; font-size: 13px; line-height: 1.5; padding: 4px 8px; margin: 0; }
.context { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.project > p:not([class]) { max-width: 75ch; }
.project-tools { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.project-tools span { color: var(--heading); font-weight: 600; margin-right: 7px; }
.resource-links { font-size: 14px; margin-top: 8px; }
.resource-links a { display: inline-block; padding: 4px 0; }
.project-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.project-figures figure { margin: 0; min-width: 0; }
.image-link { display: block; border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; cursor: zoom-in; }
.image-link:hover { border-color: var(--link); }
.project-figures img { display: block; width: 100%; height: 160px; padding: 7px; object-fit: contain; background: #fff; }
figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.research-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.research-list li { border: 1px solid var(--rule); border-radius: 8px; padding: 20px; background: var(--tint); }
.research-list h3 { color: var(--link); font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.research-list p { font-size: 14px; line-height: 1.8; margin: 0; }
.publication { border-left: 3px solid var(--link); background: #f7f9fc; padding: 22px 24px; border-radius: 0 8px 8px 0; }
.publication h3 { margin-bottom: 10px; font-weight: 600; line-height: 1.65; }
.publication p { margin-bottom: 4px; font-size: 14px; }
.venue { color: var(--muted); }
.education-entry { margin-bottom: 24px; }
.education-entry:last-child { margin-bottom: 0; }
.education-entry .entry-heading { margin-bottom: 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; color: var(--muted); font-size: 13px; margin-top: 26px; }
footer p { margin: 0; }
footer a { padding-block: 5px; }
#lightbox { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border: 0; padding: 74px 5vw 32px; background: rgba(255, 255, 255, .98); color: var(--text); }
#lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
#lightbox::backdrop { background: rgba(255, 255, 255, .95); }
#lightbox img { display: block; min-height: 0; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; }
#lb-close { position: absolute; top: 16px; right: 5vw; padding: 8px 16px; min-height: 44px; background: #fff; border: 1px solid #798694; border-radius: 3px; color: var(--text); font: inherit; cursor: pointer; }
#lb-close:hover { background: #f3f6f9; }
#lb-caption { font-size: 14px; margin: 0; flex-shrink: 0; text-align: center; }
.error-page { max-width: 680px; margin: 10vh auto; padding: 28px; }
.error-page h1 { font-size: 36px; }
@media (max-width: 800px) {
    .page { padding: 36px 24px 24px; }
    h1 { font-size: 42px; }
    .professional-role { font-size: 19px; }
    .availability { flex-direction: column; align-items: stretch; gap: 15px; }
    .availability-actions { align-self: flex-start; }
    .research-list { grid-template-columns: 1fr; }
    .entry-heading { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .dates { justify-self: start; }
    .project-heading { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .page { padding: 28px 20px 24px; }
    .profile { gap: 15px; }
    h1 { font-size: 34px; margin-bottom: 10px; }
    .professional-role { font-size: 18px; }
    .academic-role { font-size: 14px; }
    .affiliation { font-size: 14px; }
    .location { display: none; }
    .advising, .profile-links { font-size: 13px; }
    .profile-links { gap: 4px 20px; }
    .availability { margin-top: 23px; padding: 18px 16px; }
    .availability-title { font-size: 17px; align-items: baseline; }
    .status-dot { align-self: flex-start; margin-top: 8px; }
    .opportunity-areas { font-size: 13px; }
    .availability-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch; }
    .button { padding: 9px 12px; font-size: 13px; }
    .highlights { margin-block: 24px; }
    .highlights li { padding-inline: 12px; }
    .highlights strong { font-size: 27px; }
    .highlights span { font-size: 13px; }
    .section-nav { gap: 2px 4px; margin-top: 24px; }
    .section-nav a { padding: 8px 9px; font-size: 13px; }
    section { padding-block: 30px; }
    h2 { font-size: 23px; margin-bottom: 20px; }
    h3 { font-size: 16px; }
    .project { padding: 19px 16px; }
    .project-figures { grid-template-columns: 1fr; gap: 18px; }
    .project-figures img { height: 180px; }
    .publication { padding: 18px 16px; }
    footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 350px) {
    h1 { font-size: 30px; }
    .professional-role { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media print {
    body { font-size: 11pt; }
    .page { max-width: none; padding: 0; }
    .section-nav, .skip-link, dialog, .availability-actions, footer a[href="#about"] { display: none !important; }
    .availability, .project, .publication, .research-list li { background: #fff; }
    section { padding-block: 18px; }
    h2, h3 { break-after: avoid; }
    article, .project-figures, .availability { break-inside: avoid; }
    a { color: inherit; }
}
