:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --white: #fffef9;
  --ink: #172125;
  --muted: #48585e;
  --deep: #111f24;
  --deep-line: #34474a;
  --line: #d9dcd2;
  --amber: #f8c66a;
  --accent: #8a4f18;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.03rem/1.65 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ba7522; outline-offset: 5px; }
.wrap { width: min(1220px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: .65rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header, .hero, .site-footer { background: var(--deep); color: var(--white); }
.site-header { border-bottom: 1px solid var(--deep-line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { font-size: 1.12rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); font-size: .9rem; }
.site-nav a { color: #e3e9e4; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-footer a:hover { color: var(--amber); }
.nav-contact { padding: .42rem .76rem; font-weight: 700; }
.hero { overflow: hidden; background-image: radial-gradient(ellipse at 79% 34%, #263b3e 0%, var(--deep) 66%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: clamp(40px, 5.5vw, 76px); }
.eyebrow, .micro, .tag, .figure-labels, .meta dt { font: 650 .72rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { margin: 0 0 1.15rem; color: var(--accent); }
.hero .eyebrow, .site-footer .eyebrow { color: var(--amber); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.055em; font-weight: 650; }
.hero h1 { font-size: clamp(3.05rem, 6.1vw, 6.1rem); }
.hero h1 em { color: var(--amber); font: italic 500 .88em/1.18 Georgia, serif; letter-spacing: -.065em; display: block; }
.hero p.lead { color: #d4dedb; margin-block: 1.45rem 1.7rem; max-width: 37rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.26rem); line-height: 1.55; }
.actions { display: flex; align-items: center; gap: .85rem 1.3rem; flex-wrap: wrap; }
.hero-links { gap: .65rem; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.15rem; padding: .78rem 1rem; text-decoration: none; font-weight: 700; font-size: .91rem; line-height: 1.4; }
.button, .site-nav .nav-contact { background: var(--amber); color: #24180c; }
.button:hover, .site-nav .nav-contact:hover { background: #ffdb94; color: #24180c; }
.hero-links .button { gap: .4rem; padding: .62rem .75rem; border: 1px solid transparent; background: var(--hero-button-bg, #e7eae1); color: var(--hero-button-ink, var(--ink)); white-space: nowrap; }
.hero-links .button:hover { background: var(--hero-button-hover, var(--white)); }
.linkedin-button, .github-button { display: inline-flex; align-items: center; gap: .4rem; padding: .62rem .75rem; border: 1px solid transparent; color: #fff; text-decoration: none; }
.button.linkedin-button { --hero-button-bg: #0a66c2; --hero-button-hover: #084f97; --hero-button-ink: #fff; background: #0a66c2; color: #fff; }
.button.linkedin-button:hover { background: #084f97; color: #fff; }
.button.github-button { --hero-button-bg: #24292f; --hero-button-hover: #363d45; --hero-button-ink: #fff; background: #24292f; border-color: #52606c; color: #fff; }
.button.github-button:hover { background: #363d45; color: #fff; }
.linkedin-button img, .github-button img { width: 22px; height: 22px; flex: none; }
.github-button img { filter: invert(1); }
.text-link { font-size: .92rem; font-weight: 700; }
.flow-card { border: 1px solid #547073; padding: clamp(.8rem, 2vw, 1.35rem); background: #182a2d; }
.flow-card .micro { color: #c7d6d3; }
.flow-card img { margin-block: .7rem; }
.figure-labels { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; text-align: center; color: #f1efe6; }
.flow-card figcaption { border-top: 1px solid #547073; padding-top: .8rem; margin-top: 1rem; color: #c7d6d3; font-size: .81rem; line-height: 1.5; }
.section { padding-block: clamp(42px, 5.5vw, 76px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: 2.1rem; }
.section-head h2, .site-footer h2 { font-size: clamp(2.65rem, 5.5vw, 4.9rem); }
.section-head p:not(.eyebrow) { max-width: 29rem; color: var(--muted); }
.project-list { display: grid; grid-auto-rows: 1fr; gap: 1rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; background: var(--white); border: 1px solid var(--line); }
.feature .visual { position: relative; min-height: 210px; background: var(--white); }
.feature .visual > img, .media-pair { position: absolute; inset: 0; }
.feature .visual img { width: 100%; height: 100%; object-fit: cover; }
.feature .visual .diagram { object-fit: contain; }
.feature .visual .moxy-cover { object-position: 50% 85%; }
.media-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: minmax(0, 1fr); }
.card-body { display: flex; flex-direction: column; align-items: start; padding: 1.15rem clamp(1.15rem, 2.7vw, 2.25rem); }
.tag { margin-bottom: .68rem; color: var(--accent); }
.card-body h3 { font-size: clamp(1.36rem, 2.48vw, 2.4rem); }
.card-body p:not(.tag) { margin: .55rem 0 .8rem; color: var(--muted); }
.card-body .text-link { margin-top: auto; }
.text-link:hover { color: var(--accent); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 7vw, 94px); }
.split h2 { font-size: clamp(2.05rem, 4.4vw, 3.8rem); }
.prose p + p { margin-top: 1rem; }
.prose p { max-width: 68ch; color: var(--muted); }
.research-topics { display: grid; gap: .55rem; margin: .6rem 0 1.25rem; padding-left: 1.25rem; }
.research-topics li::marker { color: var(--accent); }
.research-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.research-case { background: var(--white); border: 1px solid var(--line); }
.research-case-media { position: relative; height: clamp(112px, 14vw, 165px); background: white; }
.research-case-media img { height: 100%; object-fit: cover; }
.research-case-media .media-pair img { object-fit: contain; }
.research-case .card-body h3 { font-size: clamp(1.16rem, 1.88vw, 1.8rem); }
.research-page .section-head h2 { font-size: clamp(2.12rem, 4.4vw, 3.92rem); }
.research-page .split h2 { font-size: clamp(1.64rem, 3.52vw, 3.04rem); }
.presentation-record { display: grid; gap: .9rem; max-width: 86ch; padding-left: 1.25rem; }
.presentation-record li::marker { color: var(--accent); }
.presentation-list { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.presentation { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: center; background: var(--white); border: 1px solid var(--line); }
.presentation iframe, .presentation-preview { display: block; width: 100%; border: 0; background: #fff; }
.presentation iframe { height: clamp(265px, 35vw, 430px); }
.presentation-preview img { max-height: 390px; object-fit: contain; }
.presentation .actions { margin-top: .45rem; }
.manuscript-placeholder { border: 1px solid var(--line); background: var(--white); }
.about { background: #e7eae1; }
.experience-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.experience-grid .record { grid-column: span 2; }
.experience-grid .experience-highlight { grid-column: span 3; }
.record p + p { margin-top: .65rem; }
.education { margin-top: 1.1rem; }
.education strong { display: block; }
.education p, .record p { color: var(--muted); }
.record { border-top: 1px solid #c6cfc3; padding-block: 1rem; }
.record h3 { font-size: 1.23rem; letter-spacing: -.025em; margin-bottom: .25rem; }
.experience-highlight h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.site-footer { padding-block: 3.1rem 1.65rem; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--deep-line); padding-top: .85rem; font: 500 .8rem var(--mono); color: #bdcac7; }
.detail-hero { background: #e7eae1; border-bottom: 1px solid var(--line); padding-block: 1.55rem clamp(2rem, 4vw, 3.4rem); }
.back { display: inline-block; margin-bottom: 1.35rem; font-size: .9rem; font-weight: 650; }
.detail-hero h1 { font-size: clamp(2.25rem, 5.5vw, 4.8rem); max-width: 23ch; }
.detail-hero .lead { margin-top: 1.1rem; max-width: 43rem; color: var(--muted); }
.detail-hero .actions { margin-top: 1.45rem; }
.detail-hero .actions .button { font-size: 1.03rem; }
.detail-hero .wrap:has(> .case-logo) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .48fr); column-gap: clamp(1.5rem, 5vw, 4rem); }
.detail-hero .wrap:has(> .case-logo) > :not(.case-logo) { grid-column: 1; justify-self: start; }
.case-logo { grid-column: 2; grid-row: 1 / span 5; place-self: center end; width: 100%; height: auto; max-height: 240px; object-fit: contain; mix-blend-mode: darken; }
.detail-layout { display: grid; grid-template-columns: minmax(170px, .52fr) minmax(0, 1.75fr); gap: clamp(25px, 6vw, 90px); align-items: start; }
.detail-content { min-width: 0; }
.meta { border-top: 2px solid var(--ink); }
.meta div { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.meta dt { color: var(--accent); }
.meta dd { margin: .25rem 0 0; font-size: .93rem; }
.detail-content h2 { font-size: clamp(1.44rem, 3.36vw, 2.48rem); margin-top: 2.7rem; margin-bottom: .75rem; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 { margin-top: 1.4rem; font-size: 1.05rem; letter-spacing: -.022em; }
.detail-content ul { margin: .55rem 0 1.15rem; padding-left: 1.25rem; color: var(--muted); }
.detail-content li + li { margin-top: .35rem; }
.detail-pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.detail-content figure { max-width: 680px; margin-block: 1rem 1.25rem; }
.detail-pair figure { margin-block: 0; }
.detail-content figure a { display: block; width: fit-content; max-width: 100%; }
.detail-content figure img { width: auto; max-width: 100%; max-height: 360px; background: #fff; border: 1px solid var(--line); }
.detail-pair figure img { max-height: 260px; }
.detail-content figcaption { color: var(--muted); margin-top: .45rem; font-size: .88rem; }
.measurements { width: 100%; border-collapse: collapse; margin-block: 1.05rem; font-variant-numeric: tabular-nums; font-size: .94rem; }
.measurements caption { caption-side: bottom; text-align: left; color: var(--muted); padding-top: .5rem; font-size: .86rem; }
.measurements th, .measurements td { border-bottom: 1px solid var(--line); text-align: left; padding: .58rem .35rem .58rem 0; }
.measurements thead th { border-bottom-color: var(--ink); }
.callout { background: #e7eae1; border-left: 3px solid var(--accent); padding: 1rem 1.2rem; margin-block: 1.4rem; }
.detail-next { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.3rem; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { gap: 30px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: .6rem; }
  .brand { font-size: .88rem; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: .35rem .62rem; font-size: .76rem; }
  .nav-contact { padding: .35rem .48rem; }
  .hero-inner, .feature, .split, .presentation, .detail-layout, .detail-pair, .footer-main { grid-template-columns: 1fr; }
  .feature { grid-template-rows: 174px 1fr; }
  .feature .visual { min-height: 0; }
  .hero-inner { padding-block: 36px; }
  .detail-hero .wrap:has(> .case-logo) { grid-template-columns: minmax(0, 1fr) minmax(0, 145px); column-gap: .85rem; }
  .detail-hero .wrap:has(> .case-logo) > :not(.case-logo, .back) { grid-column: 1 / -1; }
  .case-logo { grid-row: 1; max-height: 76px; margin-bottom: .8rem; }
  .section-head { align-items: start; flex-direction: column; }
  .detail-layout { gap: 2.1rem; }
  .experience-grid { grid-template-columns: 1fr; }
  .research-cases { grid-template-columns: 1fr; }
  .experience-grid .record { grid-column: auto; }
  .meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

