:root {
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --paper-3: #dfddd5;
  --ink: #171a1d;
  --muted: #626971;
  --line: #c9c9c1;
  --dark: #10161c;
  --dark-2: #17222b;
  --dark-text: #d6dfe3;
  --blue: #1d5f82;
  --blue-light: #86bdd2;
  --orange: #d46c3e;
  --white: #fffefd;
  --max: 1240px;
  --sans: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.section-shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }

/* Solar reference: quiet frame, generous top rhythm, restrained navigation. */
.site-header { width: min(calc(100% - 64px), var(--max)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--mono); letter-spacing: .05em; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font: 500 9px/1.3 var(--mono); letter-spacing: .025em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font: 600 11px/1.2 var(--sans); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .nav-cv { padding: 9px 12px; color: var(--ink); border: 1px solid var(--ink); }
.site-nav .nav-cv:hover { color: var(--white); background: var(--ink); }
.language-toggle { flex: 0 0 auto; padding: 8px 10px; color: var(--blue); background: transparent; border: 1px solid var(--line); cursor: pointer; font: 700 11px/1 var(--sans); }
.language-toggle:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.nav-toggle { display: none; width: 38px; height: 38px; padding: 8px; background: transparent; border: 1px solid var(--line); }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

main { overflow: visible; }
.section { padding: 84px 0; }
.section.tight, .tight { padding-top: 48px; padding-bottom: 48px; }
.section.soft { background: var(--paper-2); }
.section.dark { background: var(--dark); color: var(--white); }
.eyebrow, .page-kicker, .figure-kicker { margin: 0 0 15px; color: var(--blue); font: 700 11px/1.4 var(--mono); letter-spacing: .025em; }
.dark .eyebrow, .research-hero .eyebrow { color: #9ccadd; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 860px; margin-bottom: 23px; font-size: clamp(48px, 5.5vw, 74px); line-height: 1.04; letter-spacing: -.045em; font-weight: 650; }
h2 { margin-bottom: 17px; font-size: clamp(32px, 3.5vw, 51px); line-height: 1.1; letter-spacing: -.038em; font-weight: 650; }
h3 { margin-bottom: 9px; font-size: 21px; line-height: 1.24; letter-spacing: -.02em; }
.lede { max-width: 730px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.dark .lede, .research-hero .lede { color: var(--dark-text); }
.section-heading { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; align-items: start; margin-bottom: 40px; }
.section-heading h2 { max-width: 810px; }
.section-heading p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.dark .section-heading p:last-child { color: var(--dark-text); }
.small { font-size: 13px; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; background: var(--ink); color: var(--white); text-decoration: none; font-size: 13px; font-weight: 650; }
.button:hover { background: var(--blue); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.dark .button.ghost { color: var(--white); border-color: #8c989e; }

/* Overview: editorial two-column opening with a real-robot collage. */
.home-hero { padding: 64px 0 54px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(470px, 1.07fr); gap: 58px; align-items: center; }
.home-hero h1 { font-size: clamp(56px, 6.6vw, 88px); }
.research-note { border-top: 2px solid var(--orange); padding-top: 17px; }
.home-hero .research-note { max-width: 620px; margin-top: 36px; }
.research-note p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.home-hero-visual { min-width: 0; }
.hero-collage { min-height: 475px; position: relative; padding: 0 0 58px 34px; }
.hero-primary { width: 89%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; background: var(--dark); }
.hero-secondary { width: 36%; aspect-ratio: 1 / 1; position: absolute; right: 0; bottom: 0; object-fit: cover; object-position: center; border: 10px solid var(--paper); background: var(--paper-3); }
.home-hero-visual figcaption, .project-hero-media figcaption, .systems-primary-figure figcaption, .systems-field-inset figcaption, .additional-hero-figure figcaption { padding: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
figcaption strong { color: var(--ink); }
.topic-line { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; align-items: center; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-line strong { color: var(--orange); font: 700 11px/1.35 var(--mono); }
.topic-line p { margin: 0; font-size: 18px; line-height: 1.45; }
.selected-work { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: minmax(220px, .95fr) minmax(0, 1.05fr); gap: 27px; min-height: 330px; padding: 30px 32px 32px 0; text-decoration: none; }
.project-card + .project-card { padding-left: 32px; border-left: 1px solid var(--line); }
.project-card:hover { background: rgba(255,255,255,.25); }
.project-card img { width: 100%; min-height: 250px; height: 100%; object-fit: cover; }
.project-card:nth-child(2) img { object-fit: contain; background: var(--paper-3); }
.project-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 600 10px/1.4 var(--mono); }
.project-card h3 { margin: 37px 0 11px; font-size: 28px; }
.project-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 4px 7px; color: var(--muted); border: 1px solid var(--line); font: 600 9px/1.2 var(--mono); }
.tag.hardware { color: var(--blue); border-color: #96bac8; }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #40505a; border-bottom: 1px solid #40505a; }
.fact-strip div { padding: 24px; border-right: 1px solid #40505a; }
.fact-strip div:last-child { border-right: 0; }
.fact-strip strong { display: block; color: var(--white); font-size: 25px; letter-spacing: -.025em; }
.fact-strip span { display: block; margin-top: 3px; color: var(--dark-text); font-size: 13px; }
.interest-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.interest-grid p { max-width: 700px; color: var(--dark-text); font-size: 18px; }
.interest-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #465963; }
.interest-list li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid #465963; color: var(--dark-text); }
.interest-list span { color: var(--orange); font: 700 11px/1.4 var(--mono); }
.interest-list strong { color: var(--white); font-size: 15px; }

/* Core projects: aligned two-column hero, then a full-width factual strip. */
.project-hero { padding: 54px 0 40px; }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); grid-template-areas: "copy media" "facts facts"; gap: 34px 58px; align-items: center; }
.project-hero-copy { grid-area: copy; min-width: 0; align-self: center; }
.project-hero-copy h1 { max-width: 590px; }
.project-hero-copy .lede { max-width: 590px; }
.project-hero-media { grid-area: media; min-width: 0; }
.project-hero-media img { width: 100%; height: auto; object-fit: contain; background: var(--paper-3); }
.project-hero-media video { display: block; width: 100%; height: auto; background: var(--dark); }
.hero-video-landscape { aspect-ratio: 16 / 9; object-fit: cover; }
.wheel-project-hero .project-hero-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.quadruped-video-stage { min-height: 430px; display: grid; place-items: center; padding: 18px; background: var(--dark); border: 1px solid #344650; }
.quadruped-video-stage video { width: min(100%, 250px); height: auto; object-fit: contain; box-shadow: 0 16px 36px rgba(0, 0, 0, .32); }
.project-summary { margin: 0; padding: 0; list-style: none; }
.project-facts { grid-area: facts; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts li, .systems-facts li, .additional-facts li { min-height: 92px; padding: 18px 20px; border-right: 1px solid var(--line); }
.project-facts li:last-child, .systems-facts li:last-child, .additional-facts li:last-child { border-right: 0; }
.project-summary span { display: block; margin-bottom: 6px; color: var(--blue); font: 700 10px/1.4 var(--mono); }
.project-summary li div { font-size: 14px; line-height: 1.45; }
.architecture-section { padding-top: 64px; }
.role-section { border-top: 1px solid var(--line); }
.role-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; align-items: start; }
.role-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.role-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.role-list strong { display: inline-block; min-width: 170px; margin-right: 14px; vertical-align: top; color: var(--ink); font-size: 14px; }
.dark .role-list { border-color: #40525c; }
.dark .role-list li { border-color: #40525c; color: var(--dark-text); }
.dark .role-list strong { color: var(--white); }
.scope-note { margin: 22px 0 0; padding-left: 15px; border-left: 2px solid var(--orange); color: var(--muted); font-size: 13px; }
.dark .scope-note { color: var(--dark-text); }

/* Paper-style SVG figures: vector, readable at normal desktop scale, scrollable on mobile. */
.architecture-figure { margin: 0; overflow-x: auto; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-color: var(--blue) var(--paper-2); }
.architecture-figure svg { width: 100%; min-width: 1020px; height: auto; }
.architecture-figure figcaption { padding: 15px 18px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.architecture-figure text { font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; text-rendering: geometricPrecision; }
.architecture-figure .svg-title { fill: #24313a; font-size: 19px; font-weight: 700; }
.architecture-figure .svg-label { fill: #25343d; font-size: 14px; font-weight: 650; }
.architecture-figure .svg-small { fill: #56656e; font-size: 11.5px; font-weight: 500; letter-spacing: .01em; }
.architecture-figure .svg-note { fill: #a85834; font-size: 11.5px; font-weight: 650; letter-spacing: .01em; }
.architecture-figure .node { fill: #f7f6f1; stroke: #75828a; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.architecture-figure .node.blue { fill: #e6f0f3; stroke: #47809a; }
.architecture-figure .node.orange { fill: #f9e9e1; stroke: #b76139; }
.architecture-figure .node.dark { fill: #e5ebed; stroke: #51636d; }
.architecture-figure .lane { fill: #f7f7f4; stroke: #c7cecd; stroke-width: 1; vector-effect: non-scaling-stroke; }
.architecture-figure .edge { fill: none; stroke: #294c5d; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: round; vector-effect: non-scaling-stroke; shape-rendering: geometricPrecision; marker-end: url(#arrow); }
.architecture-figure .edge.feedback { stroke: #b8613a; stroke-width: 2; marker-end: url(#orangeArrow); }
.architecture-figure .edge.dashed { stroke: #ae6b4a; stroke-dasharray: 6 5; marker-end: url(#orangeArrow); }
.architecture-figure .edge.thin { stroke-width: 1.25; }
.architecture-figure .signal { fill: #2c5668; stroke: #f7f7f4; stroke-width: 6px; stroke-linejoin: round; paint-order: stroke fill; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; text-anchor: middle; }
.architecture-figure .signal.orange { fill: #a85533; }
.architecture-figure .signal.signal-end { text-anchor: end; }
.architecture-figure .separator { stroke: #ccd1d0; stroke-width: 1; }

/* Evidence and media: natural aspect ratios, no card-height normalization. */
.media-figure { margin: 0; background: var(--white); border: 1px solid var(--line); }
.media-figure img, .media-figure video { width: 100%; height: auto; }
.media-figure .chart-image, .media-figure .contain-image { object-fit: contain; background: var(--white); }
figcaption { padding: 11px 14px 13px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-grid article { padding: 24px 26px; border-right: 1px solid var(--line); }
.evidence-grid article:last-child { border-right: 0; }
.evidence-grid h3 { margin: 13px 0 8px; font-size: 19px; }
.evidence-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.evidence-grid .evidence-num { color: var(--orange); font: 700 10px/1.4 var(--mono); }
.learning-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.learning-band p { margin: 0; color: var(--dark-text); font-size: 18px; }

.wheel-media-story { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.wheel-field-video { grid-column: 1 / -1; width: min(100%, 960px); justify-self: center; }
.wheel-field-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--dark); }
.wheel-scene-primary, .wheel-scene-secondary { grid-column: 1; }
.wheel-scene-primary img, .wheel-scene-secondary img { aspect-ratio: 16 / 9; object-fit: cover; }
.wheel-media-story .portrait-video { grid-column: 2; grid-row: 2 / span 2; align-self: center; width: min(100%, 400px); justify-self: end; }
.portrait-video video { width: 100%; max-height: 680px; object-fit: contain; background: var(--dark); }
.quadruped-evidence-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr); gap: 28px; align-items: start; }
.tracking-figure img { width: 100%; object-fit: contain; }
.quadruped-evidence-aside { display: grid; gap: 28px; }
.quadruped-evidence-aside img { width: 100%; height: auto; max-height: 300px; object-fit: contain; background: var(--paper-3); }
.landscape-video { max-width: 900px; margin: 42px auto 0; }
.landscape-video video { aspect-ratio: 16 / 9; object-fit: contain; background: var(--dark); }
.research-grounding-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.research-grounding-grid .media-figure { display: flex; flex-direction: column; }
.research-grounding-grid img { width: 100%; aspect-ratio: 16 / 9; flex: 1; object-fit: cover; background: var(--paper-3); }

/* Systems page: the 20-motor platform leads; field robotics is a secondary inset. */
.systems-hero { padding: 58px 0 50px; }
.systems-hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr); grid-template-areas: "copy visual" "facts facts"; gap: 38px 60px; align-items: center; }
.systems-hero-copy { grid-area: copy; min-width: 0; }
.systems-hero-visuals { grid-area: visual; min-width: 0; min-height: 485px; position: relative; padding: 0 110px 72px 0; }
.systems-primary-figure { width: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.systems-primary-figure img { width: 100%; height: auto; max-height: 375px; object-fit: contain; background: var(--white); }
.systems-primary-figure figcaption { min-height: 76px; padding: 11px 250px 13px 14px; }
.systems-field-inset { width: 270px; position: absolute; right: 0; bottom: 0; background: var(--white); border: 9px solid var(--paper); }
.systems-field-inset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.systems-field-inset figcaption { padding: 9px 10px 10px; }
.systems-facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-project { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 58px 0; border-top: 1px solid var(--line); align-items: center; }
.system-project:last-child { border-bottom: 1px solid var(--line); }
.system-project h2 { font-size: clamp(31px, 3.1vw, 44px); }
.system-project p { color: var(--muted); }
.system-motion-visual { display: grid; justify-items: center; }
.upper-limb-video { width: min(100%, 390px); }
.field-media-stack { display: grid; grid-template-columns: .82fr 1.18fr; gap: 22px; align-items: start; }
.field-transition-video { grid-column: 1 / -1; }
.field-transition-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--dark); }
.field-photo { margin-top: 0; }
.field-photo img { width: 100%; height: auto; object-fit: contain; }
.field-transition img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Research interests: method overview is the visual center, not a low-resolution robot still. */
.research-hero { padding: 58px 0 62px; background: var(--dark); color: var(--white); }
.research-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); gap: 58px; align-items: center; }
.research-hero h1 { max-width: 720px; font-size: clamp(46px, 5.2vw, 70px); }
.research-overview-figure { overflow-x: auto; border: 1px solid #40535f; background: var(--dark-2); }
.research-overview-figure svg { width: 100%; min-width: 600px; height: auto; }
.overview-kicker { fill: var(--blue-light); font: 700 13px/1 var(--mono); letter-spacing: 1.2px; }
.overview-node, .overview-robot { fill: #20313b; stroke: #6c8793; stroke-width: 1.2; }
.overview-node.timing { fill: #352a25; stroke: #c47750; }
.overview-node.predictor { fill: #193b4b; stroke: #79b7ce; }
.overview-node.controller { fill: #26343c; stroke: #89a1ac; }
.overview-robot { fill: #222b31; }
.overview-label { fill: #f6f6f1; font: 650 16px/1 var(--sans); }
.overview-small { fill: #c5d1d5; font: 500 12px/1 var(--mono); }
.overview-edge, .overview-feedback { fill: none; stroke: #91c6da; stroke-width: 2; marker-end: url(#overview-arrow); }
.overview-feedback { stroke: #d68358; stroke-dasharray: 6 5; }
.overview-feedback-label { fill: #e19a74; font: 600 11px/1 var(--mono); }
.research-architecture { background: var(--paper); }
.research-problem { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.research-problem p:last-child { color: var(--muted); font-size: 18px; }
.failure-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.failure-list li { min-height: 155px; padding: 22px; border-right: 1px solid var(--line); }
.failure-list li:last-child { border-right: 0; }
.failure-list span { color: var(--orange); font: 700 10px/1.4 var(--mono); }
.failure-list strong { display: block; margin: 24px 0 6px; font-size: 16px; }
.failure-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.48; }
.evaluation-table { border-top: 1px solid var(--line); }
.evaluation-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.evaluation-row strong { color: var(--blue); font: 700 10px/1.5 var(--mono); }
.evaluation-row p { margin: 0; color: var(--muted); }
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #40525c; border-left: 1px solid #40525c; }
.fit-grid article { min-height: 215px; padding: 25px 28px; border-right: 1px solid #40525c; border-bottom: 1px solid #40525c; }
.fit-grid span { color: #8ec9dc; font: 700 10px/1.4 var(--mono); }
.fit-grid h3 { margin: 24px 0 8px; color: var(--white); font-size: 21px; }
.fit-grid p { margin: 0; color: var(--dark-text); font-size: 14px; }

/* Additional work deliberately carries less visual weight. */
.additional-hero { padding: 56px 0 48px; }
.additional-hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr); grid-template-areas: "copy visual" "facts facts"; gap: 34px 58px; align-items: center; }
.additional-hero-copy { grid-area: copy; min-width: 0; }
.additional-hero-figure { grid-area: visual; min-width: 0; }
.additional-hero-figure img { width: 100%; max-height: 420px; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.additional-facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.additional-projects { display: grid; grid-template-columns: 1.15fr .85fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.additional-project { padding: 34px 42px 34px 0; }
.additional-project + .additional-project { padding-left: 42px; border-left: 1px solid var(--line); }
.additional-project h2 { font-size: 30px; }
.additional-project p { color: var(--muted); }
.pinn-evolution-video { width: min(100%, 760px); margin: 30px auto 0; }
.pinn-evolution-video video { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: var(--white); }
.publication-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.publication-list li { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.publication-list span { color: var(--blue); font: 700 10px/1.4 var(--mono); }
.publication-list p { margin: 0; color: var(--muted); }

.site-footer { padding-top: 68px; padding-bottom: 30px; }
.site-footer h2 { font-size: 34px; }
.footer-contact { display: grid; justify-items: start; gap: 5px; margin: 26px 0 42px; color: var(--muted); font-size: 14px; }
.footer-contact a { color: var(--blue); text-decoration: none; font-weight: 650; }
.footer-contact .footer-cv { margin-top: 9px; color: var(--ink); border-bottom: 1px solid var(--ink); }
.availability-note { margin-top: 3px; font-size: 13px; }
.footer-base { display: flex; justify-content: space-between; gap: 28px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font: 600 9px/1.5 var(--mono); }
.footer-base a { text-decoration: none; }

@media (max-width: 1080px) {
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 10px; }
  .home-hero-grid, .research-hero-grid { gap: 46px; }
  .project-hero-grid, .systems-hero-grid, .additional-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 38px 46px; }
  .project-card { grid-template-columns: 1fr; }
  .project-card img { min-height: 220px; max-height: 280px; }
  .project-card h3 { margin-top: 22px; }
  .systems-hero-visuals { padding-right: 70px; }
}

@media (max-width: 820px) {
  .section-shell, .site-header { width: min(calc(100% - 34px), var(--max)); }
  .site-header { min-height: 70px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy small { display: none; }
  .language-toggle { margin-left: auto; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 11px 16px 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 28px rgba(18,30,38,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 2px; font-size: 13px; }
  .site-nav .nav-cv { margin-top: 8px; padding: 10px 11px; text-align: center; }
  .section { padding: 58px 0; }
  .home-hero, .project-hero, .systems-hero, .research-hero, .additional-hero { padding-top: 38px; }
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .lede { font-size: 17px; }
  .home-hero-grid, .project-hero-grid, .systems-hero-grid, .research-hero-grid, .additional-hero-grid, .section-heading, .role-grid, .interest-grid, .learning-band, .research-problem, .system-project { grid-template-columns: 1fr; }
  .project-hero-grid, .systems-hero-grid, .additional-hero-grid { grid-template-areas: "copy" "visual" "facts"; gap: 30px; }
  .project-hero-copy { grid-area: copy; }
  .project-hero-media { grid-area: visual; }
  .home-hero-visual { order: -1; }
  .hero-collage { min-height: 390px; padding-left: 0; }
  .hero-primary { width: 92%; }
  .hero-secondary { width: 34%; }
  .project-facts, .systems-facts, .additional-facts { grid-template-columns: repeat(2, 1fr); }
  .project-facts li:nth-child(2), .systems-facts li:nth-child(2), .additional-facts li:nth-child(2) { border-right: 0; }
  .project-facts li:nth-child(-n+2), .systems-facts li:nth-child(-n+2), .additional-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .systems-facts li:last-child, .additional-facts li:last-child { grid-column: 1 / -1; }
  .section-heading { gap: 12px; margin-bottom: 34px; }
  .topic-line { grid-template-columns: 1fr; gap: 6px; }
  .selected-work, .additional-projects { grid-template-columns: 1fr; }
  .project-card, .project-card + .project-card { grid-template-columns: 1fr; padding: 26px 0; border-left: 0; }
  .project-card + .project-card { border-top: 1px solid var(--line); }
  .fact-strip, .failure-list { grid-template-columns: repeat(2, 1fr); }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid #40505a; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-grid article:last-child { border-bottom: 0; }
  .wheel-media-story, .quadruped-evidence-layout, .research-grounding-grid { grid-template-columns: 1fr; }
  .wheel-field-video { grid-column: 1; }
  .wheel-media-story .portrait-video { grid-column: 1; grid-row: auto; justify-self: center; }
  .quadruped-evidence-aside { grid-template-columns: 1fr 1fr; }
  .systems-hero-visuals { min-height: 0; padding: 0; display: grid; }
  .systems-primary-figure figcaption { min-height: 0; padding: 11px 14px 13px; }
  .systems-field-inset { width: min(64%, 230px); position: static; margin: -22px 0 0 auto; border-width: 6px; }
  .system-project { gap: 32px; padding: 52px 0; }
  .system-motion-visual, .field-media-stack { order: -1; }
  .field-media-stack { grid-template-columns: 1fr 1fr; }
  .research-overview-figure { order: -1; }
  .quadruped-video-stage { min-height: 390px; }
  .fit-grid { grid-template-columns: 1fr; }
  .evaluation-row, .publication-list li { grid-template-columns: 1fr; gap: 8px; }
  .additional-project, .additional-project + .additional-project { padding: 28px 0; border-left: 0; }
  .additional-project + .additional-project { border-top: 1px solid var(--line); }
  .footer-base { flex-direction: column; }
}

@media (max-width: 520px) {
  .section-shell, .site-header { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .home-hero h1 { font-size: 48px; }
  .hero-collage { min-height: 315px; padding-bottom: 48px; }
  .hero-primary { width: 96%; aspect-ratio: 4 / 3; }
  .hero-secondary { width: 38%; border-width: 7px; }
  .project-facts, .systems-facts, .additional-facts, .fact-strip, .failure-list { grid-template-columns: 1fr; }
  .project-facts li, .project-facts li:nth-child(2), .systems-facts li, .systems-facts li:nth-child(2), .additional-facts li, .additional-facts li:nth-child(2), .fact-strip div, .fact-strip div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-facts li:last-child, .systems-facts li:last-child, .additional-facts li:last-child, .fact-strip div:last-child { border-bottom: 0; }
  .systems-facts li:last-child, .additional-facts li:last-child { grid-column: auto; }
  .architecture-figure svg { min-width: 980px; }
  .architecture-figure figcaption { position: sticky; left: 0; max-width: calc(100vw - 28px); background: var(--white); }
  .quadruped-evidence-aside, .field-media-stack { grid-template-columns: 1fr; }
  .field-transition-video { grid-column: 1; }
  .field-photo { margin-top: 0; }
  .systems-hero-visuals { min-height: 0; padding: 0; }
  .systems-field-inset { width: min(68%, 210px); }
  .research-overview-figure svg { min-width: 620px; }
  .fit-grid article { min-height: auto; }
  .role-list strong { display: block; min-width: 0; margin: 0 0 5px; }
}
