@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin.v1.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin.v1.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #020304;
  --text: #e5e7eb;
  --muted: #a0a5ae;
  --faint: #858b95;
  --accent: #96b8ed;
  --blue: #6898e2;
  --line: #11151c;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.85 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 400; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a.is-clicked { color: var(--link-rest, var(--text)) !important; }
button, input, textarea { font: inherit; }
a, button { touch-action: manipulation; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #fff; background: #344a70; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 20px; background: var(--bg); border: 1px solid var(--blue); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-shell { max-width: 1070px; margin: auto; padding: 0 56px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.site-header { padding: 56px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; align-items: center; min-height: 44px; --link-rest: var(--text); }
h1 { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 22px; letter-spacing: -.7px; line-height: 1.6; text-transform: none; }
.workspace { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 48px; padding: 36px 0 52px; flex: 1; align-items: start; }
.sidebar { position: sticky; top: 40px; }
.section-nav { display: flex; flex-direction: column; border-left: 0; }
.section-nav a { position: relative; display: flex; align-items: center; min-height: 40px; padding: 6px 0 6px 19px; font-size: 15px; color: var(--muted); }
.section-nav a::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 1px; background: #6a6a6a; }
.section-nav a[aria-current='page'] { color: var(--accent); }
.section-nav a[aria-current='page']::before { width: 2px; background: var(--blue); }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--accent); }
.nav-icon, .mobile-label { display: none; }
main { min-width: 0; outline: none; }
#page-title:focus, .panel h2:focus { outline: none; }
.panel + .panel { margin-top: 64px; }
.is-enhanced .panel + .panel { margin-top: 0; }
.panel > h2 { font-size: 29px; line-height: 1.4; font-weight: 300; letter-spacing: -.5px; margin-bottom: 12px; }
#about { max-width: 640px; margin-inline: auto; }
.about-intro { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 32px; }
.hero-title { font-size: 36px; font-weight: 300; line-height: 1.3; letter-spacing: -.8px; }
.portrait { order: -1; width: 160px; height: 160px; object-fit: cover; object-position: 50% 32%; border-radius: 10px; }
.prose { color: var(--muted); font-size: 16px; line-height: 1.85; }
.prose p + p { margin-top: 20px; }
.prose strong { color: #d2d6dd; }
.prose a { --link-rest: #d2d6dd; color: #d2d6dd; text-decoration: underline; text-decoration-color: #414956; text-underline-offset: 4px; }
.prose a:hover { color: var(--accent); }
.about-copy a { white-space: nowrap; }
.prose p { text-wrap: pretty; }
.personal-note { color: var(--faint); }
.section-description { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.group-label { color: var(--accent); font-size: 13px; margin: 22px 0 8px; }
.timeline-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 8px 0; }
.timeline-date { color: #a0a5ae; font-size: 13px; font-variant-numeric: tabular-nums; }
.timeline-row h4 { font-size: 16px; line-height: 1.65; }
.timeline-row p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.row-note { display: block; font-size: 13px; color: var(--faint); margin-top: 4px; }
.project-list { overflow-anchor: none; }
.project { border-top: 1px solid var(--line); scroll-margin-top: 25px; }
.project:last-of-type { border-bottom: 1px solid var(--line); }
.project[open] { background: #07101d; border-radius: 3px; border-top-color: #13243b; }
.project[open] + .project { border-top-color: transparent; }
.project summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; padding: 12px 16px; }
.project summary::-webkit-details-marker { display: none; }
.project summary::marker { content: ''; }
.project-summary { display: flex; flex-direction: column; gap: 1px; }
.project-summary h3 { order: -1; font-size: 17px; line-height: 1.5; }
.project-tldr { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.project-tldr strong, .publication-description strong { color: var(--text); }
.project-meta { display: block; font-size: 12px; line-height: 1.7; color: var(--faint); }
.project summary:hover h3, .project[open] h3 { color: var(--accent); }
.project-toggle { color: var(--accent); font-size: 21px; align-self: center; text-align: center; }
.project-toggle::before { content: '+'; }
.project[open] .project-toggle::before { content: '−'; }
.project-body { color: var(--muted); font-size: 16px; line-height: 1.8; padding: 4px 16px 20px; overflow-wrap: break-word; }
.project-body h4 { font-size: 15px; color: var(--text); margin: 16px 0 5px; }
.project-body p { margin-bottom: 10px; }
.project-body strong { color: #d2d6dd; }
.project-body ul, .project-body ol { padding-left: 22px; margin: 0 0 12px; }
.project-body li { padding-left: 3px; margin: 2px 0; }
.project-body figure { margin: 18px 0; }
.project-body figure img { width: 100%; height: auto; background: #f8f8f8; border-radius: 2px; }
.project-body figcaption { font-size: 12px; line-height: 1.7; color: var(--faint); margin-top: 6px; }
.project-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.project-links { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.publication-links { display: flex; gap: 0 24px; flex-wrap: wrap; }
.text-link { --link-rest: var(--muted); color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.text-link:hover { color: var(--accent); }
.publication { padding: 8px 0 12px; }
.publication h3 { font-size: 18px; line-height: 1.5; margin: 3px 0 4px; }
.publication h3 a { --link-rest: var(--text); }
.publication h3 a span { color: var(--accent); white-space: nowrap; }
.publication-authors { font-size: 14px; line-height: 1.65; color: var(--muted); }
.publication-authors strong { color: var(--text); }
.publication-description { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 5px 0 0; }
.notes-heading { font-size: 22px; font-weight: 300; margin: 22px 0 8px; scroll-margin-top: 30px; }
.notes-heading:focus { outline: none; }
.resource { display: block; padding: 12px 0; }
.resource + .resource { border-top: 1px solid #090c10; }
.resource h3 { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; line-height: 1.6; margin: 5px 0; }
.resource h3 span { color: var(--accent); }
.resource p { font-size: 15px; color: var(--muted); }
.resource-format { display: block; font-size: 12px; color: var(--accent); margin-top: 7px; }
#contact-form { margin-top: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field label { font-size: 13px; color: var(--muted); }
input, textarea { width: 100%; min-width: 0; font-size: 16px; line-height: 1.7; padding: 11px 13px; color: var(--text); background: #090c10; border: 1px solid var(--line); border-radius: 2px; }
input::placeholder, textarea::placeholder { color: #828a97; }
textarea { resize: vertical; min-height: 130px; }
input:hover, textarea:hover { border-color: #3b424d; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 22px; padding: 10px 16px; border: 1px solid #354867; border-radius: 2px; color: var(--accent); background: rgba(91, 125, 184, .07); font-size: 13px; }
.button:hover { background: rgba(91, 125, 184, .15); border-color: var(--blue); }
.button:disabled { cursor: wait; opacity: .65; }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gtm-noscript { display: none; visibility: hidden; border: 0; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
#form-status { font-size: 12px; color: var(--accent); margin-top: 18px; }
.site-footer { border-top: 0; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 24px 0; font-size: 11px; color: var(--faint); }
.intro-active { overflow: hidden; }
.intro-active #site { visibility: hidden; }
.intro-active .skip-link { display: none; }
#intro { --intro-diameter: min(380px, calc(100vw - 40px), calc(100svh - 40px)); position: fixed; inset: 0; z-index: 50; background: var(--bg); touch-action: none; }
#canvas { position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
#preloader-text { position: absolute; top: 50%; left: 0; width: 100%; text-align: center; transform: translateY(-50%); opacity: 0; padding: 24px; pointer-events: none; z-index: 2; }
#preloader-text-title { color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 28px; line-height: 1.7; letter-spacing: 1px; text-transform: none; padding-left: 1px; }
#preloader-text-author { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: #aeb5bf; margin-top: 8px; opacity: 0; }
#intro.intro-static::before { content: ''; position: absolute; width: var(--intro-diameter); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #475568; border-radius: 50%; box-shadow: 0 0 24px #5b7db811, inset 0 0 24px #5b7db811; }
#intro.intro-static #canvas { display: none; }
#intro-circle { -webkit-appearance: none; appearance: none; position: absolute; z-index: 1; width: var(--intro-diameter); height: var(--intro-diameter); left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; border-radius: 50%; padding: 0; background: transparent; }
#intro-circle:focus-visible { outline: 1px solid var(--blue); outline-offset: 12px; }
#intro.intro-static.intro-leaving::before { transform: translate(-50%, -50%) scale(1.22); opacity: 0; transition: transform .55s ease, opacity .55s ease; }
#intro.intro-static.intro-leaving #preloader-text { opacity: 0 !important; transition: opacity .35s ease; }
.header-links { display: flex; align-items: center; gap: 20px; }
.profile-link { --link-rest: #c2cad7; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #c2cad7; font-size: 13px; }
.profile-link svg, .nav-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.profile-link:hover, .profile-link:focus-visible { color: var(--accent); }

@media (min-width: 1000px) and (min-height: 800px) {
  .site-header { padding-top: 72px; }
  .workspace { padding-top: 44px; }
}
@media (max-width: 920px) and (min-width: 761px) {
  .site-shell { padding: 0 48px; }
  .workspace { grid-template-columns: 120px minmax(0, 1fr); gap: 36px; }
  .header-links { gap: 17px; }
  .about-intro { grid-template-columns: 132px minmax(0, 1fr); gap: 26px; }
  .portrait { width: 132px; height: 132px; }
  .hero-title { font-size: 31px; }
  .identity { min-width: 0; }
  h1 { font-size: 20px; letter-spacing: -.7px; }
}
@media (max-width: 760px), (max-width: 920px) and (pointer: coarse) {
  .site-shell { max-width: 610px; padding: 0 max(44px, env(safe-area-inset-right)) calc(82px + env(safe-area-inset-bottom)) max(44px, env(safe-area-inset-left)); }
  .site-header { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 20px 0 12px; gap: 6px; }
  .identity { justify-content: center; }
  h1 { font-size: 25px; letter-spacing: -.7px; text-align: center; }
  .header-links { justify-content: center; gap: 17px; }
  .profile-link:not(.resume-link) { width: 44px; justify-content: center; }
  .profile-link:not(.resume-link) .profile-label { display: none; }
  .profile-link svg { width: 19px; height: 19px; }
  .profile-link, .profile-link.resume-link { font-size: 13px; gap: 4px; }
  .workspace { display: block; padding: 18px 0 22px; }
  .sidebar { position: static; }
  .section-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 12px env(safe-area-inset-bottom); background: #04070b; box-shadow: 0 -12px 25px #0009; }
  .section-nav a { flex-direction: column; justify-content: center; gap: 5px; min-height: 70px; padding: 12px 0 9px; font-size: 12px; line-height: 1.5; color: #9ca6b5; }
  .section-nav .desktop-label { display: none; }
  .section-nav .mobile-label { display: inline; }
  #intro { --intro-diameter: min(300px, calc(100vw - 40px), calc(100svh - 40px)); }
  .section-nav .nav-icon { display: block; width: 19px; height: 19px; }
  /* Every indicator spans 5.4em, enough for the widest label: Experience. */
  .section-nav a::before { left: calc(50% - 2.7em); right: calc(50% - 2.7em); top: 0; bottom: auto; width: auto; height: 3px; background: transparent; }
  .section-nav a[aria-current='page']::before { width: auto; background: var(--blue); }
  .about-intro { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
  .hero-title { font-size: 29px; letter-spacing: -.7px; line-height: 1.3; text-align: left; }
  .portrait { width: 120px; height: 120px; }
  #about { max-width: 420px; }
  .prose, .project-body { font-size: 16px; line-height: 1.75; }
  .prose p + p { margin-top: 18px; }
  .personal-note { font-size: 15px; }
  .panel > h2 { font-size: 29px; }
  .section-description { font-size: 15px; }
  .timeline-row { grid-template-columns: 1fr; gap: 1px; padding: 8px 0; }
  .timeline-date { line-height: 1.5; }
  .timeline-row h4 { font-size: 16px; line-height: 1.45; }
  .timeline-row p, .row-note { font-size: 14px; line-height: 1.55; margin-top: 1px; }
  .project summary { padding: 10px; gap: 10px; }
  .project-meta { font-size: 12px; line-height: 1.45; }
  .project-summary h3 { font-size: 17px; line-height: 1.35; }
  .project-tldr { line-height: 1.45; }
  .project-body { padding: 2px 10px 16px; line-height: 1.65; }
  .project-body h4 { font-size: 16px; margin: 14px 0 4px; }
  .project-body p { margin-bottom: 8px; }
  .project-body figure { margin: 14px 0; }
  .project-body figcaption { font-size: 12px; margin-top: 5px; }
  .publication h3 { line-height: 1.4; margin: 2px 0 3px; }
  .publication-authors { line-height: 1.5; }
  .publication-description { line-height: 1.45; margin-top: 4px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .resource { padding: 10px 0; }
  .resource h3 { font-size: 16px; line-height: 1.4; margin: 3px 0; }
  .resource p { line-height: 1.55; }
  .resource-format { line-height: 1.5; margin-top: 4px; }
  .site-footer { justify-content: center; padding: 14px 0; font-size: 11px; }
  #preloader-text-title { font-size: 22px; letter-spacing: 1.4px; padding-left: 1.4px; }
  #preloader-text-author { font-size: 11.5px; letter-spacing: 1.5px; }
}
@media (max-width: 380px) {
  .site-shell { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
  h1 { font-size: 23px; letter-spacing: -.7px; }
  .header-links { gap: 12px; }
  .profile-link, .profile-link.resume-link { font-size: 12px; gap: 4px; }
  .about-intro { grid-template-columns: 98px minmax(0, 1fr); gap: 18px; }
  .portrait { width: 98px; height: 98px; }
  .hero-title { font-size: 26px; }
  .section-nav a { font-size: 11.5px; }
  #preloader-text-title { font-size: 20px; letter-spacing: 1.2px; padding-left: 1.2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
