@font-face {
  font-family: Geist;
  src: url('../fonts/geist.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --ink: #20251f;
  --muted: #525950;
  --line: #d8d8cc;
  --accent: #9b3d2b;
  --accent-dark: #792e20;
  --green: #24362b;
  --green-soft: #e8ede4;
  --field: #efeee7;
  --gutter: clamp(20px, 5vw, 76px);
  --width: 1216px;
  --mono: ui-monospace, 'Cascadia Mono', 'Liberation Mono', monospace;
  font: 16px/1.6 Geist, 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[aria-labelledby], [id] { scroll-margin-top: 1rem; }

h1, h2, h3, h4 { font-weight: 630; line-height: 1.08; letter-spacing: -.043em; }
h2 { font-size: clamp(2.25rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.45rem, 2.8vw, 2.7rem); }
h4 { font-size: 1.24rem; letter-spacing: -.026em; }

.wrap { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 108px); }
.section-heading { margin-bottom: clamp(26px, 4vw, 48px); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 42px; }
.split-heading > p { max-width: 28ch; color: var(--muted); font-size: 1.0625rem; }
.split-heading > a { flex: none; }
.section-heading .text-link { margin-bottom: .25em; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus { position: absolute; z-index: 2; inset: .65rem auto auto .65rem; padding: .6rem 1rem; background: var(--white); }
.label { font: 600 .76rem/1.45 var(--mono); letter-spacing: .055em; text-transform: uppercase; color: var(--accent); }
.text-link { display: inline-flex; min-height: 32px; align-items: center; gap: .45em; color: var(--accent-dark); font-weight: 650; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: .75em;
  padding: .66rem 1.05rem;
  border-radius: 5px;
  background: var(--green);
  color: var(--white);
  font-weight: 620;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); color: var(--white); }
.actions, .link-list { display: flex; flex-wrap: wrap; gap: .8rem 1.45rem; align-items: center; }
.link-list { padding: 0; margin: 0; list-style: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 71px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .25rem 1.5rem; }
.wordmark { justify-self: start; font-size: 1.3rem; font-weight: 720; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; justify-content: center; gap: clamp(17px, 2.7vw, 37px); }
.main-nav a, .header-contact { display: inline-flex; align-items: center; min-height: 45px; font-size: .9rem; font-weight: 570; text-decoration: none; }
.header-contact { justify-self: end; gap: .45em; color: var(--accent-dark); }
.main-nav a:hover, .header-contact:hover { text-decoration: underline; }

.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(26px, 5vw, 76px); padding-block: clamp(43px, 6vw, 81px) clamp(37px, 5vw, 69px); }
.intro-name { margin-bottom: 1.1rem; }
.intro-name span { margin-inline: .15em; }
.intro h1 { font-size: clamp(3.05rem, 5vw, 4.5rem); line-height: 1.01; letter-spacing: -.068em; text-wrap: balance; }
.intro-deck { max-width: 45ch; margin-top: 1.35rem; font-size: clamp(1.04rem, 1.55vw, 1.2rem); line-height: 1.58; color: var(--muted); }
.intro .actions { margin-top: 1.5rem; }
.availability { margin-top: 1rem; max-width: 53ch; color: var(--muted); font-size: .82rem; }
.hero-figure { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.29;
  padding: 7% 7.5%;
  border: 1px solid #e0e3d9;
  border-radius: 8px;
  background: radial-gradient(ellipse at 43% 39%, #f8f8f0, transparent 65%), var(--green-soft);
}
.hero-image img { width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-figure figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: .7rem; color: var(--muted); font-size: .84rem; line-height: 1.36; }
.hero-figure figcaption strong { display: inline-block; margin-bottom: .15rem; color: var(--ink); font-size: .94rem; font-weight: 650; }
.hero-figure figcaption a { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-size: 1.2rem; text-decoration: none; }
.hero-figure figcaption a:hover { background: var(--green-soft); }

.evidence { display: grid; grid-template-columns: 1.16fr 1fr .9fr; border-block: 1px solid var(--line); }
.evidence-item { display: grid; align-content: start; gap: .35rem; padding: 1.15rem clamp(13px, 3.1vw, 40px) 1.3rem; text-decoration: none; }
.evidence-item:first-child { padding-left: 0; }
.evidence-item + .evidence-item { border-left: 1px solid var(--line); }
.evidence-item strong { font-size: clamp(1.35rem, 2.9vw, 2.65rem); line-height: 1.12; font-weight: 650; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.evidence-item strong > span[aria-hidden] { color: var(--accent); }
.evidence-item > span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.evidence-item:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }

.work-section { padding-top: clamp(53px, 7.5vw, 90px); background: linear-gradient(180deg, transparent, var(--white) 14%); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.19fr); gap: clamp(20px, 5vw, 60px); align-items: center; padding: clamp(23px, 4vw, 50px); border: 1px solid #e4e3d9; border-radius: 8px; background: var(--field); }
.feature-copy, .card-copy { display: grid; justify-items: start; align-content: start; gap: .7rem; }
.feature-copy h3 { font-size: clamp(1.75rem, 3.6vw, 3.45rem); }
.feature-copy > p:not(.label), .card-copy > p:not(.label), .related-item > p:not(.label), .experience-grid article > p:not(.label) { color: var(--muted); }
.feature-copy .text-link, .card-copy .text-link { margin-top: .28rem; }
.feature-figure { min-width: 0; }
.feature-figure a { display: grid; place-items: center; min-height: 208px; border-radius: 5px; background: var(--field); isolation: isolate; }
.feature-figure img { width: 100%; mix-blend-mode: darken; }
figcaption { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.feature-figure figcaption { padding-top: .55rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); margin-top: clamp(16px, 2.6vw, 32px); }
.work-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card-image, .controls-fields { display: grid; place-items: center; min-height: 200px; height: clamp(213px, 25vw, 305px); padding: 22px; }
.card-image { background: var(--green-soft); }
.card-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-image:focus-visible, .feature-figure a:focus-visible { outline-offset: -5px; }
.card-copy { flex: 1; padding: clamp(21px, 3.3vw, 40px); }
.card-copy p:not(.label) { max-width: 54ch; }
.controls-fields { align-content: center; justify-items: start; gap: .55rem; padding-inline: clamp(21px, 3.3vw, 40px); background: var(--green); color: var(--white); }
.controls-fields strong { font-size: clamp(3.15rem, 7.5vw, 6.4rem); font-weight: 590; line-height: .92; letter-spacing: -.072em; }
.controls-fields p { max-width: 28ch; color: #e1e8d9; font-size: clamp(.93rem, 1.5vw, 1.08rem); }

.related-work { margin-top: clamp(42px, 6vw, 74px); }
.related-work > h3 { margin-bottom: 1.4rem; font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.related-grid, .experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.2vw, 40px); }
.related-item, .experience-grid article { display: grid; justify-items: start; align-content: start; gap: .62rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.related-item > p:not(.label), .experience-grid article > p:not(.label) { font-size: .95rem; }
.experience-grid h3 { font-size: clamp(1.36rem, 2.4vw, 2.1rem); }

.publications-section { background: var(--green-soft); }
.publications-section .split-heading { margin-bottom: 1.5rem; }
.publications { list-style: none; padding: 0; margin: 0; border-top: 1px solid #c9d3c6; }
.publications li { display: grid; grid-template-columns: minmax(118px, .58fr) 3fr; gap: .55rem 1.4rem; padding-block: 1rem; border-bottom: 1px solid #c9d3c6; }
.publications li > .label { margin-top: .19rem; }
.publications h3 { font-size: clamp(1.08rem, 1.9vw, 1.35rem); line-height: 1.35; letter-spacing: -.023em; }
.publications h3 a { text-decoration: none; }
.publications h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.publications li div p, .publication-note { margin-top: .25rem; color: var(--muted); font-size: .92rem; }
.publication-note { margin-top: 1.3rem; }
.publication-note strong { color: var(--ink); }

.about-section { display: grid; grid-template-columns: minmax(190px, .68fr) minmax(0, 1.32fr); gap: clamp(25px, 7vw, 98px); align-items: center; }
.profile-photo { max-width: 350px; }
.profile-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; border-radius: 7px; }
.about-copy > p { max-width: 64ch; margin-top: .9rem; color: var(--muted); }
.degree-list { display: grid; gap: .6rem; padding-top: 1.05rem; margin-top: 1.05rem; border-top: 1px solid var(--line); font-size: .9rem; }
.degree-list dt { font-weight: 650; }
.degree-list dd { color: var(--muted); }

.contact-section { background: var(--green); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px 56px; align-items: center; }
.contact-inner p { max-width: 48ch; margin-top: .7rem; color: #e4e9de; }
.contact-actions { justify-self: end; display: grid; gap: .6rem; }
.contact-email { font-size: clamp(1.22rem, 2.6vw, 2.15rem); font-weight: 650; letter-spacing: -.04em; }
.contact-actions a { text-decoration-thickness: 1px; }
.contact-actions a:hover { color: #ffd7c8; }
.contact-actions a:focus-visible { outline-color: var(--white); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .88rem; }

.project-page { padding-block: 2rem clamp(62px, 8vw, 110px); }
.breadcrumbs { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.case-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(22px, 6vw, 76px); margin-bottom: clamp(22px, 4vw, 44px); }
.case-hero-text { grid-template-columns: 1fr; }
.project-intro { display: grid; gap: .9rem; }
.project-intro h1 { max-width: 16ch; font-size: clamp(2.85rem, 6.3vw, 5.7rem); line-height: .99; letter-spacing: -.074em; overflow-wrap: anywhere; }
.project-deck { max-width: 57ch; color: var(--muted); font-size: clamp(1.06rem, 1.9vw, 1.34rem); line-height: 1.5; }
.project-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border-block: 1px solid var(--line); margin-block: 1.15rem 2.6rem; }
.project-facts > div { display: grid; gap: .3rem; align-content: start; padding: .9rem clamp(13px, 2.5vw, 24px) 1.05rem; }
.project-facts > div:first-child { padding-left: 0; }
.project-facts > div + div { border-left: 1px solid var(--line); }
.project-facts dt { color: var(--accent-dark); font-size: clamp(1.3rem, 3vw, 2.4rem); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; }
.project-facts dd { color: var(--muted); font-size: .92rem; line-height: 1.42; }
.project-body { max-width: 900px; margin-inline: auto; }
.project-body section + section { margin-top: clamp(34px, 5vw, 64px); }
.project-body h2 { max-width: 32ch; margin-bottom: .72rem; font-size: clamp(1.7rem, 3.3vw, 2.75rem); }
.project-body p + p { margin-top: .7rem; }
.project-body section > p { max-width: 72ch; }
.article-photo { min-width: 0; }
.project-body .article-photo, .figure-grid { margin-block: 1.25rem; }
.article-photo img { width: 100%; border-radius: 6px; }
.paper-figure > a { display: block; isolation: isolate; border-radius: 6px; background: var(--paper); }
/* Blend the exported paper background into the page, leaving darker linework intact. */
.paper-figure img { mix-blend-mode: darken; }
.case-hero-image { isolation: isolate; border-radius: 6px; background: var(--green-soft); padding: clamp(12px, 2vw, 22px); }
.case-hero-photo img { max-height: 410px; object-fit: contain; }
.case-hero-photo img[src*='fcml-phase-hero'] { mix-blend-mode: multiply; }
.article-photo figcaption { margin-top: .5rem; }
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 25px; }
.figure-grid .article-photo { margin-block: 0; }
.bench-photo { max-width: 540px; }
.case-results-table { border-collapse: collapse; width: 100%; margin-block: 1rem; text-align: left; font-size: .94rem; }
.case-results-table caption { margin-bottom: .55rem; color: var(--muted); text-align: left; }
.case-results-table th, .case-results-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.case-results-table thead { background: var(--green-soft); }
.case-results-table tbody th { font-weight: 570; }
.figure-note { color: var(--muted); font-size: .9rem; }
.project-end { margin-top: clamp(30px, 5vw, 55px); padding-top: 1rem; border-top: 1px solid var(--line); }
.case-links { display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; }

@media (max-width: 850px) {
  .intro { grid-template-columns: 1.04fr .96fr; gap: 24px; }
  .hero-image { aspect-ratio: 1.18; }
  .intro h1 { font-size: clamp(2.8rem, 6.1vw, 4rem); }
  .case-hero { gap: 24px; }
}

@media (max-width: 650px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0; padding-top: .25rem; }
  .header-contact { grid-area: 1 / 2; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: flex-start; gap: clamp(13px, 5.5vw, 30px); }
  .main-nav a { min-height: 44px; font-size: .87rem; }
  .intro { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.9rem; }
  .intro h1 { font-size: clamp(2.7rem, 10vw, 4.1rem); }
  .intro-name { margin-bottom: .66rem; }
  .intro-deck { margin-top: .9rem; }
  .intro .actions { margin-top: 1rem; }
  .availability { margin-top: .6rem; }
  .hero-image { aspect-ratio: 1.67; padding: 5% 13%; }
  .hero-figure figcaption { margin-top: .4rem; }
  .evidence { grid-template-columns: 1fr 1fr; }
  .evidence-item { padding: .9rem .65rem 1rem; }
  .evidence-item strong { font-size: clamp(1.33rem, 5.8vw, 1.95rem); }
  .evidence-item:last-child { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: baseline; gap: .7rem; border-top: 1px solid var(--line); border-left: 0; padding: .72rem 0; }
  .evidence-item:last-child strong { font-size: 1.15rem; }
  .split-heading { flex-direction: column; align-items: start; gap: .5rem; }
  .split-heading > p { max-width: 40ch; }
  .feature, .project-grid, .related-grid, .experience-grid, .contact-inner, .case-hero, .figure-grid { grid-template-columns: 1fr; }
  .feature-figure a { min-height: 140px; }
  .card-image, .controls-fields { min-height: 170px; height: 211px; }
  .project-grid, .related-grid, .experience-grid { gap: 17px; }
  .project-body .figure-grid .article-photo { margin-block: 0; }
  .publications li { grid-template-columns: 1fr; gap: .2rem; }
  .about-section { grid-template-columns: 1fr; }
  .profile-photo { width: min(100%, 230px); }
  .contact-actions { justify-self: start; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts > div { padding-inline: 0; }
  .project-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .case-results-table { font-size: .83rem; }
  .case-results-table th, .case-results-table td { padding: .45rem .34rem; }
}
