@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700&display=swap');
:root{--detail-spacing:16px;color-scheme:dark;--bg:#0f172a;--text:#9caec5;--bright:#e2e8f0;--accent:#71e1d0;--line:#233149;--muted:#8496ae;font-family:'Golos Text',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none;font-size:15px;line-height:1.8;scroll-behavior:smooth;scroll-padding-top:54px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}::selection{background:#71e1d0;color:#102637}a{color:inherit;text-decoration:none}button{font:inherit}a,button,summary{-webkit-tap-highlight-color:transparent}a:hover,button:hover{color:var(--accent)}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:6px;border-radius:2px}strong{font-weight:500;color:var(--bright)}p{margin:0 0 21px}h1,h2,h3{margin:0;color:var(--bright)}h3{font-size:15px;font-weight:550;line-height:1.6}html[lang=ru] .en,html[lang=en] .ru{display:none}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 16% 16%,#1b356343,transparent 58%);z-index:-1}.layout{max-width:1200px;margin:0 auto;padding:0 64px;display:grid;grid-template-columns:41% 51%;gap:8%}.profile{position:sticky;top:0;height:100svh;min-height:710px;padding:52px 0 36px;display:flex;flex-direction:column}.profile-top{display:flex;align-items:center;justify-content:space-between;max-width:320px}.monogram{font-size:18px;letter-spacing:-1px;font-weight:650;color:var(--bright)}.monogram span{color:var(--accent)}.language{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.08em;color:var(--muted)}.language a{display:inline-flex;align-items:center;justify-content:center;border:0;background:none;color:var(--muted);padding:7px;cursor:pointer;font-size:11px;font-weight:600}.language a[aria-current=page]{color:var(--accent)}.identity{margin-top:0}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--accent);font-weight:500;margin-bottom:17px}h1{font-size:clamp(42px,4.3vw,58px);line-height:1.08;letter-spacing:-.055em;font-weight:650}.role{font-size:16px;color:var(--bright);margin:23px 0 14px;line-height:1.6;letter-spacing:-.02em}.intro{font-size:15px;line-height:1.75;margin:0;color:var(--text)}nav{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:38px 0}nav a{display:flex;align-items:center;gap:16px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;padding:5px 0;color:var(--muted)}.nav-line{width:27px;height:1px;background:#52617a;transition:width .2s,background .2s}nav a:hover,nav a.active{color:var(--bright)}nav a.active .nav-line,nav a:hover .nav-line{width:54px;background:var(--accent)}.profile-bottom{margin-top:auto;font-size:12px}.email{color:var(--bright);font-size:13px}.email span{padding-left:9px;color:var(--accent)}.profile-bottom p{color:var(--muted);margin:4px 0 0;font-size:11px}main{padding:102px 0 30px;min-width:0}section{margin-bottom:98px;scroll-margin-top:50px}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:29px}.section-number{font-size:10px;letter-spacing:.05em;color:var(--accent);font-variant-numeric:tabular-nums}h2{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.13em;line-height:1.5}.rule{height:1px;flex:1;background:var(--line);margin-left:6px}.lead{font-size:18px;line-height:1.8;color:#b9c6d9;letter-spacing:-.015em}.topics{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.topics span{font-size:11px;color:var(--accent);background:#2dd4bf13;padding:4px 11px;border-radius:20px}.topics span span{padding:0;background:transparent}.section-note{font-size:12px;line-height:1.7;color:var(--muted);margin:-6px 0 27px}.entry{display:grid;grid-template-columns:108px 1fr;gap:16px;margin:0 -17px 10px;padding:17px;border-radius:5px;transition:background .2s}.entry:hover,.project-card:hover,.project-card:focus-within{background:#23324a55}.date{font-size:10px;line-height:1.7;color:var(--muted);font-weight:500;padding-top:4px;font-variant-numeric:tabular-nums;letter-spacing:.025em}.organisation{font-size:13px;line-height:1.65;margin:7px 0 0;color:var(--text)}.entry p:not(.organisation){font-size:12px;line-height:1.75;margin:10px 0 0}.research-list{display:grid;gap:24px}.research-list h3{font-size:15px;margin-bottom:6px}.research-list p{font-size:13px;line-height:1.8;margin:0}.publications{list-style:none;padding:0;margin:0}details{margin-top:22px}summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer;color:var(--bright);font-size:12px;font-weight:500;padding:13px 0;gap:12px}summary::-webkit-details-marker{display:none}summary>span:last-child{color:var(--accent);font-size:18px;font-weight:400}summary:hover{color:var(--accent)}details[open]>summary{margin-bottom:18px}details[open]>summary>span:last-child{transform:rotate(45deg)}.professional-learning,.personal{border-top:1px solid var(--line)}.contact-email{font-size:clamp(17px,2vw,23px);font-weight:500;letter-spacing:-.03em;color:var(--bright);display:inline-flex;gap:14px;align-items:center;overflow-wrap:anywhere}.contact-email>span{font-size:20px;color:var(--accent)}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.contact-grid>div{display:flex;flex-direction:column;font-size:13px}.label{font-size:9px;letter-spacing:.14em;color:var(--muted);margin-bottom:9px}.personal p{font-size:13px}.print{background:transparent;border:0;color:var(--muted);padding:0;cursor:pointer;font-size:11px}.print span:last-child{color:var(--accent);margin-left:5px}footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:24px;color:var(--muted);font-size:10px}footer p{margin:0}.skip{position:fixed;top:10px;left:10px;z-index:10;padding:10px 20px;background:var(--bright);color:var(--bg);transform:translateY(-150%)}.skip:focus{transform:none}
@media(min-height:900px) and (min-width:901px){.profile{padding-top:70px;padding-bottom:55px}.identity{margin-top:0}nav{gap:8px;margin-top:48px}}
@media(max-width:1050px){.layout{padding:0 40px;grid-template-columns:40% 53%;gap:7%}.entry{grid-template-columns:91px 1fr;gap:12px}.profile-top{max-width:280px}h1{font-size:48px}.role{font-size:14px}}
@media(max-width:900px){:root{scroll-padding-top:20px}.layout{display:block;max-width:740px;padding:0 40px}.profile{position:relative;height:auto;min-height:0;padding:35px 0 0}.profile-top{max-width:none}.identity{margin-top:0}h1{font-size:56px}.role{font-size:17px}.intro br{display:none}.intro{max-width:380px}nav{flex-direction:row;flex-wrap:wrap;gap:8px 24px;margin:32px 0 25px}.nav-line{display:none}.profile-bottom{display:none}main{padding:45px 0 26px}section{margin-bottom:72px;scroll-margin-top:25px}.entry{grid-template-columns:115px 1fr}.section-heading{margin-bottom:25px}}
@media(max-width:480px){.layout{padding:0 24px}h1{font-size:48px}.identity{margin-top:0}.role{font-size:14px}.intro{font-size:14px}nav{gap:5px 18px;margin-top:27px}.lead{font-size:17px}.entry{grid-template-columns:1fr;gap:5px;padding:15px 12px;margin:0 -12px 8px}.date{font-size:10px}.entry h3{font-size:14px}.organisation{font-size:12px}.contact-grid{grid-template-columns:1fr;gap:23px}.contact-email{font-size:19px}.contact-email>span{font-size:17px}footer{font-size:9px}.print{font-size:10px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*{transition:none!important}}
@media print{:root{color-scheme:light;--text:#333;--bright:#111;--accent:#222;--muted:#555;--line:#ddd;font-size:11px}body{background:white}.layout{display:block;padding:0}.profile{position:static;height:auto;min-height:0;padding:0 0 20px}.profile-top,nav,.ambient,.print,.skip{display:none}.identity{margin:0}h1{font-size:34px}.identity br{display:none}.role{margin:10px 0}.intro{display:none}.profile-bottom{display:block;margin-top:10px}main{padding:0}section{margin-bottom:25px}.entry{break-inside:avoid;margin:0;padding:8px 0}.section-heading{margin-bottom:15px}.topics{display:none}footer{margin-top:20px}.lead{font-size:13px}summary{padding:5px 0}html.printing details>summary{display:none}}

/* Language selection follows the section menu at every breakpoint. */
.language{align-self:flex-start;margin:-17px 0 24px;gap:8px}.language a{min-width:32px;min-height:36px}.language a:first-child{padding-left:0}nav{margin-bottom:22px}@media(max-width:900px){.language{margin:0 0 0;gap:8px}nav{margin-bottom:12px}}@media(pointer:coarse){.language a{min-height:44px;min-width:44px}}@media print{.language{display:none}}

.profile-bottom .print{display:block;margin-bottom:18px}.profile-bottom .email{display:inline-block}html[lang=ru] h1{font-size:clamp(36px,3.6vw,49px)}@media(max-width:900px){.profile-bottom{display:block;margin:24px 0 0}.profile-bottom .print{margin-bottom:12px}html[lang=ru] h1{font-size:48px}}@media(max-width:480px){html[lang=ru] h1{font-size:40px}}@media print{.profile-bottom .print{display:none}}

footer{border-top:0}.profile-bottom .print{margin:4px 0 0;font-size:11px;line-height:1.8;font-weight:400;color:var(--muted)}.profile-bottom .print:hover{color:var(--accent)}.profile-bottom .print>span:last-child{color:inherit}@media print{.profile-bottom .print{display:none}}

.profile>.language{margin:0 0 20px}.profile-bottom .print{font-size:13px}@media(max-width:900px){.profile>.language{margin:0 0 20px}}

/* Shared top and bottom edges for the desktop columns. */
@media(min-width:901px){.profile{padding-top:52px;padding-bottom:36px}main{padding-top:62px;padding-bottom:36px}main>section:last-of-type{margin-bottom:20px}footer{padding-top:0}}
@media(min-width:901px) and (min-height:900px){.profile{padding-top:70px;padding-bottom:55px}main{padding-top:80px;padding-bottom:55px}}
@media(max-width:900px){main>section:last-of-type{margin-bottom:24px}footer{padding-top:0}}

/* A soft spotlight follows mouse movement without intercepting input. */
@media screen and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .ambient{z-index:30;background:radial-gradient(600px circle at var(--spotlight-x,0px) var(--spotlight-y,0px),rgba(29,78,216,.15),transparent 80%)}
}

.profile>.language{gap:6px}.language a{min-width:0;padding-left:2px;padding-right:2px}.language-divider{display:block;width:1px;height:11px;background:var(--muted);font-size:0;flex:none}@media(pointer:coarse){.language a{min-width:32px;min-height:44px}}

/* Original photographs, cropped only by the browser to match the supplied reference. */
.photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:34px}
.photo-gallery img{display:block;width:100%;height:auto;aspect-ratio:0.515;object-fit:cover;border-radius:4px}
.photo-gallery img:nth-child(1){object-position:57% center}
.photo-gallery img:nth-child(2){object-position:49% center}
.photo-gallery img:nth-child(3){object-position:53% center}
@media(min-width:901px){main{padding-top:52px}}
@media(min-width:901px) and (min-height:900px){main{padding-top:70px}}
@media(max-width:900px){.photo-gallery{gap:12px;margin-bottom:32px}}
@media(max-width:480px){.photo-gallery{gap:8px;margin-bottom:28px}.photo-gallery img{border-radius:3px}}
@media print{.photo-gallery{max-width:420px;gap:10px;margin-bottom:20px}.photo-gallery img{aspect-ratio:0.65}}

.profile-bottom .language{margin:0 0 14px;gap:6px}.profile-bottom .language a{padding-left:2px;padding-right:2px}.profile-bottom .language a:first-child{padding-left:0}

/* Optimised previews; the download links retain the full, untouched originals. */
.photo{position:relative;margin:0;min-width:0;aspect-ratio:.515;overflow:hidden;border-radius:4px;background:var(--bg)}
.photo-gallery .photo img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0;filter:grayscale(.65) brightness(.68) saturate(.55);opacity:.7;transition:filter .3s ease,opacity .3s ease}
.photo:nth-child(1) img{object-position:57% center}.photo:nth-child(2) img{object-position:49% center}.photo:nth-child(3) img{object-position:50% center}
.photo:hover img,.photo:focus-within img{filter:none;opacity:1}
.photo-download{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(15,23,42,.8);color:#e2e8f0;opacity:0;transition:opacity .2s;backdrop-filter:blur(8px)}
.photo:hover .photo-download,.photo:focus-within .photo-download{opacity:1}.photo-download:hover{color:var(--accent);background:rgba(15,23,42,.95)}
#preloader{display:none}.is-loading #preloader{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;background:var(--bg);color:var(--muted);font-size:12px;letter-spacing:.08em}
.is-loading .layout,.is-loading .ambient{visibility:hidden}.is-loading body{overflow:hidden}
.loader-ring{width:30px;height:30px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:loader-spin .9s linear infinite}
@keyframes loader-spin{to{transform:rotate(360deg)}}
@media(hover:none),(pointer:coarse){.photo-download{opacity:1;width:44px;height:44px;bottom:8px}}
@media(prefers-reduced-motion:reduce){.loader-ring{animation:none;border-color:var(--accent)}}
@media print{#preloader,.photo-download{display:none!important}.is-loading .layout{visibility:visible}.photo-gallery .photo img{filter:none;opacity:1}}

.profile-bottom .language{margin:12px 0 0}

/* Equal visual spacing in the sidebar contact stack. */
.profile-bottom .language{margin:4px 0 0;height:23.4px;min-height:0}.profile-bottom .language a{min-height:23.4px;height:23.4px;padding-top:0;padding-bottom:0}

#about .about-copy a{color:var(--bright);font-weight:500;transition:color .15s}#about .about-copy a:hover,#about .about-copy a:focus-visible,#about .about-copy a:hover strong{color:var(--accent)}

.patent-link{display:inline-flex;align-items:center;gap:6px;color:var(--bright);font-weight:500}.patent-link svg{flex:none;transition:transform .15s}a.patent-link:hover,a.patent-link:focus-visible{color:var(--accent)}a.patent-link:hover svg{transform:translate(2px,-2px)}

.patent-link{gap:8px;font-size:12px;color:#cbd5e1}a.patent-link:hover svg{transform:none}

/* Domain-labelled evidence links, shared by both languages. */
.source-links{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-wrap:wrap;gap:12px 20px}
.source-links li{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;min-width:0}
.source-links .patent-link{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.source-context{color:#94a3b8;font-size:11px;line-height:1.6}
@media(max-width:480px){.source-links{gap:10px}.source-links li{gap:2px 8px}}

/* Allow long translated titles to shrink within the content column. */
.entry { grid-template-columns: 108px minmax(0, 1fr); }
@media(max-width:1050px){.entry{grid-template-columns:91px minmax(0,1fr)}}
@media(max-width:900px){.entry{grid-template-columns:115px minmax(0,1fr)}}
@media(max-width:480px){.entry{grid-template-columns:minmax(0,1fr)}}

.social-links{display:flex;align-items:center;gap:16px;list-style:none;margin:0 0 16px;padding:0}.social-links a{display:flex;align-items:center;justify-content:center;width:28px;height:32px;color:var(--muted);transition:color .2s}.social-links a:hover,.social-links a:focus-visible{color:var(--accent)}.social-links svg{display:block;flex:none}@media print{.social-links{display:none}}

/* Project cards */
.project-list, .project-tags { list-style: none; padding: 0; margin: 0; }
.project-card {
  display: grid;
  grid-template-columns: clamp(108px, 24%, 146px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 0 -17px 12px;
  padding: 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: background .2s;
}
.project-logo { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; overflow: hidden; background: #fff; border: 2px solid #94a3b84d; border-radius: 4px; }
/* Adjust the marks within their shared frame to balance their visual weight. */
.project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(var(--logo-offset, 0%)) scale(var(--logo-scale, 1));
}
.project-logo[data-logo="listbegg"] { --logo-scale: .72; --logo-offset: 2.6%; }
.project-logo[data-logo="monastery"] { --logo-scale: 1.04; }
.project-logo[data-logo="siil"] { --logo-scale: 1.08; }
.project-logo[data-logo="ocbs"] { --logo-scale: 1.04; }
.project-logo[data-logo="tiem"] { --logo-scale: 1.2; --logo-offset: 4%; }
.project-logo[data-logo="mfpa"] { --logo-scale: 1.23; }
.project-card h3, .project-card p { margin: 0; }
.project-card .project-year { margin-bottom: 4px; font-size: .75rem; }
.project-card .project-description { margin-top: 7px; font-size: .875rem; line-height: 1.6; }
.project-card .source-links { margin-top: 8px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
/* Trim the outer line space before applying the visible project spacing. */
@supports (text-box: trim-both cap alphabetic) {
  .project-card > div:last-child { display: grid; gap: var(--detail-spacing); min-width: 0; }
  .project-card :is(.project-year, h3, .project-description, .source-label) {
    text-box: trim-both cap alphabetic;
  }
  .project-card :is(.project-year, .project-description, .source-links, .project-tags) { margin: 0; }
  .project-card .source-links li { align-items: center; }
  .project-card .source-label { min-width: 0; }
  .project-card .source-links svg { width: .8em; height: .8em; }
}
.project-tags li { padding: 4px 10px; border-radius: 999px; background: #2dd4bf19; color: #5eead4; font-size: .75rem; }
@media (max-width: 520px) {
  .project-card { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 -9px 10px; padding: 12px 9px; }
  .project-logo { width: 132px; }
}
@media (prefers-reduced-motion: reduce) { .project-card { transition: none; } }
@media print {
  .project-card { break-inside: avoid; margin: 0; padding: 8px 0; }
  .project-tags li { color: inherit; }
}

/* Space consecutive content elements consistently across the resume. */
.entry > div:last-child {
  display: grid;
  gap: var(--detail-spacing);
  min-width: 0;
}
.entry > div:last-child > :is(h3, p, ul),
.entry > div:last-child > p:not(.organisation) {
  margin: 0;
}
#about .about-copy { margin: 0; }
#about .about-copy + .about-copy {
  margin-block-start: calc(2 * var(--detail-spacing));
}
#about .about-copy + .topics {
  margin-top: var(--detail-spacing);
}
@media (max-width: 520px) {
  .entry { row-gap: var(--detail-spacing); }
}
@supports (text-box: trim-both cap alphabetic) {
  .entry > div:last-child > :is(h3, p),
  .entry .source-label,
  #about .about-copy {
    text-box: trim-both cap alphabetic;
  }
}

/* Portrait crops share the project card frame and a consistent face scale. */
.photo-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
}
.photo-thumbnail img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  left: 50%;
}
.photo-crop-1 img { width: 115%; top: -41%; transform: translateX(-57%); }
.photo-crop-2 img { width: 110%; top: -38%; transform: translateX(-44%); }
.photo-crop-3 img { width: 135%; top: -26%; transform: translateX(-52%); }
.photo-card .source-links { gap: 12px 20px; }
@media (max-width: 520px) {
  .photo-thumbnail { width: 132px; }
}

.biography-text .about-copy + .about-copy,
.biography-action {
  margin-block-start: 32px;
}
.biography-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bright);
  font-weight: 600;
}
.biography-link:hover,
.biography-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.biography-link span[aria-hidden] {
  transition: transform .15s;
}
.biography-link:hover span[aria-hidden] {
  transform: translateY(-2px);
}

.biography-more {
  gap: 4px;
}
.biography-more:hover,
.biography-more:focus-visible {
  color: var(--accent);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .biography-more .biography-arrow {
    transition: transform 150ms ease;
  }
  .biography-more:hover .biography-arrow,
  .biography-more:focus-visible .biography-arrow {
    transform: translateX(8px);
  }
}

/* Compact spacing around the biography details link. */
#about .about-copy + .source-links { margin: 16px 0 0; }
#about .biography-more { display: inline-flex; align-items: center; gap: 8px; font: inherit; white-space: nowrap; }
#about .biography-more .biography-arrow { position: static; display: block; flex: none; width: 16px; height: 16px; margin: 0; }

/* Match the spacing between biography sources and skill pills. */
#about .source-links + .topics { margin-top: 16px; }

@media(max-width:900px){
  main > .profile-bottom{display:block;margin:15px 0 32px;}
}
@media print{main > .profile-bottom{display:none;}}

/* Footer gratitude matches the print control and clears the final divider. */
main > footer { font-size: 13px; padding-top: 33px; border-top: 1px solid var(--line); }

/* Match dates to the first title line in the two-column layout. */
@media (min-width: 481px) {
  .entry { align-items: first baseline; }
  .entry > .date { padding-top: 0; }
}

/* Shared typography for descriptions and dates in resume cards. */
.entry p:not(.organisation), .project-card .project-description {
  font-size: 13px;
  line-height: 1.65;
}
.project-card .project-year {
  font-size: 10px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: .025em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .project-card h3 { font-size: 14px; }
  .entry p:not(.organisation), .project-card .project-description { font-size: 12px; }
  .photo-card .source-links { gap: 10px; }
}

/* Balance visible text spacing around the closing divider at each layout size. */
@media (max-width: 900px) { main > footer { padding-top: 37px; } }
@media (max-width: 480px) { main > footer { padding-top: 35px; } }

/* Match the biography divider spacing to the main page. */
main > #about:last-of-type { margin-bottom: 37px; }
@media (max-width: 900px) {
  main > #about:last-of-type { margin-bottom: 41px; }
}
@media (max-width: 480px) {
  main > #about:last-of-type { margin-bottom: 39px; }
}

/* Center the horizontal menu between the introduction and page content. */
@media (max-width: 900px) { main { padding-top: 28.25px; } }
@media (max-width: 480px) { main { padding-top: 23px; } }

/* Share the sidebar's free space equally above and below navigation. */
@media screen and (min-width: 901px) {
  .profile > nav { margin-block: auto; padding-block: 16px; }
  .profile > .profile-bottom { margin-top: 0; }
  .profile > .identity, .profile > nav, .profile > .profile-bottom { flex-shrink: 0; }
}

/* Standalone biography action replaces the sources on the overview. */
.biography-more-row { margin-top: 32px; }
#about .biography-more-row + .topics { margin-top: 32px; }
@supports (text-box: trim-both cap alphabetic) {
  .biography-more-row { display: flex; }
  .biography-more-row .biography-link-label { text-box: trim-both cap alphabetic; }
}

/* Preserve the canvas and Safari overscroll; enable the overlay only for a mouse. */
@media screen { html, body { background: var(--bg); } .ambient { display: none; } }
@media screen and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .ambient { display: block; }
}

.biography-text .biography-subheading {
  margin: 1.75em 0 .65em;
  color: var(--bright);
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: normal;
}
.biography-text a {
  color: var(--bright);
  text-decoration: none;
}
.biography-text a:hover,
.biography-text a:focus-visible {
  color: var(--accent);
}

#photo-usage a:hover, #photo-usage a:focus-visible { color: #fff; }
#photo-usage { scroll-margin-top: 2rem; }
