:root {
  --ink: #111827;
  --navy: #0b1320;
  --muted: #52606d;
  --soft: #f5f7f8;
  --line: #dbe1e5;
  --green: #178558;
  --green-soft: #e8f4ee;
  --paper: #ffffff;
  --content: 790px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.58; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #0e6842; }
.skip-link { position: fixed; z-index: 999; top: -60px; left: 18px; padding: 9px 13px; color: white; background: var(--green); }
.skip-link:focus { top: 10px; }
.topbar { position: relative; z-index: 20; min-height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); color: white; background: var(--navy); }
.topbar-name { color: white; font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.topbar p { margin: 0 0 0 auto; color: #aab5c4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.menu-button, .mobile-nav { display: none; }
.page-shell { display: grid; grid-template-columns: 250px minmax(0, var(--content)); gap: 32px; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.profile { position: sticky; top: 24px; align-self: start; padding: 22px; border: 1px solid var(--line); background: #f8f9fa; }
.portrait { display: block; width: 132px; height: 132px; margin: 2px auto 20px; object-fit: cover; border: 4px solid white; border-radius: 50%; background: #e8ecef; box-shadow: 0 0 0 1px var(--line); }
.profile-title { text-align: center; }
.profile-title strong { display: block; font-size: 17px; }
.profile-title span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.profile-links { display: grid; gap: 7px; margin: 23px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-links a { display: flex; justify-content: space-between; font-size: 13px; text-decoration: none; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: grid; grid-template-columns: 24px 1fr; padding: 6px 0; color: #394756; font-size: 12px; text-decoration: none; }
.side-nav a:hover { color: var(--green); }
.side-nav span { color: #909aa6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.content { min-width: 0; }
.section-block { scroll-margin-top: 28px; padding: 32px 0 38px; border-bottom: 1px solid var(--line); }
.intro { padding-top: 4px; }
.kicker, .project-type { margin: 0 0 8px; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 4.7rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.intro-lede { max-width: 760px; margin-bottom: 18px; color: #172332; font-size: 20px; line-height: 1.52; }
.intro > p:not(.kicker):not(.intro-lede) { max-width: 740px; color: var(--muted); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid div { padding: 16px 18px 17px 0; }
.fact-grid div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.fact-grid dt { margin-bottom: 4px; color: var(--navy); font-size: 12px; font-weight: 700; }
.fact-grid dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-label { display: grid; grid-template-columns: 42px 1fr; align-items: baseline; margin-bottom: 24px; }
.section-label > span { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.section-label h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; letter-spacing: -.025em; }
.project { margin-left: 42px; padding: 25px 0 4px; border-top: 1px solid var(--line); }
.project + .project { margin-top: 30px; }
.project-lead { padding-top: 0; border-top: 0; }
.project-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.project-heading h3 { margin-bottom: 13px; color: var(--navy); font-size: 23px; line-height: 1.2; }
.project-heading > a, .status { flex: 0 0 auto; margin-top: 4px; font-size: 12px; }
.status { padding: 3px 7px; color: #536273; border: 1px solid var(--line); background: var(--soft); }
.project-summary { max-width: 700px; color: #243342; font-size: 17px; }
.project p { color: var(--muted); }
.td3-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1.3fr auto 1fr; align-items: center; gap: 8px; margin: 24px 0 14px; padding: 18px; border: 1px solid #cdd7df; background: #f8fafb; }
.diagram-node { padding: 10px; text-align: center; border: 1px solid #cfd8de; background: white; }
.diagram-node.accent { border-color: #69b894; background: var(--green-soft); }
.diagram-node small { display: block; color: #687582; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.diagram-node strong { display: block; margin-top: 6px; font-family: Georgia, serif; font-size: 17px; }
.arrow { color: var(--green); text-align: center; }
.critics { display: grid; gap: 5px; }
.critics span { padding: 6px; text-align: center; border: 1px solid #cfd8de; background: white; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.equation { display: grid; grid-template-columns: 58px auto 1fr; align-items: center; gap: 12px; padding: 12px 15px; color: white; background: var(--navy); }
.equation > span { color: #8fa2b5; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.equation code { color: #6fe0a9; font-size: 15px; }
.equation small { color: #abb8c5; font-size: 11px; text-align: right; }
.evidence-list { margin: 21px 0; padding-left: 22px; color: #3f4d5b; }
.evidence-list li { margin: 7px 0; padding-left: 4px; }
.evidence-list li::marker { color: var(--green); }
.stack, .note { font-size: 12px; }
.stack strong { color: var(--navy); }
.note { padding-left: 12px; border-left: 2px solid #aab5bd; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border: 1px solid var(--line); }
.workflow div { position: relative; padding: 15px; }
.workflow div + div { border-left: 1px solid var(--line); }
.workflow span { color: var(--green); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow strong, .workflow small { display: block; }
.workflow strong { margin: 7px 0 2px; color: var(--navy); }
.workflow small { color: var(--muted); font-size: 11px; }
.timeline { margin-left: 42px; }
.timeline article { display: grid; grid-template-columns: 245px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline article:last-child { border-bottom: 1px solid var(--line); }
.timeline strong, .timeline span { display: block; }
.timeline strong { color: var(--navy); }
.timeline span { color: var(--green); font-size: 12px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }
.education-list { margin: 0 0 24px 42px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.education-list li { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.education-list strong { color: var(--navy); }
.education-list span { color: var(--muted); }
.path { display: flex; flex-wrap: wrap; gap: 11px; margin: 20px 0 0 42px; color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.path i { color: var(--green); font-style: normal; }
.contact { padding: 45px 0; }
.contact h2 { max-width: 670px; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.contact > p:not(.kicker) { max-width: 690px; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.contact-links a { font-size: 13px; }
footer { display: flex; justify-content: space-between; padding: 18px 0 0; color: #7d8791; font-size: 11px; }
footer a { color: #697681; text-decoration: none; }
@media (max-width: 850px) {
  .topbar { min-height: 58px; padding: 0 20px; }
  .topbar p { display: none; }
  .menu-button { display: block; margin-left: auto; padding: 8px 0; color: white; border: 0; background: transparent; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-nav { position: absolute; top: 58px; right: 0; left: 0; display: none; grid-template-columns: 1fr 1fr; padding: 14px 20px; background: var(--navy); border-top: 1px solid #243143; }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 8px 0; color: #cbd3dc; font-size: 12px; text-decoration: none; }
  .page-shell { display: block; width: min(100% - 32px, 790px); padding-top: 24px; }
  .profile { position: static; display: grid; grid-template-columns: 92px 1fr; gap: 0 18px; padding: 16px; }
  .portrait { grid-row: 1 / 3; width: 86px; height: 86px; margin: 0; border-width: 3px; }
  .profile-title { align-self: end; text-align: left; }
  .profile-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; align-self: start; margin: 8px 0 0; padding: 0; border: 0; }
  .profile-links a { gap: 4px; }
  .side-nav { display: none; }
  .content { padding-top: 28px; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .page-shell { width: min(100% - 28px, 790px); }
  .profile { grid-template-columns: 68px 1fr; gap: 0 14px; }
  .portrait { width: 66px; height: 66px; }
  .profile-title strong { font-size: 15px; }
  .profile-title span, .profile-links a { font-size: 11px; }
  .intro-lede { font-size: 18px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid div, .fact-grid div + div { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact-grid div:first-child { border-top: 0; }
  .section-label { grid-template-columns: 30px 1fr; }
  .section-label h2 { font-size: 26px; }
  .project, .timeline, .education-list, .path { margin-left: 30px; }
  .project-heading { display: block; }
  .project-heading > a, .status { display: inline-block; margin: -2px 0 14px; }
  .td3-diagram { grid-template-columns: 1fr; gap: 6px; }
  .arrow { transform: rotate(90deg); }
  .equation { grid-template-columns: 1fr; gap: 6px; }
  .equation small { text-align: left; }
  .workflow { grid-template-columns: 1fr; }
  .workflow div + div { border-top: 1px solid var(--line); border-left: 0; }
  .timeline article { grid-template-columns: 1fr; gap: 6px; }
  .education-list li { grid-template-columns: 1fr; gap: 2px; }
  .path { gap: 7px; font-size: 9px; }
  footer { display: grid; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
