@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #101f19;
  --pine: #173c30;
  --paper: #f8f8f2;
  --mint: #d6f0e4;
  --rule: rgba(27, 47, 34, .36);
  --tile: clamp(80px, 7.6vw, 118px);
  --cut-top: 85%;
  --cut-middle: 44%;
  --cut-bottom: 33%;
  --display: "Cinzel", "Bodoni 72", "Didot", Georgia, serif;
  --serif: "Instrument Serif", "Baskerville", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.3rem, 5.7vw, 6.75rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.4rem; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background: #dbe9d6;
}
/* Both sides of the diagonal repeat the same equilateral module, on a single origin. */
.facade {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.facade::before, .facade-panel, .facade-panel::before, .facade::after {
  content: "";
  position: absolute;
  inset: 0;
}
.facade::before, .facade-panel::before {
  background: url("assets/lattice.svg") 0 0 / var(--tile) auto repeat;
}
.facade::before {
  opacity: .48;
  mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.18) 8%, rgba(0,0,0,.17) 34%, #000 54%);
}
.facade-panel {
  background: #c2d8c3;
  clip-path: polygon(var(--cut-top) 0, 100% 0, 100% 100%, var(--cut-bottom) 100%, var(--cut-middle) 53%);
}
.facade-panel::before {
  opacity: .72;
  mask-image: linear-gradient(90deg, #000 38%, rgba(0,0,0,.44) 54%, rgba(0,0,0,.42) 84%, #000 96%);
}
.facade::after {
  background: #829783;
  clip-path: polygon(calc(var(--cut-top) - 1px) 0, calc(var(--cut-top) + 1px) 0,
    calc(var(--cut-middle) + 1px) 53%, calc(var(--cut-bottom) + 1px) 100%,
    calc(var(--cut-bottom) - 1px) 100%, calc(var(--cut-middle) - 1px) 53%);
}
a { text-decoration: none; color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #17765a; outline-offset: 5px; }
::selection { color: #10241b; background: #ace3c7; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 1650px); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: 8px; left: 8px; padding: .8rem 1rem; background: var(--paper); transform: translateY(-160%); z-index: 30; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(224,236,217,.94); border-bottom: 1px solid #475c48; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(7.25rem, 23vw, 23rem);
  clip-path: polygon(0 0,100% 0,calc(100% - 2.7rem) 100%,0 100%);
  background: url("assets/lattice.svg") 0 0 / var(--tile) auto repeat;
  opacity: .39;
  pointer-events: none;
}
.bar { position: relative; display: flex; align-items: center; height: 4.65rem; gap: 2.9rem; }
/* The eye blinks within the slanted face of the cube. */
.home-mark { display: inline-grid; width: 3rem; height: 3rem; place-items: center; flex: none; border-radius: 4px; }
.cube-mark { display: block; width: 2.75rem; height: 2.75rem; overflow: visible; }
.cube-eye { transform-box: fill-box; transform-origin: center; }
@keyframes cube-blink {
  0%, 25%, 68%, 100% { transform: scaleY(1); }
  43%, 50% { transform: scaleY(.1); }
}
html[data-motion="on"] .home-mark:is(:hover, :focus-visible, :active) .cube-eye {
  animation: cube-blink .62s ease-in-out;
}
.navigation { margin-left: auto; display: flex; gap: 2.05rem; height: 100%; align-items: center; }
.navigation a { position: relative; display: grid; align-items: center; height: 100%; font-size: .91rem; }
.navigation a::after { content: ""; position: absolute; bottom: 23%; height: 1px; inset-inline: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .24s; }
.navigation a:hover::after, .navigation a:focus-visible::after { transform: scaleX(1); }
.github { display: inline-flex; gap: .6rem; align-items: center; justify-content: center; border: 1px solid #405642; border-radius: 0; padding: .61rem 1.08rem; font-size: .9rem; font-weight: 500; transition: background .25s, border-color .25s; }
.github svg { width: 1rem; height: 1rem; }
.github:hover { background: #c6dcca; border-color: var(--ink); }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(1.5rem, 3.4vh, 3rem);
  text-align: center;
}
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: .65rem; margin: 0 0 .62rem; font-size: .76rem; font-weight: 500; color: #27483b; }
.hairline { display: inline-block; height: 1px; width: 2.1rem; background: currentColor; }
.dot { font-weight: 400; color: #638273; }
h1,h2,h3,figure,p { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; }
h1 {
  font-family: var(--display);
  font-weight: 620;
  font-size: clamp(2.55rem, min(15vw, 15vh), 9.3rem);
  font-optical-sizing: auto;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
#name { font-size: clamp(2.35rem, min(13.5vw, 15vh), 9.3rem); }
.profile-portrait {
  position: relative;
  float: right;
  width: clamp(5.3rem, 15vw, 9.3rem);
  aspect-ratio: 5 / 7;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: .15rem 0 .8rem clamp(.85rem, 2.6vw, 2rem);
  border: 4px solid #faf7eb;
  outline: 1px solid #a5b2a2;
  background: #e8ece3;
  box-shadow: 0 3px 8px #20362920;
}
#name .name-letter {
  display: inline-block;
  transform-origin: 50% 84%;
}
html[data-motion="on"] #name .name-letter {
  animation: name-wave 6.1s ease-in-out infinite;
  animation-delay: calc(-.75s + var(--i) * .17s);
}
@keyframes name-wave {
  0%, 70%, 100% { transform: translateY(0) rotate(0); color: var(--ink); }
  21% { transform: translateY(-.095em) rotate(-2deg); color: #294737; }
  48% { transform: translateY(.035em) rotate(.9deg); color: var(--ink); }
}
.profile-copy {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  width: min(100%, 54rem);
  text-align: start;
  color: #283c30;
}
.profile-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.85rem max(-3vw, -2rem) -1.1rem;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 54%, rgba(227, 237, 219, .88) 0%, rgba(227, 237, 219, .69) 48%, rgba(227, 237, 219, 0) 76%);
}
.profile-copy .education {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.1rem, .99rem + .38vw, 1.28rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.profile-copy p:last-child {
  margin-top: .82em;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.18rem + .58vw, 1.75rem);
  line-height: 1.24;
  color: #244933;
}
.profile-copy a {
  color: #154733;
  text-decoration-line: underline;
  text-decoration-thickness: .055em;
  text-decoration-color: #68856d;
  text-underline-offset: .16em;
  text-decoration-skip-ink: auto;
}
.profile-copy a:is(:hover, :focus-visible) { text-decoration-color: currentColor; text-decoration-thickness: .09em; }
.bio {
  clear: both;
  position: relative;
  z-index: 1;
  margin: clamp(1.05rem, 1.6vw, 1.35rem) 0 0;
  font-family: var(--serif);
  font-size: min(6.25cqi, 3.05rem);
  font-weight: 400;
  line-height: 1.075;
  letter-spacing: -.018em;
  white-space: nowrap;
  color: #152e20;
}
.bio strong { font-style: italic; font-weight: 400; color: #204832; }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.7rem; margin-top: 1.15rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; padding: .88rem 1.35rem; background: var(--ink); border: 1px solid var(--ink); color: white; border-radius: 0; clip-path: polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%); font-size: .93rem; transition: background .22s, transform .22s, box-shadow .22s; }
.primary:focus-visible { clip-path: none; }
.primary:hover { background: #274e3d; box-shadow: 4px 4px 0 rgba(26,57,42,.16); transform: translate(-1px,-1px); }
.text-link { font-size: .93rem; border-bottom: 1px solid currentColor; padding-block: .24rem; transition: color .2s; }
.text-link:hover { color: #357052; }
.word-scene {
  position: relative;
  isolation: isolate;
  width: min(100%, 40rem);
  margin: .75rem auto 1.25rem;
  background: radial-gradient(ellipse at 50% 51%, #e7eddc 19%, rgba(231,237,220,.88) 48%, transparent 74%);
}
.type-stage { position: relative; width: 100%; aspect-ratio: 1000 / 1120; }
.night-window, [data-type-stream], .type-lettering { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.typewriter-assembly { transform-origin: 460px 470px; transform: scale(.8); }
.typed-lines { font: 28px var(--mono); fill: #223226; }

.motion-toggle { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; margin-inline: -1.8rem -2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.motion-toggle:hover { background: rgba(35,76,53,.08); }
.motion-glyph { width: 8px; height: 11px; border-inline: 2px solid var(--pine); }
.motion-toggle[data-paused="true"] .motion-glyph { border: 0; background: var(--pine); clip-path: polygon(0 0,100% 50%,0 100%); }
.research-sequence { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(2.8rem, 4.8vw, 5.2rem); align-items: start; padding-top: clamp(2rem, 3.8vw, 4rem); padding-bottom: clamp(2.75rem, 5vw, 5rem); }
.activity, .papers { min-width: 0; }
h2 {
  font: 535 clamp(1.85rem, 2.9vw, 3.25rem)/1.06 var(--display);
  letter-spacing: -.022em;
  text-transform: uppercase;
  margin-bottom: clamp(1.2rem,2vw,2rem);
}
h2 em { font: inherit; }
.research-sequence section:target h2 em { text-decoration: underline; text-decoration-color: #81aa93; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.foot-inner { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; min-height: 6.2rem; padding-block: 1.3rem; }
.foot-inner::before { position: absolute; content: ""; height: 1px; inset: 0 var(--gutter) auto; background: var(--rule); }
.foot-name { font: 2.1rem/1 var(--serif); letter-spacing: -.025em; }
.foot-inner p { margin-right: auto; font-size: .9rem; color: #466051; }
.foot-inner .text-link { font-size: .88rem; }

html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *,html[data-motion="off"] *::after { transition-duration: 0s !important; }

@media (max-width: 960px) {
  :root { --gutter: clamp(1.5rem,4vw,3rem); }
}
@media (max-width: 710px) {
  .typewriter-assembly { transform: scale(.9); }
  :root { --tile: 78px; --cut-top: 93%; --cut-middle: 95%; --cut-bottom: 87%; }
  .facade::before { opacity: .4; mask-image: linear-gradient(90deg,#000,rgba(0,0,0,.20) 8%,rgba(0,0,0,.20) 75%,#000); }
  .facade-panel::before { opacity: .66; }
  html { scroll-padding-top: 4.1rem; }
  .bar { height: 3.65rem; gap: 1.2rem; }
  .home-mark { width: 2.75rem; height: 2.75rem; }
  .cube-mark { width: 2.35rem; height: 2.35rem; }
  .navigation { gap: 1.15rem; }
  .navigation a { font-size: .86rem; }
  .github { width: 2.3rem; height: 2.3rem; padding: 0; }
  .github span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .hero-inner { padding-top: 1.8rem; }
  .word-scene { width: min(100vw - .5rem, 40rem); margin-inline: 0; margin-block: .95rem 1.1rem; }

  .eyebrow { margin-bottom: .6rem; gap: .5rem; }
  .hero-actions { gap: 1.3rem; margin-top: 1rem; }
  .primary { padding: .74rem 1.05rem; }
  .motion-toggle { width: 2.3rem; height: 2.3rem; margin-inline: -.66rem; }
  .research-sequence { padding-top: 1.85rem; padding-bottom: 2.25rem; row-gap: 2.55rem; }
  h2 { font-size: clamp(1.85rem, 6.9vw, 2.8rem); }
  .foot-inner { gap: 1rem; }
}
@media (max-width: 420px) {
  :root { --gutter: 1.15rem; }
  .bar { gap: .95rem; }
  .navigation { gap: .85rem; }
  .foot-inner { column-gap: .75rem; }
  .foot-inner p { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) { scroll-behavior: auto; }
  html:not([data-motion="on"]) * { transition-duration: 0s !important; }
}
