:root {
  --paper:#fcfcfa;
  --white:#fff;
  --ink:#202322;
  --muted:#646966;
  --blue:#1846db;
  --deep:#143187;
  --line:#dcdedb;
  --faint:#f1f3f5;
  --blue-wash:#f0f4ff;
  --mono:"IBM Plex Mono",monospace;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --max:1160px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #d9e3ff;
  color: #142e86;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
a:hover {
  color: var(--blue);
}
img,
svg {
  display: block;
  max-width: 100%;
}
figure,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.wrap {
  width: min(var(--max), calc(100% - 96px));
  margin-inline: auto;
}
.blue {
  color: var(--blue);
}
.mono,
.eyebrow,
.figure-label,
.tags,
.caption,
.section-number {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.eyebrow .blue {
  font-weight: 500;
}
.tiny-cross {
  width: 9px;
  height: 9px;
  background: linear-gradient(var(--blue), var(--blue)) center/1px 9px no-repeat, linear-gradient(var(--blue), var(--blue)) center/9px 1px no-repeat;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  background: var(--blue);
  color: white;
  padding: 12px 24px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.masthead {
  height: 88px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .875rem;
  font-weight: 550;
  letter-spacing: -.025em;
}
.monogram {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.11em;
  color: var(--blue);
  position: relative;
  padding-right: 8px;
  line-height: 1;
}
.monogram span {
  font-weight: 450;
}
.monogram i {
  width: 4px;
  height: 4px;
  background: var(--blue);
  position: absolute;
  bottom: 3px;
  right: 0;
}
.nav-row nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 34px;
  font-size: .875rem;
}
.resume-link {
  font-size: .875rem;
  border: 1px solid var(--line);
  padding: 7px 14px;
  display: flex;
  gap: 22px;
  align-items: center;
}
.resume-link:hover {
  border-color: var(--blue);
}
.hero {
  padding: 58px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  min-height: 510px;
}
.hero h1 {
  font-size: clamp(3.7rem, 6.4vw, 5.65rem);
  font-weight: 550;
  letter-spacing: -.069em;
  line-height: .98;
  margin: 28px 0 26px;
}
.hero h1 .period {
  color: var(--blue);
}
.hero-focus {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -.025em;
}
.hero-intro {
  max-width: 470px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 12px;
}
.hero-links {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.button-link {
  background: var(--blue);
  color: #fff;
  padding: 11px 18px;
  display: inline-flex;
  gap: 32px;
  align-items: center;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--blue);
}
.button-link:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.text-link {
  font-size: .875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.text-link span,
.button-link span {
  transition: transform .2s;
}
.text-link:hover span,
.button-link:hover span {
  transform: translate(2px, -2px);
}
.hero-figure {
  position: relative;
  margin-top: 18px;
}
.hero-figure svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.figure-label {
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: .75rem;
}
.hero-figure .figure-label {
  padding: 0 20px;
}
.fig-caption {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 18px;
  max-width: 420px;
}
.hero-figure .fig-caption {
  padding-left: 20px;
  margin-top: 3px;
}
.hero-facts {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.35fr;
  gap: 36px;
  padding: 28px 0 30px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  font-size: .875rem;
  line-height: 1.55;
}
.fact .eyebrow {
  font-size: .75rem;
  margin-bottom: 7px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px #e6edff;
  flex: none;
}
.section {
  padding-top: 100px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-top: 18px;
}
.section-heading > p {
  max-width: 405px;
  color: var(--muted);
  font-size: 1rem;
  justify-self: end;
}
.project {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 76px;
  align-items: start;
}
.project h3 {
  font-size: 2.4rem;
  margin: 15px 0 18px;
}
.project h4 {
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -.025em;
  max-width: 390px;
  margin-bottom: 18px;
}
.project p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}
.project .tags {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin: 24px 0;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: 0;
}
.project-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.project-actions .text-link:first-child {
  color: var(--blue);
  border-bottom: 1px solid #abbfff;
  padding-bottom: 3px;
}
.technical-note {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
  margin-top: 26px;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.7;
}
.technical-note strong {
  font-weight: 550;
}
.diagram {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 23px 26px 20px;
}
.diagram .figure-label {
  color: var(--deep);
  font-size: .75rem;
  letter-spacing: .025em;
}
.diagram-stage {
  padding: 26px 0 18px;
}
.cache-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1.2fr;
  align-items: center;
  gap: 12px;
  min-height: 210px;
}
.request-stack {
  display: grid;
  gap: 14px;
}
.request {
  font-family: var(--mono);
  font-size: .78rem;
  background: #fafbfc;
  border: 1px solid var(--line);
  padding: 9px 11px;
  white-space: nowrap;
}
.request b {
  font-weight: 500;
  color: var(--blue);
}
.routing-arrow {
  color: var(--blue);
  font-size: 24px;
}
.stripes {
  display: grid;
  gap: 7px;
}
.stripe {
  border: 1px solid #b7c8f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  background: var(--blue-wash);
  color: var(--blue);
  font-family: var(--mono);
  font-size: .75rem;
}
.stripe .memory {
  display: flex;
  gap: 3px;
}
.memory i {
  display: block;
  width: 10px;
  height: 15px;
  background: #c0cff5;
}
.memory i:nth-child(even) {
  background: #7291e6;
}
.stripe:first-child {
  background: var(--blue);
  color: #fff;
}
.stripe:first-child .memory i {
  background: #7193f8;
}
.flow-annotation {
  font-family: var(--mono);
  font-size: .7rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 16px;
}
.diagram-caption {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.6;
}
.diagram-caption b {
  color: var(--ink);
  font-weight: 500;
}
.benchmark {
  margin-top: 26px;
}
.bench-head {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  margin-bottom: 15px;
  font-family: var(--mono);
}
.bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 60px;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .75rem;
  margin: 12px 0;
}
.bar-track {
  height: 13px;
  border-left: 1px solid #b5bfd0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      #e7e9ed calc(25% - 1px),
      #e7e9ed 25%);
}
.bar-fill {
  height: 100%;
  background: #b5bfce;
  transform-origin: left;
}
.bar-row:last-of-type .bar-fill {
  background: var(--blue);
}
.bar-value {
  text-align: right;
  font-weight: 500;
}
.bench-caption {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}
.diagram-controls {
  display: flex;
  gap: 4px;
  background: #f1f3f5;
  padding: 3px;
  margin-top: 22px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.diagram-controls button {
  border: 0;
  background: transparent;
  font-size: .75rem;
  padding: 6px 11px;
  color: var(--muted);
  min-height: 34px;
}
.diagram-controls button[aria-pressed=true] {
  background: #fff;
  box-shadow: 0 1px 3px #14245312;
  color: var(--blue);
}
.physics-svg {
  width: 100%;
  height: auto;
  margin: 12px auto 4px;
}
.physics-svg .pair {
  stroke: #bac3d4;
  stroke-width: 1;
  opacity: .55;
  transition: opacity .25s, stroke .25s;
}
.physics-svg .pair.near {
  stroke: var(--blue);
  stroke-width: 1.8;
  opacity: 1;
}
.physics-svg[data-mode=near] .pair:not(.near) {
  opacity: 0;
}
.physics-svg .cell-active {
  fill: #edf2ff;
}
.physics-svg .collider {
  fill: #dbe5ff;
  stroke: var(--blue);
  stroke-width: 1.5;
}
.physics-svg text {
  font: 12px var(--mono);
  fill: var(--blue);
}
.diagram-result {
  font: .75rem var(--mono);
  color: var(--deep);
  margin: 10px 0 16px;
  min-height: 1.6em;
}
.narrative {
  background: var(--blue-wash);
  border-color: #d6dff5;
}
.story-node {
  background: #fff;
  border: 1px solid #b8c8ed;
  padding: 12px 14px;
  position: relative;
}
.story-node .mono {
  font-size: .75rem;
  color: var(--blue);
}
.story-node strong {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-top: 3px;
}
.story-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 31px;
  position: relative;
}
.story-branches:before {
  content: "";
  position: absolute;
  top: 15px;
  left: 24%;
  right: 24%;
  height: 1px;
  background: #9fb4e8;
}
.story-branches:after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 15px;
  border-left: 1px solid #9fb4e8;
}
.story-branch {
  border-top: 1px solid #aebfe7;
  text-align: center;
  position: relative;
}
.story-branch:before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  height: 17px;
  border-left: 1px solid #9fb4e8;
}
.story-branch .choice {
  display: block;
  font-size: .8rem;
  margin: 10px 0 6px;
}
.flag {
  display: block;
  font: .68rem var(--mono);
  color: var(--blue);
}
.story-branch .story-node {
  margin-top: 22px;
  text-align: left;
}
.story-branch.muted {
  opacity: .65;
}
.story-branch.muted .story-node {
  border-style: dashed;
}
.story-branch .outcome {
  font-size: .75rem;
  margin-top: 10px;
  color: var(--muted);
}
.story-selector {
  margin-bottom: 20px;
}
.small-work {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.small-work h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.small-work p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 14px;
}
.small-work .section-number {
  color: var(--blue);
  padding-top: 5px;
}
.search-example {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.search-example .mono {
  font-size: .8rem;
}
.search-example .query {
  font-size: 1.35rem;
  margin: 12px 0;
}
.query .typo {
  color: var(--blue);
  border-bottom: 1px dashed var(--blue);
}
.search-example .match {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
.subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.subsection-head h2 {
  font-size: 2.1rem;
}
.subsection-head .eyebrow {
  font-size: .75rem;
}
.experience-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}
.experience-date {
  font: .75rem var(--mono);
  color: var(--muted);
  padding-top: 6px;
}
.experience-row h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.experience-row h3 span {
  color: var(--muted);
  font-weight: 400;
}
.experience-row p {
  max-width: 730px;
  font-size: .9rem;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.75;
}
.experience-role {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.current-label {
  font: .65rem var(--mono);
  background: var(--blue-wash);
  color: var(--blue);
  padding: 3px 7px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-copy h2 {
  font-size: 2.65rem;
  line-height: 1.2;
  margin: 18px 0 26px;
}
.about-copy p {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-copy .education {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
.education strong {
  color: var(--ink);
  font-weight: 500;
}
.skills {
  padding-top: 4px;
}
.skills h3 {
  font-size: 1.2rem;
  margin-bottom: 28px;
  letter-spacing: -.02em;
}
.skill-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.skill-row h4 {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.skill-row p {
  font-size: .875rem;
  line-height: 1.8;
}
.skill-evidence {
  display: block;
  font-size: .75rem;
  margin-top: 6px;
  color: var(--muted);
}
.writing-list {
  margin-top: 60px;
}
.writing-list .eyebrow {
  margin-bottom: 18px;
}
.writing-row {
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.writing-row .mono {
  font-size: .7rem;
  color: var(--muted);
  padding-top: 3px;
}
.writing-row span:last-child {
  color: var(--blue);
}
.contact {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  padding: 60px 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact h2 {
  font-size: 2.6rem;
  margin-top: 16px;
}
.contact p {
  font-size: .9rem;
  color: var(--muted);
  margin: 18px 0;
}
.contact-links {
  align-self: center;
}
.email-link {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: -.025em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  overflow-wrap: anywhere;
}
.social-links {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.social-links a {
  font-size: .875rem;
}
.footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: .75rem;
  color: var(--muted);
}
.footer-name {
  color: var(--ink);
  font-weight: 500;
  font-size: .85rem;
}
.footer .mono {
  font-size: .75rem;
}
.footer > a:nth-last-child(2) {
  margin-left: auto;
}
.copyright {
  font-family: var(--mono);
  font-size: .75rem;
}
.case-header {
  padding: 52px 0 48px;
}
.back-link {
  font: .75rem var(--mono);
  color: var(--muted);
  display: inline-flex;
  gap: 10px;
  margin-bottom: 36px;
}
.case-header h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 21px 0;
}
.case-deck {
  font-size: 1.3rem;
  max-width: 760px;
  letter-spacing: -.025em;
  line-height: 1.6;
  color: var(--muted);
}
.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 30px;
}
.case-meta .tags {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .75rem;
  color: var(--muted);
}
.case-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  padding-bottom: 60px;
}
.case-toc {
  position: sticky;
  top: 35px;
}
.case-toc .eyebrow {
  margin-bottom: 15px;
  font-size: .75rem;
}
.case-toc a {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  padding: 6px 0;
}
.case-toc a:hover {
  color: var(--blue);
}
.case-content {
  max-width: 850px;
}
.case-section {
  padding-top: 42px;
  padding-bottom: 12px;
}
.case-section:first-child {
  padding-top: 0;
}
.case-section h2 {
  font-size: 1.9rem;
  margin-bottom: 22px;
}
.case-section h3 {
  font-size: 1.2rem;
  margin: 30px 0 12px;
  letter-spacing: -.025em;
}
.case-section p,
.case-section li {
  font-size: .97rem;
  line-height: 1.85;
  color: #505652;
}
.case-section p {
  margin: 16px 0;
}
.case-section ul {
  padding-left: 22px;
}
.case-section li {
  margin-bottom: 10px;
}
.case-section strong {
  color: var(--ink);
  font-weight: 550;
}
.case-section a:not(.text-link) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case-section .diagram {
  margin: 28px 0;
}
.case-section code {
  font-family: var(--mono);
  font-size: .83em;
  background: #eef1f5;
  padding: 2px 5px;
}
.code-block {
  background: #f2f4f7;
  border: 1px solid var(--line);
  padding: 23px 26px;
  overflow: auto;
  margin: 22px 0;
  font: .8rem/1.8 var(--mono);
  tab-size: 2;
  white-space: pre;
}
.code-block code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.code-block .comment {
  color: var(--muted);
}
.code-block .keyword {
  color: var(--blue);
}
.source-note {
  font-size: .75rem !important;
  color: var(--muted) !important;
}
.callout {
  border-left: 2px solid var(--blue);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
}
.callout p {
  margin: 0;
  font-size: .95rem;
}
.pipeline {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 30px 0;
}
.pipeline-step {
  background: var(--blue-wash);
  border: 1px solid #b8c8ed;
  flex: 1;
  min-width: 110px;
  padding: 16px 12px;
}
.pipeline-step b {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--deep);
}
.pipeline-step small {
  font: .65rem var(--mono);
  line-height: 1.7;
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.pipeline-arrow {
  align-self: center;
  color: var(--blue);
}
.source-list {
  list-style: none;
  padding: 0 !important;
}
.source-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.source-list a {
  font-family: var(--mono);
  font-size: .75rem;
}
.next-project {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.next-project h3 {
  font-size: 1.5rem;
  margin-top: 9px;
}
.memory-layout {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  margin: 15px 0;
  font: .75rem var(--mono);
}
.memory-boxes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.memory-boxes span {
  padding: 9px 12px;
  background: var(--blue-wash);
  color: var(--blue);
  border: 1px solid #b8c8ed;
}
.memory-boxes.scattered {
  gap: 22px;
}
@keyframes figure-enter {
  from {
    opacity: .6;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (min-width:1500px) {
  :root {
    --max:1240px;
  }
  .hero-grid {
    min-height: 560px;
  }
  .hero h1 {
    font-size: 6rem;
  }
}
@media (max-width:1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .nav-row nav {
    gap: 22px;
    margin-right: 10px;
  }
  .hero-grid {
    gap: 10px;
    grid-template-columns: 1.05fr 1fr;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero-intro {
    font-size: 1rem;
  }
  .hero-facts {
    gap: 24px;
  }
  .project-grid {
    gap: 40px;
  }
  .project h3 {
    font-size: 2.1rem;
  }
  .diagram {
    padding: 20px;
  }
  .request {
    padding: 8px;
    font-size: .75rem;
  }
  .cache-flow {
    gap: 7px;
    grid-template-columns: 1fr 18px 1.1fr;
  }
  .stripe {
    padding: 8px;
    font-size: .75rem;
  }
  .stripe .memory {
    gap: 2px;
  }
  .memory i {
    width: 7px;
  }
  .about-grid {
    gap: 50px;
  }
  .case-layout {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 35px;
  }
  .section-heading {
    gap: 50px;
  }
  .experience-row {
    grid-template-columns: 175px 1fr;
    gap: 30px;
  }
}
@media (max-width:760px) {
  html {
    scroll-padding-top: 30px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .masthead {
    height: auto;
  }
  .nav-row {
    min-height: 78px;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 15px;
  }
  .wordmark {
    margin-right: auto;
  }
  .nav-row nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    gap: 16px;
  }
  .resume-link {
    padding: 5px 10px;
    gap: 15px;
  }
  .hero {
    padding-top: 34px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero h1 {
    font-size: clamp(3.6rem, 13.5vw, 5.5rem);
    margin-top: 24px;
  }
  .hero-intro {
    max-width: 520px;
  }
  .hero-focus {
    font-size: 1.1rem;
  }
  .hero-links {
    margin-top: 24px;
    gap: 24px;
  }
  .hero-figure {
    width: min(480px, 100%);
    justify-self: center;
    margin-top: 4px;
  }
  .hero-figure svg {
    max-height: 360px;
  }
  .hero-figure .fig-caption {
    font-size: .75rem;
  }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
    margin-top: 30px;
    padding: 23px 0;
  }
  .hero-facts .fact:last-child {
    grid-column: 1/-1;
  }
  .section {
    padding-top: 65px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 30px;
  }
  .section-heading > p {
    justify-self: start;
    max-width: 480px;
  }
  .section-heading h2 {
    font-size: 2.4rem;
  }
  .project {
    padding: 35px 0 42px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project h3 {
    font-size: 2.2rem;
    margin: 12px 0 16px;
  }
  .project h4 {
    max-width: 100%;
    margin-bottom: 12px;
  }
  .project .tags {
    margin: 20px 0;
  }
  .technical-note {
    margin-top: 20px;
  }
  .project-visual {
    width: 100%;
    max-width: 590px;
    justify-self: center;
  }
  .cache-flow {
    grid-template-columns: 1fr 24px 1.2fr;
    gap: 12px;
    min-height: 190px;
  }
  .request {
    font-size: .75rem;
    padding: 10px;
  }
  .stripe {
    font-size: .75rem;
    padding: 8px 12px;
  }
  .memory i {
    width: 10px;
  }
  .small-work {
    grid-template-columns: 32px 1fr;
    gap: 16px;
  }
  .search-example {
    grid-column: 2;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .subsection-head {
    align-items: flex-end;
  }
  .subsection-head h2 {
    font-size: 1.8rem;
  }
  .subsection-head > .eyebrow {
    font-size: .75rem;
    text-align: right;
    max-width: 105px;
  }
  .experience-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 23px 0;
  }
  .experience-date {
    padding: 0;
  }
  .experience-row h3 span {
    display: block;
    margin-top: 3px;
  }
  .experience-row p {
    margin-top: 12px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-copy h2 {
    font-size: 2.3rem;
  }
  .about-copy .education {
    margin-top: 25px;
  }
  .writing-list {
    margin-top: 38px;
  }
  .writing-row {
    grid-template-columns: 44px 1fr 20px;
    gap: 12px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 65px;
    padding: 42px 0;
  }
  .contact h2 {
    font-size: 2.2rem;
  }
  .email-link {
    font-size: 1.1rem;
  }
  .footer {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-bottom: 25px;
  }
  .footer .mono {
    order: 3;
    width: 70%;
  }
  .footer > a:nth-last-child(2) {
    margin-left: auto;
  }
  .copyright {
    order: 4;
    margin-left: auto;
  }
  .case-header {
    padding: 32px 0;
  }
  .case-header h1 {
    font-size: 3.6rem;
  }
  .case-deck {
    font-size: 1.12rem;
  }
  .back-link {
    margin-bottom: 26px;
  }
  .case-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .case-meta .tags {
    gap: 10px 18px;
  }
  .case-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .case-toc {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 20px;
  }
  .case-toc .eyebrow {
    width: 100%;
    margin-bottom: 5px;
  }
  .case-toc a {
    font-size: .75rem;
  }
  .case-section h2 {
    font-size: 1.65rem;
  }
  .case-section {
    padding-top: 32px;
  }
  .code-block {
    font-size: .75rem;
    padding: 18px;
  }
  .case-section .diagram {
    margin: 22px 0;
  }
  .pipeline {
    gap: 8px;
  }
  .pipeline-step {
    min-width: 100px;
  }
  .pipeline-arrow {
    display: none;
  }
  .next-project h3 {
    font-size: 1.25rem;
  }
  .memory-layout {
    grid-template-columns: 70px 1fr;
    font-size: .75rem;
  }
  .memory-boxes span {
    padding: 7px;
  }
  .memory-boxes.scattered {
    gap: 12px;
  }
}
@media (max-width:380px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-facts {
    grid-template-columns: 1fr;
  }
  .hero-facts .fact:last-child {
    grid-column: auto;
  }
  .diagram {
    padding: 16px;
  }
  .cache-flow {
    gap: 6px;
    grid-template-columns: 1fr 16px 1fr;
  }
  .request {
    font-size: .75rem;
    padding: 8px;
  }
  .stripe {
    font-size: .75rem;
    padding: 8px;
  }
  .memory i {
    width: 6px;
  }
  .story-branches {
    gap: 12px;
  }
  .story-node {
    padding: 10px;
  }
  .story-node strong {
    font-size: .8rem;
  }
  .flag {
    font-size: .75rem;
  }
  .bar-row {
    grid-template-columns: 64px 1fr 50px;
    gap: 8px;
  }
  .social-links {
    gap: 20px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .masthead,
  .hero-figure,
  .diagram-controls,
  .case-toc,
  .footer,
  .skip-link {
    display: none;
  }
  .wrap {
    width: 100%;
  }
  .section,
  .project,
  .case-section {
    padding-top: 24px;
  }
  .project-grid,
  .about-grid,
  .case-layout {
    display: block;
  }
  .project-visual {
    margin-top: 20px;
    break-inside: avoid;
  }
  .hero-grid {
    display: block;
    min-height: 0;
  }
  .hero h1 {
    font-size: 44px;
  }
  .contact {
    margin-top: 24px;
  }
  .case-header h1 {
    font-size: 40px;
  }
  a[href^=https]:after {
    content: " (" attr(href) ")";
    font-size: 9px;
    overflow-wrap: anywhere;
  }
  .hero-facts,
  .experience-row {
    break-inside: avoid;
  }
}
[hidden] {
  display: none !important;
}
.physics-svg text {
  font-size: 16px;
}
.case-section .benchmark {
  margin: 25px 0 30px;
}
.project-copy,
.project-visual,
.hero-copy,
.case-content {
  min-width: 0;
}
.project p,
.experience-row p,
.about-copy p,
.small-work p,
.contact p,
.case-section p,
.case-section li {
  font-size: 1rem;
}
.diagram-controls button {
  font-size: .875rem;
  min-height: 40px;
}
.diagram .figure-label {
  flex-wrap: wrap;
  gap: 6px 12px;
}
.story-branch.muted {
  opacity: 1;
}
.story-branch.muted .flag,
.story-branch.muted .mono {
  color: #64708b;
}
@media (max-width:480px) {
  .figure-label {
    font-size: .75rem;
  }
  .hero-figure .figure-label {
    padding: 0;
  }
  .hero-figure .fig-caption {
    padding-left: 0;
  }
  .physics-svg {
    width: 100%;
  }
  .physics-svg text {
    font-size: 20px;
  }
  .story-branches {
    gap: 14px;
  }
  .story-node .mono {
    overflow-wrap: anywhere;
  }
  .flag {
    font-size: .75rem;
    overflow-wrap: anywhere;
  }
  .diagram-result {
    font-size: .8125rem;
  }
  .diagram .figure-label span:last-child {
    color: var(--muted);
  }
  .code-block {
    font-size: .8125rem;
  }
  .contact .social-links {
    gap: 18px 24px;
  }
}
.project p.bench-caption {
  font-size: .75rem;
}
@media (max-width:760px) {
  .hero-links {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 16px 28px;
  }
  .hero-links .button-link {
    grid-column: 1/-1;
    justify-self: start;
  }
  .hero-figure svg text {
    font-size: 18px;
  }
}
@media (max-width:380px) {
  .physics-svg text {
    font-size: 26px;
  }
  .story-branches {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-branches:before {
    display: none;
  }
  .story-branch:before {
    display: none;
  }
  .story-branch {
    padding-top: 5px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 3.5rem);
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hero h1.pixel-heading {
  max-width: 530px;
  margin: 32px 0 28px;
  line-height: 0;
}
.pixel-name {
  display: block;
  width: 100%;
  height: auto;
  fill: #1945ff;
  shape-rendering: crispEdges;
  overflow: visible;
}
.hero-facts {
  position: relative;
  border-top: 0;
}
.hero-facts::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--muted) 0 1px,
      transparent 1px 4px);
  mask-image:
    repeating-linear-gradient(
      0deg,
      #000 0 1px,
      transparent 1px 2px);
  opacity: .45;
}
.work-in-progress {
  display: inline-block;
  width: fit-content;
  border: 1px solid #b8c8ed;
  color: var(--blue);
  padding: 3px 6px;
  font: .65rem var(--mono);
  letter-spacing: .025em;
  white-space: nowrap;
  vertical-align: middle;
}
.project-copy > .eyebrow .work-in-progress {
  display: block;
  margin-top: 12px;
}
.case-header .work-in-progress {
  margin-left: 10px;
}
.case-header > .eyebrow {
  display: block;
}
.case-header > .eyebrow > .blue {
  white-space: nowrap;
}
.project p.project-status {
  position: relative;
  margin: 16px 0 0;
  padding-left: 17px;
  font: .75rem/1.8 var(--mono);
  color: var(--deep);
}
.project-status > span:last-child {
  color: var(--muted);
}
.status-marker {
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--blue);
}
.sage-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 22px 0 8px;
  overflow: visible;
}
.sage-svg text {
  font: 15px var(--mono);
  fill: var(--muted);
}
.sage-svg .sage-column-label {
  font-size: 12px;
  letter-spacing: .08em;
}
.sage-edge {
  fill: none;
  stroke: #d6ddec;
  stroke-width: 1.5;
  transition: stroke .25s;
}
.sage-edge[data-active=true] {
  stroke: var(--blue);
  stroke-width: 2;
}
.sage-user circle,
.sage-movie rect {
  fill: var(--white);
  stroke: #9ba9c3;
  stroke-width: 1.3;
  transition: fill .25s, stroke .25s;
}
.sage-user[data-active=true] circle {
  fill: var(--blue);
  stroke: var(--blue);
}
.sage-user[data-active=true] .sage-node-id {
  fill: #fff;
}
.sage-movie[data-active=true] rect {
  fill: var(--blue-wash);
  stroke: var(--blue);
}
.sage-movie[data-active=true] .sage-node-id {
  fill: var(--blue);
}
.csr-readout {
  border-left: 2px solid var(--blue);
  padding: 12px 14px;
  background: var(--blue-wash);
}
.csr-readout .eyebrow {
  display: block;
  font-size: .65rem;
  margin-bottom: 7px;
}
.csr-readout code {
  font: .8rem/1.7 var(--mono);
  color: var(--deep);
  overflow-wrap: anywhere;
}
.sage-diagram p.diagram-result {
  font: .75rem/1.7 var(--mono);
  margin: 13px 0 18px;
}
.split-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 30px 0;
}
.split-event {
  background: var(--blue-wash);
  border-top: 2px solid var(--blue);
  padding: 12px 4px;
  text-align: center;
  color: var(--blue);
  font: .75rem/1.9 var(--mono);
}
.split-event b {
  display: block;
  font-weight: 400;
}
.split-event.held-out {
  border-top-style: dashed;
  border-color: #98a0ae;
  color: var(--muted);
  background: #f6f6f4;
}
.table-scroll {
  overflow-x: auto;
  margin: 26px 0;
}
.technical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .875rem;
  line-height: 1.6;
}
.technical-table caption {
  text-align: left;
  font: .75rem/1.6 var(--mono);
  color: var(--muted);
  margin-bottom: 14px;
}
.technical-table th,
.technical-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.technical-table th {
  background: var(--blue-wash);
  color: var(--deep);
  font-weight: 500;
}
.technical-table td:first-child {
  width: 37%;
}
.baseline-result {
  margin: 28px 0;
  border: 1px solid #c5d3f5;
  background: var(--blue-wash);
  padding: 26px;
}
.baseline-result .figure-label {
  flex-wrap: wrap;
}
.result-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 26px 0 23px;
}
.result-pair dt {
  font: .75rem var(--mono);
  color: var(--deep);
}
.result-pair dd {
  font: 500 clamp(1.8rem, 4vw, 3rem)/1.3 var(--mono);
  letter-spacing: -.06em;
  color: var(--blue);
  margin: 7px 0 0;
}
.case-section .baseline-result .source-note {
  font-size: .8rem;
  margin: 0;
}
.motion-toggle {
  display: block;
  background: transparent;
  border: 0;
  padding: 8px 0;
  margin-top: 6px;
  min-height: 36px;
  color: var(--blue);
  font: .7rem/1.5 var(--mono);
  text-align: left;
  cursor: pointer;
}
.motion-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-figure .motion-toggle {
  margin-left: 20px;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .pixel-row {
    animation: pixel-assemble .7s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(var(--row) * 35ms);
  }
  .reveal-figure.is-entering {
    animation: figure-enter .65s both;
  }
  .motion-active .pixel-row {
    animation: pixel-cycle 6s cubic-bezier(.16, 1, .3, 1) infinite both;
    animation-delay: calc(var(--row) * 35ms);
  }
  .motion-active .layer {
    transform-box: fill-box;
    transform-origin: center;
    animation: layer-trace 6s cubic-bezier(.22, 1, .36, 1) infinite both;
    animation-delay: calc(var(--phase) * 450ms);
  }
  .motion-active .bar-fill {
    animation: bar-cycle 6s cubic-bezier(.16, 1, .3, 1) infinite both;
  }
  .motion-active .bar-row:nth-of-type(2) .bar-fill {
    animation-delay: .13s;
  }
  .motion-active .bar-row:nth-of-type(3) .bar-fill {
    animation-delay: .26s;
  }
  .motion-active .request {
    animation: request-route 6s infinite both;
  }
  .motion-active .request:nth-child(2) {
    animation-delay: .5s;
  }
  .motion-active .request:nth-child(3) {
    animation-delay: 1s;
  }
  .motion-active .memory i {
    animation: memory-write 6s .6s infinite both;
  }
  .motion-active .stripe:nth-child(2) .memory i {
    animation-delay: 1.1s;
  }
  .motion-active .stripe:nth-child(3) .memory i {
    animation-delay: 1.6s;
  }
  .motion-active .stripe:nth-child(4) .memory i {
    animation-delay: 2.1s;
  }
  .motion-active .sage-edge[data-active=true] {
    animation: trace-edge 6s .25s infinite both;
  }
  .motion-active .csr-readout {
    animation: read-range 6s 1.25s infinite both;
  }
  .motion-active.narrative .diagram-stage > .story-node {
    animation: read-range 6s infinite both;
  }
  .motion-active.narrative .story-branch:not(.muted) .flag {
    animation: read-range 6s .7s infinite both;
  }
  .motion-active.narrative .story-branch:not(.muted) .story-node {
    animation: read-range 6s 1.4s infinite both;
  }
  .motion-active .split-event {
    animation: timeline-step 6s infinite both;
  }
  .motion-active .split-event:nth-child(2) {
    animation-delay: .12s;
  }
  .motion-active .split-event:nth-child(3) {
    animation-delay: .24s;
  }
  .motion-active .split-event:nth-child(4) {
    animation-delay: .36s;
  }
  .motion-active .split-event:nth-child(5) {
    animation-delay: .48s;
  }
  .motion-active .split-event:nth-child(6) {
    animation-delay: .6s;
  }
}
@keyframes pixel-assemble {
  from {
    opacity: 0;
    transform: translateX(1.5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes pixel-cycle {
  0% {
    opacity: .5;
    transform: translateX(.7px);
  }
  15%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes layer-trace {
  0% {
    opacity: .5;
    transform: translateY(20px);
  }
  12% {
    opacity: 1;
    transform: translateY(-5px);
  }
  25%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bar-cycle {
  0% {
    transform: scaleX(0);
  }
  20%, 100% {
    transform: scaleX(1);
  }
}
@keyframes request-route {
  0% {
    transform: translateX(-7px);
    border-color: var(--line);
  }
  8% {
    border-color: var(--blue);
    background: var(--blue-wash);
  }
  20%, 100% {
    transform: translateX(0);
    border-color: var(--line);
  }
}
@keyframes memory-write {
  0%, 18%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  8% {
    opacity: .3;
    transform: scaleY(.6);
  }
}
@keyframes trace-edge {
  0% {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  22%, 100% {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}
@keyframes read-range {
  0%, 20%, 100% {
    box-shadow: 0 0 0 0 transparent;
  }
  8% {
    box-shadow: 0 0 0 2px #1846db55;
  }
}
@keyframes timeline-step {
  0% {
    opacity: .6;
    transform: translateY(4px);
  }
  14%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.motion-paused,
.motion-paused * {
  animation-play-state: paused !important;
}
html[data-motion-paused=true] *,
html[data-motion-paused=true] *::before,
html[data-motion-paused=true] *::after {
  animation: none !important;
  transition: none !important;
}
@media (max-width:760px) {
  .hero h1.pixel-heading {
    max-width: 450px;
  }
  .split-timeline {
    gap: 4px;
  }
  .split-event {
    font-size: .65rem;
  }
  .case-header .work-in-progress {
    margin: 10px 0 0;
    display: block;
  }
}
@media (max-width:480px) {
  .hero-figure .motion-toggle {
    margin-left: 0;
  }
  .sage-svg text {
    font-size: 20px;
  }
  .sage-svg .sage-column-label {
    font-size: 16px;
  }
  .csr-readout {
    padding: 10px;
  }
  .csr-readout code {
    font-size: .72rem;
  }
  .baseline-result {
    padding: 18px;
  }
  .split-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .split-event {
    font-size: .75rem;
  }
  .technical-table {
    font-size: .8rem;
  }
  .technical-table th,
  .technical-table td {
    padding: 10px 8px;
  }
}
@media print {
  .pixel-name {
    fill: #202322;
  }
  .motion-toggle {
    display: none;
  }
}
