/* Shared styles for the overview and all detail pages. */
:root {
  --ink: #0b0c0c;
  --muted: #505a5f;
  --blue: #005ea5;
  --blue-hover: #003078;
  --line: #b1b4b6;
  --soft-line: #d8dcdf;
  --surface: #f3f4f5;
  --focus: #ffdd00;
  --page-width: 72rem;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 3px; }
a:focus-visible { color: var(--ink); background: var(--focus); outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 4px 0 var(--ink); text-decoration: none; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
.container { width: min(var(--page-width), calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -10rem; left: 1rem; padding: .65rem 1rem; font-weight: 700; }
.skip-link:focus { top: .75rem; background: var(--focus); color: var(--ink); }

.site-header { background: var(--blue); color: #fff; border-bottom: .45rem solid var(--blue); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; min-height: 5.1rem; padding-block: .7rem; }
.site-header a { color: #fff; }
.site-header a:focus-visible { color: var(--ink); }
.site-name { font-size: 1.4rem; font-weight: 750; letter-spacing: -.025em; text-decoration: none; padding-block: .4rem; }
.navigation { display: flex; flex-wrap: wrap; gap: .25rem 1.8rem; padding: 0; list-style: none; }
.navigation a { display: inline-block; padding: .5rem 0; font-size: 1rem; font-weight: 650; text-decoration: none; }
.navigation a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem 18rem; grid-template-areas: "identity portrait interests"; gap: 2.5rem; align-items: center; padding-block: 4.3rem; }
.intro-main { grid-area: identity; min-width: 0; }
.intro-profile { display: contents; }
.eyebrow { color: var(--blue); font-size: .875rem; font-weight: 750; letter-spacing: .06em; margin-bottom: .9rem; }
h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); letter-spacing: -.045em; font-weight: 750; }
.intro-lead { max-width: 26rem; font-size: 1.5rem; font-weight: 500; line-height: 1.55; letter-spacing: -.02em; margin-top: 1.4rem; }
.portrait-slot { grid-area: portrait; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); }
.portrait-slot span { font-size: .875rem; color: var(--muted); }
.portrait-slot img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-side { grid-area: interests; min-width: 0; padding-left: 1.4rem; border-left: 3px solid var(--blue); }
.small-heading { font-size: 1rem; margin-bottom: .8rem; }
.interests { padding: 0; list-style: none; font-size: .9375rem; line-height: 1.6; }
.interests li + li { margin-top: .4rem; }
.intro-documents { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin-top: 1.35rem; }
.intro-documents a { font-size: 1rem; font-weight: 650; }
.file-type, .link-note { font-size: .875rem; font-weight: 400; margin-left: .3rem; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem 1.5rem; padding-top: 1.4rem; margin-bottom: 2.4rem; border-top: 3px solid var(--blue); }
h2 { font-size: 1.75rem; letter-spacing: -.025em; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); grid-template-rows: min-content 1fr; gap: 1.15rem 3.3rem; padding-bottom: 3.3rem; }
.project + .project { border-top: 1px solid var(--soft-line); padding-top: 3.3rem; }
.project-title { grid-column: 2; grid-row: 1; }
.project-figure { grid-column: 1; grid-row: 1 / 3; }
.project-summary { grid-column: 2; grid-row: 2; }
.project-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface); }
.project-figure-dark img { background: #111; }
figcaption { color: var(--muted); font-size: .875rem; line-height: 1.6; margin-top: .7rem; }
.project-meta { display: flex; align-items: baseline; gap: .8rem; font-size: .9375rem; color: var(--muted); margin-bottom: .6rem; }
.project-number { color: var(--blue); font-weight: 750; font-variant-numeric: tabular-nums; }
.project h3 { font-size: clamp(1.75rem, 2.8vw, 2.15rem); font-weight: 750; letter-spacing: -.035em; }
.project h3 a { text-decoration-thickness: 1.5px; }
.project h3 a:hover { text-decoration-thickness: 3px; }
.project-category { color: var(--muted); font-size: .875rem; margin-top: .65rem; line-height: 1.6; }
.project-description { font-size: 1.125rem; line-height: 1.75; max-width: 35rem; }
.project-links { margin-top: 1.25rem; }
.project-links a { display: inline-block; padding-block: .3rem; font-weight: 650; }

.patents-section { margin-top: 1.2rem; padding-bottom: 2.4rem; }
.patents-section .section-heading { margin-bottom: .5rem; }
.patent-entry { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding-block: 1.8rem; }
.patent-entry + .patent-entry { border-top: 1px solid var(--soft-line); }
.patent-number { color: var(--muted); font-size: .9375rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.patent-summary { max-width: 46rem; }
.patent-summary h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.cv-section { margin-top: 1.2rem; }
.cv-section .section-heading { margin-bottom: .5rem; }
.cv-group { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding-block: 2.2rem; }
.cv-group + .cv-group { border-top: 1px solid var(--line); }
.cv-group-heading { color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.cv-group-body { max-width: 46rem; }
.education-title { font-size: 1.2rem; line-height: 1.5; font-weight: 650; }
.education-lines { margin-top: .5rem; line-height: 1.9; }
.cv-entry + .cv-entry { border-top: 1px solid var(--soft-line); margin-top: 1.8rem; padding-top: 1.8rem; }
.cv-entry h4 { font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: .55rem; }
.entry-meta { color: var(--muted); font-size: .875rem; margin-bottom: .55rem; }
.entry-role { color: #40484c; font-size: .9375rem; line-height: 1.65; }
.entry-description { margin-top: .8rem; }
.entry-resource { margin-top: .8rem; font-size: .9375rem; }
.award-context { margin-top: .7rem; }
.registered-title { color: var(--muted); font-size: .9375rem; margin-bottom: .65rem; }
.contact-section { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; justify-items: start; gap: 1rem 3rem; margin-top: 2rem; border-top: 3px solid var(--blue); padding-block: 1.8rem 3.5rem; }
.email-link { display: inline-block; font-size: 1rem; font-weight: 400; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-block: 2rem; font-size: .9375rem; }
.footer-inner p { font-weight: 650; }

.breadcrumbs { margin-top: 1.5rem; font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); padding-right: .6rem; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }
.detail-header { padding-block: 2.8rem 3rem; max-width: 57rem; }
.detail-header .eyebrow { letter-spacing: .02em; }
.detail-header h1 { font-size: clamp(2.2rem, 4vw, 3.15rem); line-height: 1.2; }
.detail-lead { font-size: 1.35rem; line-height: 1.65; margin-top: 1.2rem; max-width: 47rem; }
.detail-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 4rem; }
.contents { position: sticky; top: 2rem; padding-left: 1rem; border-left: 3px solid var(--blue); }
.contents h2 { font-size: 1rem; margin-bottom: .8rem; letter-spacing: 0; }
.contents ul { list-style: none; padding: 0; font-size: .9375rem; line-height: 1.55; }
.contents li + li { margin-top: .8rem; }
.detail-body { min-width: 0; max-width: 49rem; }
.detail-section + .detail-section { border-top: 1px solid var(--soft-line); padding-top: 2.3rem; margin-top: 2.3rem; }
.detail-section h2 { font-size: 1.65rem; margin-bottom: 1.1rem; line-height: 1.35; }
.detail-section p { font-size: 1.0625rem; line-height: 1.8; max-width: 44rem; }
.detail-section p + p { margin-top: 1rem; }
.detail-figure { margin-block: 1.8rem; }
.detail-figure img { width: 100%; height: auto; background: var(--surface); }
.diagram img { background: #fff; border: 1px solid var(--soft-line); }
.diagram figcaption a { display: inline-block; margin-left: .25rem; }
.detail-figure figcaption { max-width: 44rem; }
.video { margin-block: 1.25rem 1.8rem; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #0b0c0c; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame iframe:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.video figcaption a { display: inline-block; margin-left: .25rem; }
.video-poster-link { display: flex; flex-direction: column; position: absolute; inset: 0; color: #fff; text-decoration: none; }
.video-poster-link img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.video-poster-link span { padding: .75rem 1rem; background: var(--blue); color: #fff; text-align: center; text-decoration: underline; text-underline-offset: .2em; }
.video-poster-link:hover span { background: var(--blue-hover); }
.video-poster-link:focus-visible { outline-offset: 3px; }
.detail-section .video-preview-note { margin-top: .7rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.steps { list-style: decimal; padding-left: 1.6rem; }
.steps > li { padding-left: .45rem; }
.steps > li::marker { font-weight: 700; color: var(--blue); }
.steps > li + li { margin-top: 1.3rem; }
.steps h3 { font-size: 1.125rem; line-height: 1.5; margin-bottom: .35rem; }
.facts { font-size: 1rem; margin-top: 1.4rem; }
.facts > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.2rem; padding-block: .7rem; border-bottom: 1px solid var(--soft-line); }
.facts dt { font-weight: 650; }
.facts dd { color: #40484c; }
.registration { max-width: 49rem; margin-top: 1.8rem; border-top: 1px solid var(--soft-line); }
.resource-link { margin-top: 1.5rem; }
.return-link { margin-top: 2.7rem; padding-top: 1.2rem; border-top: 3px solid var(--blue); }

@media (max-width: 64rem) {
  .intro { grid-template-columns: minmax(0, 1fr) 10.5rem; grid-template-areas: "identity portrait" "interests interests"; gap: 2rem; }
  .intro-side { display: grid; grid-template-columns: 1fr auto; gap: .2rem 2rem; }
  .intro-side .small-heading, .interests { grid-column: 1; }
  .intro-documents { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-self: center; margin: 0; }
  .interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.5rem; }
  .interests li + li { margin: 0; }
  .project { column-gap: 2rem; }
  .cv-group, .patent-entry, .detail-layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; }
  .contact-section { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 2rem; }
}
@media (max-width: 48rem) {
  .container { width: calc(100% - 2.5rem); }
  .navigation { gap: .25rem 1.3rem; }
  .intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "profile"; gap: 2rem; align-items: start; padding-block: 2.7rem 3rem; }
  .intro-profile {
    display: grid;
    grid-area: profile;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portrait"
      "interests";
    gap: 1.5rem;
    align-items: start;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }
  .intro-profile .portrait-slot {
    width: 9rem;
    max-width: 100%;
    justify-self: center;
  }
  .intro-profile .intro-side {
    justify-self: stretch;
    width: 100%;
    text-align: left;
  }
  h1 { font-size: 2.7rem; }
  .intro-lead { font-size: 1.3rem; }
  .intro-side { display: block; justify-self: stretch; width: auto; max-width: none; padding-left: .75rem; text-align: left; }
  .intro-documents { flex-direction: row; justify-content: flex-start; margin-top: 1.1rem; }
  .interests { display: block; }
  .interests li + li { margin-top: .3rem; }
  .project { display: flex; flex-direction: column; gap: 1.35rem; padding-bottom: 2.5rem; }
  .project + .project { padding-top: 2.5rem; }
  .project h3 { font-size: 1.9rem; }
  .project-category { margin-top: .55rem; }
  .project-description { max-width: none; }
  .section-heading { margin-bottom: 1.8rem; }
  .cv-group { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .patent-entry { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .patent-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
  .patent-meta .entry-meta { margin: 0; }
  .patent-number br { display: none; }
  .cv-group-heading br { display: none; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .contents { position: static; }
  .contents ul { columns: 2; column-gap: 2rem; }
  .contents li { break-inside: avoid; }
  .detail-header { padding-block: 2rem; }
  .detail-lead { font-size: 1.2rem; }
  .contact-section { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
}
@media (max-width: 36rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0; }
  .navigation { gap: .25rem 1.7rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .contents ul { columns: auto; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (forced-colors: active) { a:focus-visible { outline: 3px solid Highlight; } }
@media print {
  .site-header, .skip-link, .site-footer, .project-links, .intro-documents, .contents, .breadcrumbs, .return-link, .video-frame { display: none; }
  body { color: #000; font-size: 10pt; }
  .container { width: 100%; }
  .intro { padding-block: 0 1rem; grid-template-columns: 1fr 8rem; grid-template-areas: "identity portrait" "interests interests"; }
  .intro-profile { display: contents; }
  .intro-side { grid-column: 1 / -1; justify-self: stretch; width: auto; max-width: none; text-align: left; }
  .project { gap: 1rem; break-inside: avoid; padding-block: 1rem; }
  .project + .project { padding-top: 1rem; }
  .project-description, .detail-section p { font-size: 10pt; }
  .detail-layout { display: block; }
  .detail-header { padding-block: 0 1rem; }
  .detail-figure { break-inside: avoid; max-width: 35rem; }
  .patent-entry, .cv-entry { break-inside: avoid; }
  .contact-section { padding-bottom: 1rem; }
  a { color: #000; }
}
