:root {
  color-scheme: light;
  --ink: #302923;
  --muted: #776b61;
  --accent: #b84c16;
  --accent-hover: #943b0f;
  --accent-border: #e5c9b4;
  --accent-soft: #fff0e2;
  --accent-strong: #9a410d;
  --line: #ece3dc;
  --wash: #fff5ed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; line-height: 1.75; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
button { font: inherit; }
svg { width: 17px; height: 17px; }
p { margin: 0 0 14px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-size: clamp(32px, 4.8vw, 46px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.18; margin: 5px 0 15px; }
h2 { font-size: 26px; line-height: 1.35; font-weight: 500; letter-spacing: -.65px; margin-bottom: 24px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.55; }
strong { font-weight: 600; }
.page { max-width: 964px; padding: 0 42px; margin: auto; }
.profile { display: grid; grid-template-columns: 180px 1fr; gap: 46px; align-items: center; padding: 68px 0 54px; }
.portrait { display: block; width: 180px; height: 230px; object-fit: cover; border-radius: 7px; background: var(--wash); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin-bottom: 9px; }
.position { font-size: 16px; margin-bottom: 1px; }
.affiliation { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.separator { padding: 0 7px; color: #b8a899; }
.email { font-size: 14px; }
.profile-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 6px 14px; border: 1px solid var(--accent-border); border-radius: 4px; font-size: 12px; font-weight: 500; transition: background .15s, border-color .15s; }
.button:hover { background: var(--wash); border-color: var(--accent); text-decoration: none; }
.button-primary { background: var(--accent); border-color: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-hover); color: white; }
.navigation { position: sticky; top: 0; z-index: 10; display: flex; gap: 32px; align-items: center; min-height: 60px; border-block: 1px solid var(--line); background: #fff; }
.navigation a { position: relative; display: inline-flex; align-items: center; min-height: 59px; color: var(--muted); white-space: nowrap; font-size: 11px; letter-spacing: 1.1px; font-weight: 600; text-transform: uppercase; }
.navigation a:hover, .navigation a[aria-current] { color: var(--accent); text-decoration: none; }
.navigation a[aria-current]::after { position: absolute; content: ""; height: 2px; background: var(--accent); bottom: -1px; left: 0; right: 0; }
.section { padding: 43px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.about p { font-size: 15px; line-height: 1.9; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 0; }
.publication-view { color: var(--accent); border-bottom: 2px solid var(--accent); padding: 8px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.count { color: var(--muted); font-size: 10px; margin-left: 3px; }
.section-note { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.paper { display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 14px; padding: 25px 0; border-bottom: 1px solid #f1eae4; }
.paper-with-figure { grid-template-columns: 55px minmax(0, 1fr) 210px; column-gap: 20px; }
.paper-figure { margin: 0; min-width: 0; align-self: center; }
.paper-image-link { display: block; border: 1px solid var(--line); border-radius: 5px; padding: 5px; background: white; transition: border-color .15s; }
.paper-image-link:hover { border-color: var(--accent); }
.paper-figure img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: contain; }
/* Show panel A (y=0..512) from the original 606 x 1116 figure. */
.paper[data-paper="modular-robot"] .paper-figure img { aspect-ratio: 606 / 512; max-height: none; object-fit: cover; object-position: center top; }
.paper:last-child { border-bottom: 0; padding-bottom: 2px; }
.paper-year { font-size: 12px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.paper h3 { font-size: 16px; line-height: 1.55; margin-bottom: 7px; }
.paper h3 a { color: var(--ink); }
.paper h3 a:hover { color: var(--accent); }
.paper p { margin: 3px 0; font-size: 13px; line-height: 1.75; }
.authors { color: var(--muted); }
.authors strong { color: var(--ink); text-decoration: underline; text-decoration-color: #dccabb; text-underline-offset: 3px; }
.paper .venue { font-size: 12px; color: #6a584a; }
.badge { display: inline-block; padding: 0 7px; margin: 3px 0 0 5px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 500; line-height: 1.9; white-space: nowrap; }
.badge-neutral { background: #f3f0ed; color: #73675c; }
.paper-links { display: flex; gap: 9px; margin-top: 11px; }
.paper-links a { display: inline-flex; align-items: center; gap: 16px; padding: 2px 10px; border: 1px solid var(--accent-border); border-radius: 3px; min-height: 29px; font-size: 11px; }
.paper-links a:hover { text-decoration: none; background: var(--wash); border-color: var(--accent); }
.education-list { display: grid; gap: 28px; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.entry-heading h3 { font-size: 15px; }
.date { color: var(--muted); white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; margin: 0; }
.degree { font-size: 14px; margin: 2px 0; }
.entry-detail { color: var(--muted); font-size: 12px; margin: 2px 0 0; }
.location { float: right; font-size: 11px; }
.award-list { display: grid; gap: 27px; }
.award { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 20px; }
.award-with-figure { grid-template-columns: 88px minmax(0,1fr) 210px; }
.award > .date { padding-top: 3px; }
.award h3 { font-size: 14px; }
.award p { margin-bottom: 0; font-size: 12px; }
.award .entry-detail { font-size: 11px; }
.award .mission { margin-top: 7px; }
.award-note { color: var(--accent); margin-top: 5px; }
details { margin-top: 7px; font-size: 12px; }
summary { color: var(--accent); cursor: pointer; width: fit-content; }
details ul { padding-left: 18px; margin: 7px 0 0; color: var(--muted); }
details > p { margin-top: 8px; }
.platform-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; }
.platform-list > div { border-left: 2px solid var(--accent-border); padding-left: 16px; }
.platform-list dt { font-size: 13px; font-weight: 600; }
.platform-list dd { font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.platform-list dd span { font-size: 12px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.video-card { margin: 0; min-width: 0; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: #161412; }
.video-card video:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.video-card figcaption { margin-top: 10px; }
.video-card h3 { font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 38px; font-size: 11px; }
.footer-name { font-weight: 600; color: var(--ink); font-size: 12px; }
footer p { font-size: 10px; color: var(--muted); margin: 4px 0 0; }
.footer-right { text-align: right; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 50; background: var(--accent); color: #fff; padding: 8px 16px; }
.skip-link:focus { top: 10px; }
@media (max-width: 760px) {
  .page { padding: 0 28px; }
  .profile { grid-template-columns: 145px minmax(0,1fr); gap: 28px; padding: 42px 0; }
  .portrait { width: 145px; height: 186px; }
  h1 { font-size: 34px; letter-spacing: -1.2px; margin-bottom: 10px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .position { font-size: 13px; }
  .affiliation, .email { font-size: 12px; }
  .profile-links { margin-top: 15px; gap: 7px; }
  .button { font-size: 11px; padding: 5px 10px; }
  .navigation { gap: 24px; overflow-x: auto; scrollbar-width: thin; }
  .navigation a { font-size: 10px; letter-spacing: .6px; }
  .entry-heading { display: block; }
  .entry-heading .date { margin: 2px 0 5px; }
  .location { float: none; display: block; margin-top: 3px; }
  .paper-with-figure { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
  .award-with-figure { grid-template-columns: 88px minmax(0,1fr); }
  .paper-with-figure .paper-figure, .award-with-figure .paper-figure { grid-column: 1 / -1; width: 100%; margin-top: 8px; justify-self: stretch; }
  .paper-figure img { height: auto; max-height: none; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 74px; }
  .page { padding: 0 22px; }
  .profile { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 0; }
  .portrait { width: 120px; height: 154px; }
  .profile-copy { width: 100%; }
  h1 { font-size: 36px; }
  .position { font-size: 14px; }
  .affiliation, .email { font-size: 13px; }
  .profile-links { margin-top: 18px; }
  .button { min-height: 42px; font-size: 12px; padding: 7px 13px; }
  .navigation { gap: 23px; min-height: 54px; }
  .navigation a { min-height: 53px; }
  .section { padding: 32px 0; }
  h2 { font-size: 24px; margin-bottom: 19px; }
  .about p { font-size: 14px; }
  .section-heading { gap: 10px; }
  .paper, .paper-with-figure { grid-template-columns: minmax(0,1fr); gap: 5px; padding: 22px 0; }
  .paper-with-figure .paper-figure { margin-top: 13px; }
  .paper-year { font-size: 11px; }
  .paper h3 { font-size: 15px; }
  .paper p { font-size: 12px; }
  .paper .venue { font-size: 11px; }
  .badge { margin-left: 0; }
  .paper-links a { min-height: 36px; }
  .award { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .platform-list { grid-template-columns: minmax(0,1fr); gap: 20px; }
  footer { flex-direction: column; gap: 15px; }
  .footer-right { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .page { padding: 0; max-width: none; }
  .profile { padding: 0 0 20px; }
  .navigation, .profile-links, .skip-link { display: none !important; }
  .section { padding: 20px 0; }
  .paper, .education-entry, .award { break-inside: avoid; }
  a { color: inherit; }
  footer { padding-bottom: 0; }
}
