/* Palette and spacing live here. Personal content lives in index.html. */
:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --surface: #eeeee5;
  --ink: #232f2a;
  --muted: #6b736a;
  --green: #315d4e;
  --green-dark: #23483b;
  --line: #d9dcd1;
  --accent: #b8c8a1;
  --panel: #eaece2;
  --card: #fafaf5;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18221e;
  --surface: #202e27;
  --ink: #e9ece3;
  --muted: #a8b6a9;
  --green: #b5d0ad;
  --green-dark: #d0e4c6;
  --line: #39473d;
  --accent: #819b76;
  --panel: #23342b;
  --card: #1c2922;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #18221e;
    --surface: #202e27;
    --ink: #e9ece3;
    --muted: #a8b6a9;
    --green: #b5d0ad;
    --green-dark: #d0e4c6;
    --line: #39473d;
    --accent: #819b76;
    --panel: #23342b;
    --card: #1c2922;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}
::selection {
  background: #c9d6b5;
  color: #1f3a2a;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
svg {
  display: block;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}
.eyebrow,
.small-mono,
.card-kicker,
.term,
.portrait-caption {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 1.1px;
}
.eyebrow {
  color: var(--green);
}
.accent {
  color: var(--green);
}
.js-only {
  display: none;
}
.js .js-only {
  display: flex;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px 20px;
  background: var(--green);
  color: var(--paper);
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 20;
}
.header-inner {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.wordmark {
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.wordmark-dot {
  color: var(--green);
  font-size: 28px;
}
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 12px;
}
.header-inner nav a {
  position: relative;
  padding-block: 12px;
}
.header-inner nav a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.2s;
}
.header-inner nav a:hover::after,
.header-inner nav a[aria-current]::after {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.header-contact {
  display: flex;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 15px;
  font-size: 12px;
}
.header-contact:hover {
  border-color: var(--green);
}
.menu-toggle {
  background: transparent;
  padding: 8px;
  gap: 12px;
  font-size: 12px;
}
.js .menu-toggle {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 550px) minmax(0, 420px);
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding-block: 58px 58px;
}
.hero-portrait {
  width: min(100%, 420px);
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border-radius: 4px;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .hero-portrait {
    width: min(100%, 360px);
    justify-self: center;
  }
}
.hero .eyebrow {
  font-size: 9px;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(55px, 5.55vw, 83px);
  line-height: 1.06;
  letter-spacing: -3.6px;
  margin: 26px 0;
}
.hero h1 em {
  color: var(--green);
  font-weight: 400;
}
.hero-intro {
  max-width: 425px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.button {
  padding: 12px 19px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--green);
  color: var(--paper);
}
.primary:hover {
  background: var(--green-dark);
}
.text-link {
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-affiliation {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
}
.hero-affiliation p {
  font-size: 10px;
  line-height: 1.6;
}
.hero-affiliation p span {
  color: var(--green);
}
.affiliation-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -8px;
  color: var(--green);
  width: 30px;
  position: relative;
}
.affiliation-mark span {
  font-size: 30px;
  position: relative;
  top: -4px;
  left: -3px;
}
.brain-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.figure-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  gap: 10px;
}
.figure-topline .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.live-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  white-space: nowrap;
  display: flex;
  gap: 5px;
  align-items: center;
}
.live-tag > span {
  font-size: 17px;
  line-height: 1;
}
.canvas-wrap {
  position: relative;
  min-height: 270px;
}
#brain-physics {
  display: block;
  width: 100%;
  height: 270px;
  min-height: 270px;
  max-height: 350px;
}
.canvas-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  pointer-events: none;
}
.canvas-label-loss {
  top: 22px;
  left: 24px;
}
.canvas-label-space {
  bottom: 6px;
  right: 24px;
}
.plot-readout {
  display: flex;
  gap: 20px;
  position: absolute;
  bottom: 6px;
  left: 24px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}
.plot-readout b {
  font-weight: 400;
  color: var(--green);
}
.brain-panel figcaption {
  padding: 23px 24px 16px;
}
.figure-description h2 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.45px;
}
.figure-description p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.brain-panel .figure-description p {
  line-height: 1.7;
  max-width: 400px;
}
.brain-panel .figure-note {
  font-size: 9px;
  line-height: 1.7;
  margin-top: 15px;
}
.brain-panel .canvas-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}
.spin-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.spin-readout .small-mono {
  font-size: 7px;
  letter-spacing: 0.3px;
}
.spin-readout b {
  font-weight: 400;
  color: var(--green);
  margin-left: 7px;
}
.simulation-controls {
  align-items: center;
  gap: 9px;
  margin-top: 17px;
}
.rate-control {
  flex: 1;
  padding-right: 14px;
}
.rate-control label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2px;
  color: var(--muted);
  margin-bottom: 4px;
}
.rate-control output {
  color: var(--green);
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line);
  display: block;
  margin: 9px 0;
  cursor: pointer;
  accent-color: var(--green);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--panel);
  background: var(--green);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
input[type="range"]::-moz-range-thumb {
  border: 2px solid var(--panel);
  background: var(--green);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.icon-button {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--line);
}
.figure-note {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1px;
  color: var(--muted);
  margin-top: 14px;
}
.section {
  padding-block: 61px 70px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.section h2 {
  font-family: var(--serif);
  font-size: 37px;
  line-height: 1.2;
  letter-spacing: -1.4px;
  margin-top: 12px;
}
.section-heading > .text-link {
  margin-bottom: 3px;
}
.research-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.filter-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter {
  font-size: 10px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 3px;
  line-height: 1.6;
}
.filter.active {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}
.filter:not(.active):hover {
  border-color: var(--green);
}
.small-mono {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.research-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.research-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card-art {
  height: 162px;
  position: relative;
  overflow: hidden;
}
.card-art svg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
}
.research-card:hover .card-art svg {
  transform: scale(1.05);
}
.card-art svg text {
  font-family: var(--mono);
  font-size: 10px;
}
.art-modular {
  background: #e7ebdf;
  color: #68866a;
}
.art-manifold {
  background: #e4eae6;
  color: #5d8274;
}
.art-language {
  background: #eee9df;
  color: #9a8665;
}
.art-number {
  position: absolute;
  top: 14px;
  left: 17px;
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.65;
}
.card-body {
  padding: 23px 23px 0;
}
.card-kicker {
  font-size: 7px;
  letter-spacing: 0.9px;
  color: var(--muted);
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 12px 0 14px;
}
.card-body > p:not(.card-kicker),
.card-body details > p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.card-body details {
  margin-top: 23px;
}
.card-body summary {
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.card-body details > p {
  padding-bottom: 20px;
}
.card-body details[open] summary span,
.earlier-teaching[open] > summary span {
  transform: rotate(45deg);
}
summary span {
  transition: transform 0.2s;
}
summary::-webkit-details-marker {
  display: none;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 100px;
}
.about h2 {
  font-size: 45px;
  line-height: 1.12;
  letter-spacing: -1.6px;
}
.portrait-wrap {
  width: 190px;
  margin-top: 28px;
}
.portrait-wrap img {
  width: 190px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
}
.portrait-caption {
  font-size: 7px;
  letter-spacing: 0.4px;
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.about-copy {
  padding-top: 25px;
}
.about-copy .large-copy {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.about-copy > p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 15px;
}
.about-copy a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.about-copy a:hover {
  text-decoration-color: var(--green);
}
.toolkit {
  margin-top: 30px;
}
.toolkit h3 {
  margin-bottom: 12px;
  font-size: 9px;
}
.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  gap: 15px;
  font-size: 10px;
}
.skill-row > span {
  color: var(--muted);
}
.skill-row p > span {
  color: var(--accent);
  padding-inline: 4px;
}
.section-aside {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}
.teaching-list {
  border-top: 1px solid var(--line);
}
.teaching-row {
  display: grid;
  grid-template-columns: 155px 1fr 125px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.term {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.6px;
}
.teaching-row h3 {
  font-size: 13px;
  font-weight: 400;
}
.teaching-type {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.earlier-teaching > summary {
  padding-block: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  font-size: 10px;
  color: var(--green);
}
.earlier-teaching .teaching-row:first-of-type {
  border-top: 1px solid var(--line);
}
.off-clock {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 100px;
}
.off-clock h2 {
  font-size: 45px;
  line-height: 1.12;
  letter-spacing: -1.6px;
}
.off-clock-intro > p:last-child {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.interests {
  padding-top: 12px;
}
.interest {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
}
.interest:first-child {
  padding-top: 0;
}
.interest:last-child {
  border: 0;
}
.interest-icon {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
  color: var(--green);
  width: 30px;
  flex-shrink: 0;
  text-align: center;
}
.dice-icon {
  font-family: var(--sans);
  font-size: 27px;
}
.interest h3 {
  font-size: 14px;
  margin-bottom: 3px;
}
.interest p {
  font-size: 10px;
  color: var(--muted);
}
.interest-arrow {
  margin-left: auto;
  color: var(--green);
}
a.interest:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-section {
  background: #284b3f;
  color: #f1f3e8;
  padding-block: 65px 73px;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 195px;
  gap: 70px;
  align-items: end;
}
.contact-section .eyebrow {
  color: #c5d4b3;
}
.contact-section h2 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-top: 19px;
}
.contact-section h2 span {
  color: #b7cca0;
}
.contact-section p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: #bccbc0;
  margin-top: 22px;
}
.email-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 27px;
  flex-wrap: wrap;
}
.email-row > a {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.6px;
  display: flex;
  gap: 35px;
  align-items: center;
}
.email-row > a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.copy-email {
  background: transparent;
  color: #c5d4b3;
  padding: 5px;
}
.copy-email svg {
  width: 18px;
  height: 18px;
}
.copy-status {
  font-size: 10px;
  color: #c5d4b3;
}
.contact-links {
  display: flex;
  flex-direction: column;
}
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #4a6759;
  font-size: 11px;
  padding: 11px 0;
}
.contact-links a:hover {
  color: #c5d4b3;
}
.site-footer {
  padding-block: 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 8px;
  color: var(--muted);
}
.footer-note {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}
.footer-inner > a {
  display: flex;
  gap: 10px;
}
.footer-inner > a:hover {
  color: var(--green);
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 100px;
  }
  .hero h1 {
    font-size: 86px;
  }
  .hero-intro {
    font-size: 16px;
  }
  .canvas-wrap {
    min-height: 320px;
  }
  #brain-physics {
    height: 320px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 72px);
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 62px;
    letter-spacing: -3px;
  }
  .hero .eyebrow {
    font-size: 7.5px;
  }
  .hero-intro {
    font-size: 13px;
  }
  .hero-links {
    gap: 18px;
  }
  .button {
    padding: 12px 15px;
    gap: 18px;
  }
  .text-link {
    font-size: 10px;
  }
  .header-inner {
    gap: 22px;
  }
  .header-inner nav {
    gap: 20px;
  }
  .header-actions {
    gap: 12px;
  }
  .card-body {
    padding: 20px 18px 0;
  }
  .card-body h3 {
    font-size: 24px;
  }
  .card-kicker {
    font-size: 6.7px;
  }
  .about,
  .off-clock {
    gap: 60px;
  }
  .section h2 {
    font-size: 33px;
  }
  .about h2,
  .off-clock h2 {
    font-size: 41px;
  }
  .figure-topline {
    padding: 18px;
  }
  .figure-topline .eyebrow {
    font-size: 7px;
  }
  .brain-panel figcaption {
    padding: 20px 18px 14px;
  }
  .canvas-wrap,
  #brain-physics {
    min-height: 246px;
    height: 246px;
  }
  .figure-description h2 {
    font-size: 18px;
  }
  .figure-note {
    font-size: 6.5px;
  }
  .skill-row {
    grid-template-columns: 120px 1fr;
  }
  .research-grid {
    gap: 15px;
  }
  .hero-affiliation {
    margin-top: 32px;
  }
}
@media (max-width: 820px) {
  .container {
    width: calc(100% - 48px);
  }
  .header-inner {
    height: 74px;
    gap: 15px;
  }
  .wordmark {
    font-size: 21px;
  }
  .header-inner nav {
    gap: 16px;
  }
  .header-inner nav a {
    font-size: 10px;
  }
  .header-contact {
    font-size: 10px;
    padding: 7px 10px;
    gap: 10px;
  }
  .header-actions {
    gap: 6px;
  }
  .hero {
    padding-block: 54px;
    gap: 28px;
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 49px;
    letter-spacing: -2.8px;
  }
  .hero .eyebrow {
    font-size: 6.5px;
    gap: 6px;
    letter-spacing: 0.3px;
  }
  .hero-intro {
    font-size: 12px;
  }
  .hero-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .button {
    font-size: 11px;
  }
  .hero-affiliation {
    margin-top: 28px;
  }
  .hero-affiliation p {
    font-size: 8px;
  }
  .figure-topline {
    padding: 15px 12px;
  }
  .figure-topline .eyebrow {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .live-tag {
    font-size: 7px;
  }
  .canvas-wrap,
  #brain-physics {
    min-height: 230px;
    height: 230px;
  }
  .brain-panel figcaption {
    padding: 16px 14px 12px;
  }
  .figure-description h2 {
    font-size: 16px;
  }
  .figure-description p {
    font-size: 9px;
  }
  .figure-note {
    font-size: 6px;
    line-height: 1.7;
  }
  .canvas-label {
    font-size: 7px;
  }
  .plot-readout {
    font-size: 6px;
    gap: 10px;
  }
  .canvas-label-loss {
    left: 14px;
  }
  .canvas-label-space {
    right: 14px;
  }
  .plot-readout {
    left: 14px;
  }
  .simulation-controls {
    margin-top: 14px;
  }
  .rate-control label {
    font-size: 8px;
  }
  .icon-button {
    width: 29px;
    height: 29px;
  }
  .section {
    padding-block: 45px 50px;
  }
  .section h2 {
    font-size: 29px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading > .text-link {
    margin-top: 32px;
    font-size: 9px;
  }
  .research-grid {
    gap: 12px;
  }
  .card-body {
    padding: 18px 13px 0;
  }
  .card-body h3 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  .card-kicker {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .card-body > p:not(.card-kicker),
  .card-body details > p {
    font-size: 10px;
  }
  .card-art {
    height: 140px;
  }
  .card-body details {
    margin-top: 18px;
  }
  .card-body summary {
    font-size: 9px;
  }
  .about,
  .off-clock {
    gap: 38px;
    grid-template-columns: 1fr 1.3fr;
  }
  .about h2,
  .off-clock h2 {
    font-size: 36px;
  }
  .about-copy .large-copy {
    font-size: 18px;
  }
  .about-copy > p {
    font-size: 11px;
  }
  .skill-row {
    font-size: 9px;
    grid-template-columns: 100px 1fr;
    gap: 8px;
  }
  .teaching-row {
    grid-template-columns: 120px 1fr 105px;
    gap: 15px;
  }
  .teaching-row h3 {
    font-size: 12px;
  }
  .teaching-type {
    font-size: 9px;
  }
  .interest {
    gap: 13px;
  }
  .interest h3 {
    font-size: 13px;
  }
  .interest p {
    font-size: 9px;
  }
  .contact-section h2 {
    font-size: 40px;
  }
  .contact-inner {
    grid-template-columns: 1fr 160px;
    gap: 40px;
  }
  .email-row > a {
    font-size: 21px;
  }
  .footer-note {
    display: none;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 90px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 70px;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-contact {
    padding: 6px 10px;
  }
  .js .menu-toggle {
    display: flex;
    margin-left: 10px;
    order: 3;
    align-items: center;
    font-size: 10px;
    padding: 5px;
  }
  .js .header-inner nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 15px 24px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px #00000008;
  }
  .js .header-inner nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-inner nav a {
    font-size: 13px;
    padding: 10px;
  }
  .header-inner nav a::after {
    display: none;
  }
  .header-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }
  :root:not(.js) .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .js .header-inner {
    flex-wrap: nowrap;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 43px 40px;
    gap: 38px;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 0.55px;
  }
  .hero h1 {
    font-size: clamp(49px, 11vw, 68px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-block: 23px;
  }
  .hero-intro {
    font-size: 13px;
    max-width: 390px;
    line-height: 1.9;
  }
  .hero-links {
    gap: 23px;
    margin-top: 25px;
  }
  .text-link {
    font-size: 11px;
  }
  .hero-affiliation {
    margin-top: 28px;
  }
  .hero-affiliation p {
    font-size: 9px;
  }
  .brain-panel {
    width: 100%;
    max-width: 500px;
    justify-self: center;
  }
  .figure-topline {
    padding: 18px;
  }
  .figure-topline .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .live-tag {
    font-size: 8px;
  }
  .canvas-wrap {
    min-height: 248px;
  }
  #brain-physics {
    height: 248px;
    min-height: 248px;
    max-height: 310px;
  }
  .canvas-label {
    font-size: 8px;
  }
  .plot-readout {
    font-size: 7px;
    gap: 18px;
  }
  .canvas-label-loss {
    left: 19px;
  }
  .canvas-label-space {
    right: 19px;
  }
  .plot-readout {
    left: 19px;
  }
  .brain-panel figcaption {
    padding: 20px 19px 14px;
  }
  .figure-description h2 {
    font-size: 20px;
  }
  .figure-description p {
    font-size: 10px;
  }
  .figure-note {
    font-size: 6.5px;
  }
  .rate-control label {
    font-size: 9px;
  }
  .icon-button {
    width: 33px;
    height: 33px;
  }
  .section {
    padding-block: 39px 43px;
  }
  .section-heading {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .section-heading > .text-link {
    margin-top: 0;
    font-size: 11px;
  }
  .section h2 {
    font-size: 31px;
    letter-spacing: -1.1px;
    max-width: 340px;
  }
  .section .eyebrow {
    font-size: 9px;
  }
  .research-toolbar {
    margin-bottom: 19px;
  }
  .research-toolbar > .small-mono {
    display: none;
  }
  .filter {
    font-size: 9px;
    padding: 7px 10px;
  }
  .filter-group {
    gap: 6px;
  }
  .research-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .research-card {
    display: grid;
    grid-template-columns: 110px 1fr;
  }
  .card-art {
    height: 100%;
    min-height: 260px;
  }
  .card-art svg {
    position: absolute;
    width: 270px;
    max-width: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .research-card:hover .card-art svg {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.05);
  }
  .art-number {
    left: 12px;
  }
  .card-art svg text {
    display: none;
  }
  .card-body {
    padding: 22px 19px 0;
  }
  .card-kicker {
    font-size: 6.5px;
    letter-spacing: 0.6px;
  }
  .card-body h3 {
    font-size: 24px;
    margin-top: 13px;
  }
  .card-body > p:not(.card-kicker),
  .card-body details > p {
    font-size: 11px;
  }
  .card-body summary {
    font-size: 10px;
    padding-block: 13px;
  }
  .about,
  .off-clock {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-heading {
    display: grid;
    grid-template-columns: 1fr 105px;
    column-gap: 15px;
    align-items: start;
  }
  .about-heading > .eyebrow {
    grid-column: 1;
  }
  .about h2 {
    font-size: 35px;
    margin-top: 14px;
    grid-column: 1;
  }
  .portrait-wrap {
    grid-column: 2;
    grid-row: 1/3;
    margin-top: 0;
    width: 105px;
  }
  .portrait-wrap img {
    width: 105px;
    height: auto;
  }
  .portrait-caption {
    font-size: 5px;
    letter-spacing: 0;
    line-height: 1.6;
  }
  .about-copy {
    padding: 0;
  }
  .about-copy .large-copy {
    font-size: 20px;
  }
  .about-copy > p {
    font-size: 13px;
  }
  .toolkit {
    margin-top: 26px;
  }
  .skill-row {
    font-size: 10px;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    padding-block: 11px;
  }
  .teaching .section-heading {
    flex-direction: row;
    align-items: end;
  }
  .section-aside {
    font-size: 8px;
    min-width: 85px;
  }
  .teaching h2 {
    max-width: 230px;
  }
  .teaching-row {
    grid-template-columns: 85px 1fr;
    gap: 13px;
    padding-block: 18px;
  }
  .teaching-type {
    display: none;
  }
  .term {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .teaching-row h3 {
    font-size: 12px;
    line-height: 1.6;
  }
  .off-clock h2 {
    font-size: 36px;
  }
  .off-clock-intro > p:last-child {
    font-size: 12px;
    margin-top: 16px;
  }
  .off-clock-intro > p:last-child br {
    display: none;
  }
  .interests {
    padding-top: 0;
  }
  .interest {
    padding-block: 20px;
    gap: 18px;
  }
  .interest h3 {
    font-size: 14px;
  }
  .interest p {
    font-size: 10px;
  }
  .contact-section {
    padding-block: 45px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-section h2 {
    font-size: 35px;
    letter-spacing: -1.1px;
  }
  .contact-section p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.9;
    margin-top: 20px;
  }
  .contact-section p br {
    display: none;
  }
  .email-row {
    gap: 14px;
    margin-top: 23px;
  }
  .email-row > a {
    font-size: 22px;
    gap: 23px;
  }
  .contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .contact-links a {
    font-size: 11px;
  }
  .site-footer {
    padding-block: 20px;
  }
  .footer-inner {
    font-size: 7px;
    gap: 12px;
  }
}
@media (max-width: 360px) {
  .header-contact {
    display: none;
  }
  .header-inner {
    gap: 8px;
  }
  .js .menu-toggle {
    margin-left: 0;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2.4px;
  }
  .research-card {
    grid-template-columns: 78px 1fr;
  }
  .card-body {
    padding-inline: 16px;
  }
  .skill-row {
    grid-template-columns: 110px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
