@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --surface: #fffefa;
  --soft: #efefe8;
  --text: #242a25;
  --muted: #696e64;
  --line: #dedfd5;
  --accent: #b64d2a;
  --orange: #cb603a;
  --dark: #202d25;
  --on-dark: #f0f0e5;
  --header: rgba(247, 247, 242, 0.93);
  --mono: "IBM Plex Mono", monospace;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --container: 1180px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161d19;
  --surface: #1d2720;
  --soft: #202a22;
  --text: #eeeee4;
  --muted: #adb4a7;
  --line: #374238;
  --accent: #f0966f;
  --orange: #eb926c;
  --header: rgba(22, 29, 25, 0.94);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
img,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  border: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
em {
  font-family: inherit;
}
::selection {
  background: #eebc98;
  color: #202d25;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:focus-visible,
input:focus-visible {
  outline-offset: 4px;
}
.container {
  width: min(var(--container), calc(100% - 96px));
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.075em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.orange {
  color: var(--orange);
}
.js-only {
  display: none !important;
}
.enhanced .js-only {
  display: flex !important;
}
[hidden] {
  display: none !important;
}
.section {
  padding-block: 104px;
}
.section-index {
  margin-bottom: 20px;
  color: var(--accent);
}
h2 {
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.15;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  padding: 12px 20px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.monogram {
  font-size: 30px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.16em;
  margin-right: 5px;
}
.monogram > span {
  font-weight: 400;
}
.wordmark-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: -8px;
}
.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  font-size: 12px;
  color: var(--muted);
  position: relative;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}
.site-nav a.active:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.theme-toggle {
  width: 30px;
  height: 36px;
  padding: 6px;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.resume-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  padding: 8px 14px;
  transition: background 0.2s;
}
.resume-nav:hover {
  background: var(--soft);
}
.nav-toggle {
  display: none !important;
}
/* Hero and interactive field */
.hero {
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  align-items: center;
  gap: 76px;
  padding-top: 80px;
  padding-bottom: 73px;
}
.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.status-dot {
  height: 7px;
  width: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 9%, transparent);
}
.eyebrow-separator {
  margin-inline: 3px;
  color: var(--line);
}
h1 {
  font-size: clamp(60px, 6.3vw, 86px);
  line-height: 1.04;
  margin: 28px 0 26px;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: normal;
  color: inherit;
  letter-spacing: inherit;
}
.hero-intro {
  max-width: 400px;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 29px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 13px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-dark {
  color: var(--bg);
  background: var(--text);
}
.button-dark:hover {
  background: var(--accent);
  color: #fff;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 500;
}
.text-link span {
  transition: transform 0.2s;
}
.text-link:hover span {
  transform: translate(2px, -2px);
}
.text-link:hover {
  color: var(--accent);
}
.hero-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 36px;
}
.little-line {
  width: 24px;
  height: 1px;
  background: var(--muted);
}
.hero-lab {
  padding-top: 14px;
  min-width: 0;
}
.lab-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--muted);
}
.lab-index {
  color: var(--accent);
}
.flow-panel {
  background: #202d25;
  color: #ecede2;
  border: 1px solid #39463b;
  border-radius: 8px;
  box-shadow: 0 16px 40px #17201708;
  overflow: hidden;
}
.flow-heading {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff12;
  font-size: 12px;
}
.flow-heading > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-heading .mono {
  font-size: 8px;
  color: #b0b7a7;
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #eba275;
  border-radius: 50%;
}
.flow-canvas-wrap {
  position: relative;
  height: 305px;
  margin-inline: 13px;
  background-image:
    linear-gradient(#f1f2de06 1px, transparent 1px),
    linear-gradient(90deg, #f1f2de06 1px, transparent 1px);
  background-size: 30px 30px;
}
#flow-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.axis-label {
  position: absolute;
  color: #a2ad98;
  font-size: 11px;
}
.axis-top {
  top: 13px;
  left: 50%;
}
.axis-bottom {
  bottom: 10px;
  right: 10px;
}
.flow-controls {
  padding: 16px 20px 18px;
  flex-direction: column;
  border-top: 1px solid #ffffff12;
}
.flow-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #c6cbbc;
}
.flow-control-label output {
  color: #eaa477;
  letter-spacing: 0;
}
input[type="range"] {
  appearance: none;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--accent);
  width: 100%;
  margin: 18px 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
#flow-time {
  background: #5b6755;
}
#flow-time::-webkit-slider-thumb {
  background: #f0b58d;
  border-color: #202d25;
  width: 14px;
  height: 14px;
}
#flow-time::-moz-range-thumb {
  background: #f0b58d;
  border-color: #202d25;
}
.flow-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: #adb7a3;
}
.flow-scale button {
  padding: 3px 8px;
  background: transparent;
  border: 1px solid #ffffff32;
  color: #dedfd0;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
}
.flow-scale button:hover {
  background: #ffffff10;
}
.lab-caption {
  font-size: 11px;
  line-height: 1.7;
  margin: 16px 0 0 22px;
  position: relative;
}
.lab-caption > span:last-child {
  font-size: 10px;
  opacity: 0.85;
}
.caption-mark {
  position: absolute;
  left: -22px;
  font-size: 17px;
  color: var(--accent);
}
.canvas-fallback {
  position: absolute;
  inset: 70px 0 auto;
  text-align: center;
  color: #e9eadf;
}
.practice-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 26px;
}
.strip-label {
  margin-right: auto;
  color: var(--muted);
  font-size: 9px;
}
.practice-strip > span:not(.mono) {
  font-size: 14px;
}
.strip-cross {
  color: #a0a596;
  font-weight: 400;
}
.strip-arrow {
  margin-left: auto;
  color: var(--accent);
}
/* Selected projects */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
  gap: 24px;
}
.section-description {
  font-size: 13px;
  line-height: 1.8;
  max-width: 300px;
}
.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 25px;
}
.filters {
  gap: 6px;
  flex-wrap: wrap;
}
.filters button {
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid transparent;
  transition: background 0.2s;
}
.filters button span {
  font-size: 9px;
  opacity: 0.7;
  margin-left: 9px;
  font-family: var(--mono);
}
.filters button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.filters button:hover:not([aria-pressed="true"]) {
  border-color: var(--line);
}
.project-count {
  font-size: 9px;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.featured-project {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
}
.featured-copy {
  padding: 34px 34px 30px;
}
.project-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.feature-pill {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--accent);
  font-size: 9px;
}
.featured-copy h3 {
  font-size: 46px;
  margin: 24px 0 16px;
  letter-spacing: -0.025em;
}
.project-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.featured-copy > p:not(.project-subtitle) {
  font-size: 13px;
  line-height: 1.8;
  max-width: 350px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.tags span {
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.project-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.subtle-link {
  font-size: 11px;
  color: var(--muted);
}
.subtle-link:hover {
  color: var(--accent);
}
.demo-area {
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 20px;
}
.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  color: var(--muted);
}
.demo-topbar .mono {
  font-size: 8px;
}
.demo-topbar .tiny-dot {
  background: var(--accent);
  margin-right: 5px;
}
.video-wrap {
  background: #1b211c;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
}
#robot-demo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.demo-selector {
  gap: 4px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.demo-selector button {
  padding: 6px 9px;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  border: 1px solid transparent;
}
.demo-selector button[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.demo-selector button:hover {
  color: var(--accent);
}
.demo-selector button:last-child {
  margin-left: auto;
}
.demo-selector button span {
  color: var(--accent);
}
.demo-caption {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 10px;
}
.project-details {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.project-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 15px 34px;
  color: var(--muted);
}
summary:hover {
  color: var(--accent);
}
.details-plus {
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s;
}
details[open] > summary .details-plus {
  transform: rotate(45deg);
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 18px 34px 32px;
}
.detail-number {
  display: block;
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.detail-number > span {
  font-size: 23px;
}
.detail-word {
  font-size: 29px;
  line-height: 1.56;
}
.details-grid h4 {
  font-size: 12px;
  margin-bottom: 9px;
}
.details-grid p {
  font-size: 12px;
}
.details-grid a {
  font-size: 10px;
  display: inline-block;
  margin-top: 9px;
  color: var(--accent);
}
.secondary-project {
  display: flex;
  flex-direction: column;
}
.card-copy {
  padding: 28px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-copy h3 {
  font-size: 27px;
  margin: 15px 0;
}
.card-copy > p:not(.project-kicker) {
  font-size: 13px;
  line-height: 1.8;
  max-width: 450px;
}
.card-copy .text-link {
  margin-top: 25px;
  align-self: flex-start;
}
.sample-visual {
  height: 265px;
  background: #e9e8e0;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  --sample-step: 7;
  color: #343d33;
}
.visual-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 8px;
  color: #626958;
}
.sample-window {
  display: block;
  aspect-ratio: 1995/553.75;
  overflow: hidden;
  border-radius: 3px;
  background: #ddd;
  border: 1px solid #cbcbbd;
}
.sample-window img {
  width: 100%;
  height: auto;
  max-width: none;
  transform: translateY(calc(var(--sample-step) * -12.5%));
  transition: transform 0.22s ease;
}
.sample-control {
  align-items: center;
  gap: 20px;
  margin-top: 7px;
}
.sample-control label {
  font-size: 8px;
  white-space: nowrap;
}
.sample-control input {
  margin-block: 13px;
  --line: #bebfad;
  --bg: #e9e8e0;
  --accent: #ad522f;
}
.sample-note {
  font-size: 9px;
  color: #666b60;
  margin-top: 3px;
}
.dexterity-visual {
  height: 265px;
  background: #111714;
  position: relative;
  overflow: hidden;
}
.dexterity-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}
.dexterity-visual:hover img {
  transform: scale(1.025);
}
.image-label {
  position: absolute;
  inset: auto 16px 14px;
  display: flex;
  justify-content: space-between;
  color: #f0f1e8;
  background: #162018dc;
  border: 1px solid #ffffff20;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 8px;
}
.visual-project {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-media {
  margin: 0;
  padding: 22px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.media-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 16px;
}
.project-media figcaption,
.project-media .demo-caption {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.project-media figcaption {
  margin-top: 12px;
}
.media-source-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.media-source-link:hover {
  color: var(--accent);
}
.image-comparison {
  position: relative;
  width: min(100%, 450px);
  margin-inline: auto;
  aspect-ratio: 1600 / 1067;
  overflow: hidden;
  border-radius: 4px;
  --comparison-position: 50%;
}
.enhanced .image-comparison {
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.image-comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.comparison-before {
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}
.comparison-label {
  position: absolute;
  top: 12px;
  padding: 4px 8px;
  background: #161d19d9;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
}
.before-label {
  left: 12px;
}
.after-label {
  right: 12px;
}
.comparison-divider {
  position: absolute;
  inset: 0 auto 0 var(--comparison-position);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}
.comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #242a25;
  box-shadow: 0 1px 10px #0003;
  font-size: 16px;
}
.comparison-control {
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding-top: 8px;
  max-width: 450px;
  margin-inline: auto;
}
.comparison-control label {
  font-size: 8px;
  color: var(--muted);
}
.comparison-control input {
  min-width: 0;
}
.segmentation-video {
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: min(100%, 400px);
  margin-inline: auto;
}
.segmentation-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.visual-project .card-copy {
  justify-content: center;
}
.audio-project {
  grid-column: 1 / -1;
}
.audio-project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 34px;
  gap: 32px;
}
.audio-project-heading h3 {
  margin: 16px 0 14px;
  font-size: 30px;
}
.audio-project-heading > div {
  max-width: 680px;
}
.audio-project-heading p:not(.project-kicker) {
  font-size: 13px;
  line-height: 1.8;
}
.audio-project-heading .project-origin {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 500;
}
.audio-project-heading > .text-link {
  flex-shrink: 0;
}
.audio-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.audio-gallery .project-media {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.audio-gallery .project-media + .project-media {
  border-left: 1px solid var(--line);
}
.spectrogram-preview,
.hardware-preview {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  height: 300px;
  background: #fff;
}
.spectrogram-preview {
  padding: 12px;
}
.hardware-preview picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gif-controls {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.gif-controls .mono {
  font-size: 7px;
  color: var(--muted);
}
.gif-controls button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  background: var(--surface);
  font-size: 10px;
  white-space: nowrap;
}
.gif-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.spectrogram-preview img,
.hardware-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.work-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}
.work-end > .mono {
  font-size: 8px;
  color: var(--muted);
}
/* Experience and publication */
.experience-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.experience-section .section {
  padding-block: 90px;
}
.experience-section .section-heading {
  margin-bottom: 52px;
}
.experience-section .section-description {
  font-size: 15px;
}
.experience-item {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.experience-item:last-child {
  padding-bottom: 0;
}
.experience-meta > .mono {
  color: var(--muted);
  font-size: 12px;
}
.experience-meta h3 {
  font-size: 27px;
  margin: 18px 0 10px;
  letter-spacing: -0.035em;
}
.company-detail {
  font-size: 18px;
  color: var(--muted);
}
.job-title {
  font-size: 15px;
  color: var(--muted);
}
.experience-illustration {
  width: min(100%, 340px);
  margin: 30px 0 0;
  color: var(--text);
}
.experience-illustration img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}
.experience-illustration figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.experience-illustration figcaption span {
  opacity: 0.75;
}
.experience-copy > p {
  font-size: 18px;
  color: var(--text);
  max-width: 65ch;
  line-height: 1.75;
}
.experience-copy ul {
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-block: 17px 24px;
}
.experience-copy li {
  padding-left: 4px;
  margin-bottom: 10px;
}
.experience-copy li::marker {
  color: var(--accent);
}
.impact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 8px;
}
.impact-line > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.impact-line strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.impact-line span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.experience-detail {
  margin-top: 25px;
}
.experience-detail summary {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  align-items: center;
}
.experience-detail p {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 14px;
}
.publication-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}
.paper-motif {
  margin-top: 35px;
  max-width: 290px;
}
.paper-motif svg {
  width: 100%;
  height: 90px;
}
.curved-path {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0.5;
}
.straight-path {
  stroke: var(--accent);
  stroke-width: 1.5;
}
.paper-motif circle {
  fill: var(--accent);
}
.paper-motif > .mono {
  font-size: 8px;
  color: var(--muted);
}
.publication-card {
  border-left: 1px solid var(--line);
  padding: 8px 0 8px 40px;
}
.publication-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--accent);
}
.publication-label .mono {
  font-size: 8px;
}
.paper-year {
  color: var(--muted);
}
.publication-card h3 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.035em;
  margin: 22px 0 13px;
}
.paper-author {
  font-size: 11px;
  color: var(--text);
  margin-bottom: 18px;
}
.publication-card > p:not(.paper-author) {
  font-size: 13px;
  line-height: 1.85;
}
.paper-details {
  margin-top: 23px;
  border-top: 1px solid var(--line);
}
.paper-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding-top: 14px;
  color: var(--muted);
}
.paper-details p {
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.8;
}
/* Background, resumes, contact */
.about-section {
  border-block: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px 100px;
  align-items: center;
  padding-block: 85px;
}
.about-grid > .education {
  margin-top: 0;
}
.about-portrait {
  position: relative;
  align-self: stretch;
  max-width: 360px;
}
.about-portrait > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.62);
  border-radius: 5px;
  max-height: 435px;
  min-height: 350px;
}
.portrait-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  color: #f7f7ec;
  background: #202a23df;
  padding: 12px;
  font-size: 8px;
  backdrop-filter: blur(10px);
  border-radius: 3px;
}
.about-copy h2 {
  margin-bottom: 23px;
}
.about-copy > p:not(.eyebrow) {
  font-size: 13px;
  margin-bottom: 14px;
  max-width: 510px;
  line-height: 1.85;
}
.education {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.education > .mono {
  font-size: 8px;
  color: var(--accent);
  padding-top: 3px;
}
.education strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.education div > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.toolkit {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  display: flex;
  align-items: center;
  gap: 55px;
}
.toolkit > .mono {
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.toolkit p {
  font-size: 11px;
  line-height: 2.2;
  color: var(--text);
}
.toolkit p span {
  color: var(--line);
  padding-inline: 10px;
}
.resume-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 90px;
  padding-block: 78px;
}
.resume-section h2 {
  font-size: 32px;
}
.resume-section p:not(.eyebrow) {
  font-size: 12px;
  margin-top: 15px;
}
.resume-options {
  display: grid;
  gap: 13px;
}
.resume-option {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.resume-option:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}
.resume-icon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  align-self: flex-start;
  padding-top: 3px;
}
.resume-option strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.resume-option small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.resume-download {
  margin-left: auto;
  white-space: nowrap;
  font-size: 18px;
}
.resume-download .mono {
  font-size: 8px;
  color: var(--muted);
  margin-right: 10px;
}
.contact-section {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: 40px;
}
.contact-topline {
  display: flex;
  justify-content: space-between;
  color: #b2bbaa;
}
.contact-topline .mono {
  font-size: 9px;
}
.contact-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 42px 38px;
}
.contact-main h2 {
  font-size: clamp(42px, 4.5vw, 61px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.contact-main em {
  color: #e9a57f;
}
.contact-main p {
  color: #b7c1b0;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 22px;
}
.contact-arrow {
  width: 90px;
  height: 90px;
  border: 1px solid #7c8872;
  border-radius: 50%;
  font-size: 50px;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1;
}
.contact-arrow:hover {
  background: #e9a57f;
  color: #202d25;
  transform: rotate(8deg);
  border-color: #e9a57f;
}
.contact-bottom {
  border-top: 1px solid #ffffff25;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.email-link {
  font-size: 18px;
  letter-spacing: -0.025em;
}
.email-link:hover {
  color: #e9a57f;
}
.email-copy-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.copy-email {
  background: transparent;
  color: #b7c1b0;
  font-size: 10px;
  align-items: center;
  gap: 10px;
  padding: 6px;
}
.copy-email:hover {
  color: #e9a57f;
}
.copy-status {
  font-size: 10px;
  color: #e9a57f;
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-block: 32px;
}
.footer-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 10px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--accent);
}
.copyright {
  margin-left: auto;
  font-size: 8px;
  color: var(--muted);
}
.back-top {
  font-size: 18px;
  line-height: 1;
}
.back-top:hover {
  color: var(--accent);
}
/* Responsive layouts */
@media (min-width: 761px) {
  .enhanced .nav-toggle {
    display: none !important;
  }
}
@media (min-width: 1500px) {
  :root {
    --container: 1240px;
  }
  .hero {
    padding-top: 90px;
    padding-bottom: 85px;
    gap: 100px;
  }
  .flow-canvas-wrap {
    height: 335px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .nav-shell {
    gap: 25px;
  }
  .site-nav {
    gap: 22px;
  }
  .hero {
    gap: 36px;
    padding-block: 65px;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
    gap: 7px;
  }
  h1 {
    font-size: 70px;
  }
  .flow-canvas-wrap {
    height: 280px;
  }
  .practice-strip {
    gap: 22px;
  }
  .practice-strip > span:not(.mono) {
    font-size: 12px;
  }
  .section {
    padding-block: 80px;
  }
  .featured-copy {
    padding: 28px;
  }
  .demo-area {
    padding: 16px;
  }
  .featured-copy h3 {
    font-size: 40px;
    margin-top: 22px;
  }
  .demo-selector button {
    font-size: 8px;
    padding: 5px 7px;
  }
  .demo-selector button:last-child {
    margin-left: 0;
  }
  .publication-section,
  .about-grid,
  .resume-section {
    gap: 55px;
  }
  .impact-line {
    gap: 24px;
    flex-wrap: wrap;
  }
  .experience-item {
    gap: 45px;
  }
  .row-category {
    max-width: 100px;
    text-align: right;
  }
  .toolkit {
    gap: 25px;
  }
  .toolkit p span {
    padding-inline: 7px;
  }
  .site-footer {
    gap: 26px;
  }
}
@media (max-width: 900px) {
  .wordmark {
    font-size: 14px;
  }
  .site-nav {
    gap: 18px;
  }
  .nav-actions {
    gap: 13px;
  }
  .hero {
    gap: 30px;
  }
  h1 {
    font-size: 61px;
  }
  .hero-intro {
    font-size: 14px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-footnote {
    font-size: 10px;
  }
  .flow-canvas-wrap {
    height: 260px;
  }
  .flow-heading {
    padding: 14px;
    font-size: 11px;
  }
  .flow-heading .mono {
    font-size: 7px;
  }
  .flow-controls {
    padding: 15px;
  }
  .practice-strip {
    gap: 17px;
  }
  .strip-label {
    font-size: 7px;
  }
  .section-description {
    font-size: 12px;
  }
  .featured-project {
    grid-template-columns: 1fr 1.1fr;
  }
  .featured-copy {
    padding: 24px;
  }
  .featured-copy > p:not(.project-subtitle) {
    font-size: 12px;
  }
  .project-subtitle {
    font-size: 20px;
  }
  .tags span {
    font-size: 7px;
  }
  .featured-copy .project-links {
    gap: 14px;
  }
  .featured-copy .text-link {
    font-size: 11px;
  }
  .details-grid {
    gap: 22px;
    padding-inline: 24px;
  }
  .details-grid h4 {
    font-size: 11px;
  }
  .details-grid p {
    font-size: 11px;
  }
  .sample-visual,
  .dexterity-visual {
    height: 225px;
  }
  .sample-visual {
    padding: 15px 18px;
  }
  .card-copy {
    padding: 25px;
  }
  .card-copy h3 {
    font-size: 24px;
  }
  .card-copy > p:not(.project-kicker) {
    font-size: 12px;
  }
  .publication-section {
    gap: 40px;
  }
  .publication-card {
    padding-left: 30px;
  }
  .publication-card h3 {
    font-size: 22px;
  }
  .about-grid {
    gap: 45px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .about-portrait > img {
    min-height: 370px;
  }
  .portrait-caption {
    font-size: 7px;
    padding: 9px;
    left: 9px;
    right: 9px;
    bottom: 9px;
  }
  .resume-section {
    gap: 40px;
  }
  .resume-option {
    padding: 20px 17px;
    gap: 14px;
  }
  .resume-option strong {
    font-size: 13px;
  }
  .resume-option small {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 88px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .nav-shell {
    height: 72px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 14px;
    gap: 10px;
  }
  .monogram {
    font-size: 27px;
  }
  .nav-actions {
    margin-left: auto;
    gap: 12px;
  }
  .resume-nav {
    font-size: 10px;
    padding: 7px 10px;
    gap: 11px;
  }
  .enhanced .nav-toggle {
    display: flex !important;
    width: 25px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 3px;
    background: transparent;
  }
  .nav-toggle > span {
    height: 1px;
    width: 19px;
    background: var(--text);
    transition: transform 0.2s;
  }
  .nav-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] > span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .site-nav {
    order: 3;
    display: flex;
    width: 100%;
    margin: 0;
    background: var(--bg);
    padding: 15px 0;
    justify-content: space-between;
    gap: 14px;
  }
  .site-header:has(.site-nav) {
    padding-bottom: 42px;
  }
  .enhanced .site-header {
    padding-bottom: 0;
  }
  .enhanced .site-nav {
    display: none;
    position: absolute;
    left: 0;
    top: 72px;
    border-bottom: 1px solid var(--line);
    padding: 22px 25px;
    box-shadow: 0 12px 24px #0000000a;
  }
  .enhanced .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 47px 38px;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
    gap: 9px;
  }
  h1 {
    font-size: clamp(62px, 11.5vw, 82px);
    margin-block: 27px 23px;
    line-height: 1.02;
  }
  .hero-intro {
    font-size: 15px;
    max-width: 400px;
  }
  .hero-actions {
    margin-top: 26px;
    gap: 30px;
  }
  .hero-footnote {
    margin-top: 25px;
  }
  .hero-lab {
    padding-top: 0;
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
  .lab-topline {
    margin-bottom: 10px;
  }
  .lab-topline > .mono {
    font-size: 8px;
  }
  .flow-canvas-wrap {
    height: 290px;
  }
  .flow-heading {
    padding: 17px 20px;
  }
  .flow-heading .mono {
    font-size: 8px;
  }
  .flow-controls {
    padding: 16px 20px;
  }
  .lab-caption {
    margin-top: 13px;
    font-size: 10px;
  }
  .lab-caption > span:last-child {
    font-size: 9px;
  }
  .practice-strip {
    padding-block: 23px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 8px;
  }
  .strip-label {
    grid-column: 1/-1;
    margin-bottom: 8px;
    font-size: 8px;
  }
  .practice-strip > span:not(.mono) {
    font-size: 10px;
  }
  .practice-strip > span:nth-child(4) {
    text-align: center;
  }
  .practice-strip > span:nth-child(6) {
    text-align: right;
  }
  .strip-arrow {
    display: none;
  }
  .section {
    padding-block: 62px;
  }
  .section-heading {
    display: block;
    margin-bottom: 24px;
  }
  .section-index {
    font-size: 9px;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 35px;
  }
  .section-description {
    margin-top: 16px;
    font-size: 12px;
    max-width: 330px;
  }
  .desktop-break {
    display: none;
  }
  .work-toolbar {
    gap: 10px;
    margin-bottom: 20px;
  }
  .filters {
    gap: 2px;
  }
  .filters button {
    padding: 7px 10px;
    font-size: 10px;
  }
  .filters button span {
    margin-left: 5px;
    font-size: 8px;
  }
  .project-count {
    font-size: 7px;
  }
  .project-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .featured-project {
    display: block;
  }
  .featured-copy {
    padding: 27px;
  }
  .featured-copy h3 {
    font-size: 42px;
  }
  .featured-copy > p:not(.project-subtitle) {
    font-size: 13px;
    max-width: none;
  }
  .featured-copy .text-link {
    font-size: 12px;
  }
  .project-subtitle br {
    display: none;
  }
  .project-subtitle {
    font-size: 23px;
  }
  .featured-copy .project-links {
    gap: 22px;
  }
  .tags span {
    font-size: 8px;
  }
  .demo-area {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px;
  }
  .video-wrap {
    aspect-ratio: 16/11;
  }
  .demo-selector {
    gap: 4px;
  }
  .demo-selector button {
    padding: 6px 8px;
    font-size: 9px;
  }
  .demo-selector button:last-child {
    margin-left: auto;
  }
  .demo-caption {
    font-size: 9px;
  }
  .project-details > summary {
    padding-inline: 25px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 15px 25px 30px;
  }
  .details-grid > div + div {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .details-grid h4,
  .details-grid p {
    font-size: 12px;
  }
  .detail-number {
    font-size: 32px;
  }
  .sample-visual,
  .dexterity-visual {
    height: 250px;
  }
  .sample-visual {
    padding: 20px 25px;
  }
  .card-copy {
    padding: 26px;
  }
  .card-copy h3 {
    font-size: 27px;
  }
  .card-copy > p:not(.project-kicker) {
    font-size: 13px;
  }
  .card-copy .text-link {
    margin-top: 23px;
  }
  .project-media {
    padding: 18px;
  }
  .audio-project-heading {
    display: block;
    padding: 26px;
  }
  .audio-project-heading > .text-link {
    margin-top: 24px;
  }
  .audio-gallery {
    grid-template-columns: 1fr;
  }
  .audio-gallery .project-media + .project-media {
    border-left: 0;
  }
  .hardware-preview {
    height: auto;
    aspect-ratio: 800 / 660;
  }
  .spectrogram-preview {
    height: auto;
    aspect-ratio: 1;
  }
  .media-topline {
    font-size: 7px;
  }
  .work-end > .mono {
    font-size: 7px;
  }
  .work-end > .text-link {
    font-size: 10px;
  }
  .experience-section .section {
    padding-block: 62px;
  }
  .experience-section .section-heading {
    margin-bottom: 32px;
  }
  .experience-item {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-block: 28px;
  }
  .experience-meta h3 {
    margin-top: 13px;
    font-size: 25px;
  }
  .experience-illustration {
    max-width: 290px;
    margin-top: 22px;
  }
  .experience-copy > p {
    font-size: 17px;
  }
  .experience-copy ul {
    font-size: 16px;
  }
  .impact-line {
    gap: 28px;
    margin-top: 22px;
  }
  .impact-line > div {
    gap: 11px;
  }
  .impact-line strong {
    font-size: 28px;
  }
  .impact-line span {
    font-size: 12px;
  }
  .publication-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .publication-heading {
    position: relative;
  }
  .publication-heading h2 {
    font-size: 33px;
  }
  .paper-motif {
    display: none;
  }
  .publication-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .publication-card h3 {
    font-size: 25px;
    max-width: 480px;
  }
  .publication-label .mono {
    font-size: 8px;
  }
  .publication-card > p:not(.paper-author) {
    font-size: 13px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 60px;
  }
  .about-portrait {
    max-width: 360px;
    width: 100%;
    justify-self: start;
  }
  .about-portrait > img {
    height: 350px;
    min-height: 0;
    object-position: 50% 42%;
  }
  .portrait-caption {
    padding: 12px;
    font-size: 8px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 13px;
    max-width: none;
  }
  .about-copy h2 {
    font-size: 35px;
  }
  .education {
    gap: 25px;
  }
  .education div > span {
    font-size: 9px;
  }
  .toolkit {
    display: block;
    padding-top: 23px;
  }
  .toolkit p {
    margin-top: 12px;
    font-size: 11px;
  }
  .toolkit p span {
    padding-inline: 7px;
  }
  .resume-section {
    grid-template-columns: 1fr;
    padding-block: 60px;
    gap: 27px;
  }
  .resume-section h2 {
    font-size: 32px;
  }
  .resume-section h2 br {
    display: none;
  }
  .resume-options {
    gap: 11px;
  }
  .resume-option {
    padding: 21px 18px;
    gap: 17px;
  }
  .resume-option strong {
    font-size: 13px;
  }
  .resume-option small {
    font-size: 9px;
  }
  .resume-download .mono {
    margin-right: 6px;
  }
  .contact-section {
    padding-block: 30px;
  }
  .contact-topline .mono {
    font-size: 8px;
  }
  .contact-topline .mono:last-child {
    font-size: 7px;
  }
  .contact-main {
    padding-block: 35px;
    gap: 15px;
  }
  .contact-main h2 {
    font-size: clamp(34px, 7vw, 48px);
  }
  .contact-main p {
    font-size: 11px;
    margin-top: 20px;
  }
  .contact-arrow {
    width: 54px;
    height: 54px;
    font-size: 32px;
    flex-shrink: 0;
  }
  .contact-bottom {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
  }
  .email-link {
    font-size: 17px;
  }
  .copy-email {
    padding-left: 0;
  }
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 21px;
    padding-block: 27px;
  }
  .footer-name {
    font-size: 13px;
  }
  .footer-links {
    grid-row: 2;
    gap: 23px;
  }
  .footer-links a {
    font-size: 10px;
  }
  .copyright {
    grid-row: 3;
    margin-left: 0;
    font-size: 8px;
  }
  .back-top {
    grid-column: 2;
    grid-row: 1/4;
    align-self: start;
  }
  .theme-toggle {
    width: 23px;
    padding: 2px;
  }
}
@media (max-width: 380px) {
  .container {
    width: calc(100% - 32px);
  }
  .wordmark {
    font-size: 12px;
  }
  .nav-actions {
    gap: 9px;
  }
  .wordmark-dot {
    display: none;
  }
  .hero-copy > .eyebrow {
    font-size: 7px;
  }
  h1 {
    font-size: 60px;
  }
  .flow-heading .mono {
    font-size: 7px;
  }
  .flow-canvas-wrap {
    height: 255px;
  }
  .project-count {
    display: none;
  }
  .filters button {
    padding-inline: 10px;
  }
  .demo-selector {
    gap: 2px;
  }
  .demo-selector button {
    padding-inline: 6px;
    font-size: 8px;
  }
  .impact-line {
    gap: 21px;
  }
  .impact-line strong {
    font-size: 26px;
  }
  .resume-download .mono {
    display: none;
  }
  .contact-main {
    gap: 8px;
  }
  .contact-main h2 {
    font-size: 32px;
  }
  .contact-arrow {
    width: 46px;
    height: 46px;
  }
  .sample-visual {
    height: 225px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .hero-lab,
  .practice-strip,
  .work-toolbar,
  .demo-selector,
  .theme-toggle,
  .copy-email,
  .contact-arrow,
  .back-top,
  .sample-control {
    display: none !important;
  }
  .container {
    width: 100%;
  }
  .section,
  .resume-section {
    padding-block: 30px;
  }
  .hero {
    display: block;
    padding-block: 20px;
  }
  h1 {
    font-size: 50px;
  }
  .project-card,
  .experience-item {
    break-inside: avoid;
  }
  .contact-section {
    background: none;
    color: #222;
  }
  .contact-main p {
    color: #555;
  }
  body {
    font-size: 11px;
    color: #222;
    background: #fff;
  }
  .site-footer {
    padding-bottom: 0;
  }
}

/* Focus remains visible on the two permanently dark surfaces. */
.flow-panel :focus-visible,
.contact-section :focus-visible {
  outline-color: #f0b58d;
}
.project-grid.is-filtered .secondary-project {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-grid.is-filtered .sample-visual,
.project-grid.is-filtered .dexterity-visual {
  height: 100%;
  min-height: 270px;
}
@media (max-width: 760px) {
  .project-grid.is-filtered .secondary-project {
    display: flex;
  }
  .project-grid.is-filtered .sample-visual,
  .project-grid.is-filtered .dexterity-visual {
    height: 250px;
    min-height: 0;
  }
}

/* Physical and simulated policies are visible together, with distinct labels. */
.robotics-project {
  grid-column: 1 / -1;
}
.robotics-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 30px 34px;
}
.robotics-project-header > div {
  max-width: 680px;
}
.robotics-project-header h3 {
  margin: 16px 0 14px;
  font-size: 30px;
}
.robotics-project-description {
  font-size: 13px;
  line-height: 1.8;
}
.robotics-project-header > .text-link {
  flex-shrink: 0;
}
.demo-source-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}
.demo-source-link:hover {
  color: var(--accent);
}
@media (max-width: 760px) {
  .robotics-project-header {
    display: block;
    padding: 27px;
  }
  .robotics-project-header > .text-link {
    margin-top: 24px;
  }
  .robotics-project-header h3 {
    font-size: 27px;
  }
}
.featured-project {
  display: block;
}
.featured-copy {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 50px;
  align-items: center;
  padding: 34px;
}
.featured-copy .project-subtitle {
  margin-bottom: 0;
}
.featured-description > p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 480px;
}
.demo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 28px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.demo-gallery .demo-area {
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: flex-start;
}
.demo-gallery .video-wrap {
  aspect-ratio: 16/10;
}
.demo-gallery video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.demo-title {
  font-size: 13px;
  letter-spacing: -0.02em;
  margin-top: 17px;
}
.demo-gallery .demo-caption {
  margin-top: 10px;
  max-width: 470px;
}
.demo-gallery .demo-selector button:last-child {
  margin-left: 0;
}
@media (max-width: 900px) {
  .featured-copy {
    padding: 28px;
    gap: 35px;
  }
  .demo-gallery {
    padding: 20px;
    gap: 20px;
  }
  .demo-topbar .mono {
    font-size: 7px;
  }
}
@media (max-width: 760px) {
  .featured-copy {
    display: block;
    padding: 27px;
  }
  .featured-description {
    margin-top: 18px;
  }
  .featured-description > p {
    font-size: 13px;
  }
  .demo-gallery {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 27px;
  }
  .simulation-demo-area {
    border-top: 1px solid var(--line) !important;
    padding-top: 22px !important;
  }
  .demo-gallery .video-wrap {
    aspect-ratio: 16/11;
  }
  .demo-title {
    font-size: 13px;
  }
  .demo-topbar .mono {
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  .demo-topbar .mono {
    font-size: 7px;
  }
}

/* Portrait-led introduction with a compact, looping media/action showcase. */
.editorial-hero {
  grid-template-columns: 0.72fr 1.28fr;
  grid-template-areas: "portrait copy" "portrait lab";
  align-items: start;
  gap: 28px 62px;
  padding-block: 48px 58px;
}
.editorial-hero .hero-copy {
  grid-area: copy;
  min-width: 0;
}
.hero-name {
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}
.editorial-hero .hero-copy > .eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.editorial-hero h1 {
  font-size: clamp(42px, 3.5vw, 52px);
  font-weight: 500;
  margin: 25px 0 22px;
  line-height: 1.14;
}
.editorial-hero .hero-intro {
  max-width: 610px;
  font-size: 15px;
  line-height: 1.8;
}
.editorial-hero .hero-actions {
  margin-top: 26px;
}
.hero-portrait {
  grid-area: portrait;
  position: relative;
  align-self: stretch;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}
.hero-portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  filter: saturate(0.7);
}
.editorial-hero .hero-lab {
  grid-area: lab;
  padding-top: 0;
  margin-top: 0;
}
.flow-showcase .flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "heading heading" "canvas controls";
}
.flow-showcase .flow-heading {
  grid-area: heading;
  padding: 12px 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.flow-modes {
  gap: 4px;
}
.flow-modes button {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #bfc7b7;
  background: none;
  font-size: 9px;
}
.flow-modes button[aria-pressed="true"] {
  color: #f2eee0;
  border-color: #eaa4775e;
  background: #eaa47714;
}
.flow-modes button:hover {
  color: #eaa477;
}
.flow-showcase .flow-canvas-wrap {
  grid-area: canvas;
  height: 220px;
  margin-inline: 8px;
}
.flow-showcase .flow-controls {
  grid-area: controls;
  justify-content: center;
  padding: 17px 18px;
  border-top: 0;
  border-left: 1px solid #ffffff12;
  min-width: 0;
}
#flow-stage-title {
  color: #eaa477;
  font-size: 9px;
  letter-spacing: 0.075em;
  margin-bottom: 8px;
}
#flow-stage-description {
  color: #b8c0b0;
  font-size: 11px;
  line-height: 1.7;
  min-height: 34px;
  margin-bottom: 16px;
}
.flow-showcase .flow-scale {
  gap: 8px;
  font-size: 8px;
}
.flow-showcase .flow-scale button {
  font-size: 9px;
  min-width: 74px;
}
#flow-source-link {
  align-self: flex-start;
  color: #cbd3c2;
  font-size: 10px;
  margin-top: 15px;
  text-underline-offset: 3px;
}
#flow-source-link:hover {
  color: #eaa477;
  text-decoration: underline;
}
.editorial-hero .lab-caption {
  font-size: 9px;
  line-height: 1.65;
  margin-top: 10px;
  max-width: none;
}
@media (max-width: 1100px) {
  .editorial-hero {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 25px 35px;
  }
  .editorial-hero h1 {
    font-size: 43px;
  }
}
@media (max-width: 900px) {
  .editorial-hero {
    grid-template-areas: "portrait copy" "lab lab";
  }
  .flow-showcase .flow-canvas-wrap {
    height: 230px;
  }
}
@media (max-width: 760px) {
  .editorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "portrait" "lab";
    gap: 28px;
    padding-block: 32px 42px;
  }
  .editorial-hero h1 {
    font-size: clamp(32px, 9.5vw, 50px);
  }
  .hero-portrait {
    height: 290px;
    width: min(100%, 310px);
    justify-self: center;
  }
  .hero-portrait .portrait-caption {
    display: none;
  }
  .flow-showcase .flow-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "canvas" "controls";
  }
  .flow-showcase .flow-heading {
    padding: 11px 13px;
    font-size: 11px;
    gap: 9px;
  }
  .flow-modes button {
    padding: 4px 7px;
    font-size: 8px;
  }
  .flow-showcase .flow-canvas-wrap {
    height: 235px;
  }
  .flow-showcase .flow-controls {
    border-left: 0;
    border-top: 1px solid #ffffff12;
  }
  #flow-stage-description {
    min-height: 0;
    margin-bottom: 14px;
  }
  #flow-source-link {
    margin-top: 12px;
  }
}
@media print {
  .editorial-hero .hero-portrait {
    display: none;
  }
}
