@font-face {
  font-family: "Nimbus";
  src: url("assets/nimbus-sans-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nimbus";
  src: url("assets/nimbus-sans-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #131719;
  --ink: #e9eeeb;
  --secondary: #b0b9ba;
  --muted: #9ca6a8;
  --line: #394144;
  --surface: #1c2325;
  --accent: #ff9a76;
  --graphic: #8d999e;
  --ghost: #303b40;
  --selection: #604439;
}
:root[data-theme="titanium"] {
  color-scheme: light;
  --paper: #eef0ed;
  --ink: #192325;
  --secondary: #455256;
  --muted: #526166;
  --line: #b9c3c4;
  --surface: #dfe5e2;
  --accent: #a63e1d;
  --graphic: #647d83;
  --ghost: #ced7d5;
  --selection: #f3c4af;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.53 "Nimbus", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 140ms ease, color 140ms ease;
}
::selection { background: var(--selection); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.page { max-width: 1280px; padding: 0 60px; margin: 0 auto; }
.masthead {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}
.disciplines, .entry-kind {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .875rem;
  line-height: 1.6;
}
.theme-switch {
  width: 80px;
  height: 44px;
  padding: 6px;
  margin-right: -6px;
  background: transparent;
  border: 0;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-track {
  position: relative;
  display: block;
  width: 68px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.theme-switch:hover .theme-track { border-color: var(--muted); }
.theme-knob {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 160ms ease;
}
.theme-switch[aria-checked="true"] .theme-knob { transform: translateX(34px); }
.theme-icon {
  position: absolute;
  top: 6px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon.sun { left: 7px; }
.theme-icon.moon { right: 7px; }
.theme-switch[aria-checked="false"] .sun,
.theme-switch[aria-checked="true"] .moon { color: var(--paper); }
.hero { padding: 44px 0 57px; }
.hero-heading { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 58px; }
.name-block { position: relative; z-index: 1; }
h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.credentials {
  display: inline-block;
  margin-left: .35rem;
  color: var(--secondary);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}
.disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 17px 0 0;
  max-width: 650px;
  color: var(--secondary);
  font-size: .875rem;
  line-height: 1.9;
}
.disciplines span { white-space: nowrap; }
.disciplines i { color: var(--accent); font-style: normal; margin-right: 14px; }
.engineering { margin-top: 37px; }
.science-figure { margin: -20px -20px -20px -12px; min-width: 0; }
.molecular-art { display: block; width: 100%; height: auto; }
.biography {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 78px;
  margin-top: 46px;
  color: var(--secondary);
}
p { margin: 0; }
.engineering p + p { margin-top: 17px; }
.engineering .lead { font-size: 2.125rem; line-height: 1.18; letter-spacing: -.03em; max-width: 520px; }
.engineering p:not(.lead) { color: var(--secondary); }
strong { color: var(--ink); font-weight: 600; }
.work-section {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding-top: 29px;
  padding-bottom: 34px;
}
.section-label h2 { font-size: 1rem; line-height: 1.5; font-weight: 400; margin: 2px 0 10px; }
.section-label h2::before { content: ""; display: inline-block; background: var(--accent); width: 14px; height: 1px; margin: 0 10px 5px 0; }
.quiet-link { font-size: .875rem; color: var(--muted); text-decoration-color: var(--line); }
.work-entry { position: relative; padding: 0 0 23px; }
.work-entry + .work-entry { padding: 24px 0 23px; border-top: 1px solid var(--line); }
.work-entry:last-child { padding-bottom: 0; }
.entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
h3 { font-size: 1.4375rem; line-height: 1.4; font-weight: 400; letter-spacing: -.02em; margin: 0 0 5px; }
h3 a { text-decoration: none; }
h3 a::after { content: ""; position: absolute; inset: 0; }
.work-entry:has(a:hover) h3 { color: var(--accent); }
.entry-kind { color: var(--muted); white-space: nowrap; font-size: .8125rem; }
.work-entry p { color: var(--secondary); max-width: 630px; font-size: 1rem; line-height: 1.45; }
.attribution { display: block; margin-top: 7px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
footer {
  padding: 29px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
  font-size: .875rem;
}
.footer-name { color: var(--muted); }
footer nav { display: flex; gap: 25px; flex-wrap: wrap; }
footer a { text-decoration: none; padding: 7px 0; }
footer a:hover { text-decoration: underline; }
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 15px;
}
.skip-link:focus { top: 10px; }
@media (min-width: 1440px) {
  .page { max-width: 1320px; }
  .hero { padding-top: 54px; }
}
@media (max-width: 1050px) {
  .page { padding: 0 38px; }
  .hero-heading { gap: 35px; }
  .biography { gap: 45px; }
  .work-section { grid-template-columns: 190px 1fr; gap: 30px; }
  h1 { font-size: 2.75rem; }
  .engineering .lead { font-size: 1.875rem; }
  .disciplines { max-width: 450px; }
}
@media (max-width: 750px) {
  .page { padding: 0 26px; }
  .masthead { min-height: 60px; }
  .hero { padding-top: 32px; padding-bottom: 37px; }
  .hero-heading { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: clamp(2.375rem, 7.5vw, 3.5rem); max-width: 100%; }
  .credentials { font-size: 1rem; }
  .disciplines { margin-top: 15px; max-width: 420px; }
  .engineering { margin-top: 27px; }
  .science-figure { width: 100%; max-width: 560px; margin: 0 auto; }
  .biography { grid-template-columns: 1fr; gap: 19px; margin-top: 34px; }
  .engineering .lead { font-size: 1.875rem; max-width: 520px; }
  .engineering p:not(.lead), .biography { font-size: 1rem; }
  .work-section { grid-template-columns: 1fr; gap: 25px; padding: 26px 0 30px; }
  .section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
  .section-label h2 { margin: 0; }
  .quiet-link { font-size: .8125rem; }
  h3 { font-size: 1.375rem; }
  .work-entry p { font-size: 1rem; max-width: 90%; }
  .entry-heading { gap: 15px; }
  .entry-kind { font-size: .8125rem; }
  .attribution { font-size: .8125rem; max-width: 92%; }
  footer { flex-direction: column; gap: 12px; padding-top: 25px; }
  footer nav { gap: 24px; font-size: .875rem; }
}
@media (max-width: 390px) {
  .page { padding: 0 20px; }
  h1 { font-size: 2.375rem; }
  .engineering .lead { font-size: 1.75rem; }
  .science-figure { width: calc(100% + 24px); max-width: none; margin-left: -12px; margin-right: -12px; }
  .disciplines { column-gap: 10px; }
  .disciplines i { margin-right: 10px; }
  .entry-kind { display: none; }
  footer nav { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
