:root {
  --ink: #20252b;
  --muted: #616972;
  --line: #e0e4e8;
  --page-width: 1180px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #27657b; outline-offset: 5px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 18px; background: #fff; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-nav { border-bottom: 1px solid #edf0f2; background: #fff; }
.nav-inner { max-width: var(--page-width); margin: auto; min-height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { font-size: 21px; letter-spacing: -.06em; font-weight: 750; text-decoration: none; }
.wordmark span { color: #667581; }
.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-code { color: #535b64; font-size: 14px; text-decoration: none; }
.nav-links a:hover, .nav-code:hover { color: #111; }
.previous-works { position: relative; color: #535b64; font-size: 14px; }
.previous-works summary { cursor: pointer; list-style: none; white-space: nowrap; }
.previous-works summary::-webkit-details-marker { display: none; }
.previous-works summary::after { content: ' ▾'; }
.previous-works summary:hover { color: #111; }
.previous-works summary:focus-visible { outline: 2px solid #27657b; outline-offset: 5px; }
.previous-works-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 5; min-width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 20px #20252b1a; }
.previous-works-menu a { display: block; padding: 10px 12px; border-radius: 5px; white-space: nowrap; }
.previous-works-menu a:hover { background: #f2f4f6; }
main.project-page { max-width: var(--page-width); margin: auto; padding: 0 24px; }
.project-hero { max-width: 1060px; margin: auto; padding: 68px 0 46px; text-align: center; }
.project-hero .project-name { margin: 0 0 20px; color: #58636c; font-size: 16px; font-weight: 500; letter-spacing: .015em; }
.project-hero h1 { margin: 0; font-size: clamp(32px, 4.3vw, 52px); font-weight: 700; line-height: 1.13; letter-spacing: -.045em; }
.project-hero h1 > span { display: block; margin-top: 16px; font-size: clamp(23px, 2.8vw, 32px); font-weight: 450; line-height: 1.28; letter-spacing: -.025em; color: #4b535c; }
.authors { max-width: 990px; display: grid; grid-template-columns: repeat(5, max-content); justify-content: center; column-gap: 19px; row-gap: 12px; margin: 30px auto 0; font-size: 17px; line-height: 1.55; }
.authors > span { white-space: nowrap; }
sup { position: relative; margin-left: 2px; font-size: .68em; line-height: 0; }
.affiliations { max-width: 1000px; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; margin: 21px auto 0; color: #67717a; font-size: 15px; line-height: 1.65; }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.resource-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 9px 18px; border: 1px solid #dce1e5; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 550; transition: background .15s, border-color .15s; }
.resource-button.primary { border-color: #262c33; background: #262c33; color: #fff; }
.resource-button:hover { background: #f2f4f6; border-color: #abb3bc; }
.resource-button.primary:hover { background: #424951; border-color: #424951; }
.resource-button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
figure.teaser-figure { max-width: 880px; margin: 0 auto 72px; width: 100%; aspect-ratio: auto; overflow: visible; border-radius: 0; }
.teaser-figure a { display: block; }
.teaser-figure img { display: block; width: 100%; height: auto; aspect-ratio: auto; border-radius: 0; background: #fff; transform: translateX(.6%); }
.teaser-figure figcaption { max-width: 880px; margin: 22px auto 0; color: #4c555e; text-align: left; font-size: 15px; font-weight: 700; line-height: 1.65; }
.reading-section { max-width: 800px; margin: 0 auto 76px; }
.project-page h2 { margin: 0 0 24px; color: var(--ink); font-size: 29px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.reading-section > h2 { text-align: center; }
.reading-section p, .section-intro > p, .results-explanation { margin: 0 0 18px; color: #4f5963; font-size: 17px; line-height: 1.8; }
.reading-section strong { color: #2d343b; font-weight: 600; }
.wide-section { margin: 0 0 80px; padding-top: 54px; border-top: 1px solid var(--line); }
.section-intro { max-width: 800px; margin: 0 auto 32px; text-align: center; }
.section-intro h2 { margin-bottom: 16px; }
.section-intro > p { text-align: left; }
.patch-subsection { margin-top: 48px; }
.patch-subsection .section-intro { text-align: left; }
.patch-subsection h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.demo-block .demo-section { max-width: 800px; margin: 32px auto 48px; }
.demo-block .demo-section:last-child { margin-bottom: 0; }
.demo-block .controls { font-size: 15px; max-width: 510px; margin: 0 auto 18px; }
.demo-block .comparison-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) repeat(2, minmax(0, 2fr)); gap: 14px 18px; }
.demo-block .comparison-panel { border-radius: 10px; background: #fbfcfd; padding: 12px; }
.demo-block .reconstruction-panel { background: #fff; }
.demo-block .panel-heading { color: #535e68; font-size: 15px; font-weight: 550; }
.cls-figure { max-width: 700px; margin: 0 auto 36px; aspect-ratio: auto; overflow: visible; }
.cls-figure img { width: 100%; max-width: 500px; height: auto; aspect-ratio: auto; margin: 0 auto 18px; background: #fff; }
.cls-figure figcaption { color: #4c555e; font-size: 15px; font-weight: 700; line-height: 1.65; text-align: left; }
.interactive-example, .cross-image-demo { max-width: 800px; margin: 0 auto 48px; }
.cross-image-demo { max-width: 800px; }
.cross-image-demo > div { max-width: 700px; margin: 0 auto; }
.cross-image-demo:last-child { margin-bottom: 0; }
.interactive-example:last-child { margin-bottom: 0; }
.interactive-example h3, .cross-image-demo h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.interactive-example > p, .cross-image-demo > p { max-width: 800px; margin: 0 0 20px; color: #4f5963; font-size: 17px; line-height: 1.8; }
.interactive-example h3 { max-width: 800px; margin: 0 auto 12px; }
.interactive-example > p { margin: 0 auto 20px; }
.interactive-example .controls, .cross-image-demo .controls { grid-template-columns: auto 4em minmax(90px, 1fr) auto; max-width: 510px; margin: 0 auto 18px; font-size: 15px; }
.steering-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steering-grid > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 14px; }
.steering-grid .panel-heading { align-self: end; }
.steering-grid img, .cross-image-grid img { height: auto; aspect-ratio: 1; border-radius: 7px; }
.cross-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; }
.cross-image-grid .panel-heading { grid-column: auto; align-self: end; }
.demo-status { margin: 8px 0 0; color: #8b3c2a; font-size: 14px; }
.demo-status:empty { display: none; }
.results-figure { max-width: 700px; margin: 0 auto; aspect-ratio: auto; overflow: visible; }
.results-figure figcaption { margin-top: 18px; color: #4c555e; font-size: 15px; font-weight: 700; line-height: 1.65; text-align: left; }
.results-table-wrapper { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 18px; margin-bottom: 18px; color: #3d4852; font-weight: 500; }
th, td { padding: 14px 18px; text-align: center; border-bottom: 1px solid #e5e9ec; }
thead th { font-weight: 550; color: #505c67; }
thead tr:first-child th { border-bottom-color: #bbc3cb; }
tbody th { font-weight: 500; text-align: left; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td strong { font-weight: 650; }
.results-explanation { max-width: 800px; margin: auto; }
.citation-section { margin-bottom: 60px; padding-top: 20px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.citation-heading h2 { margin: 0; }
#copy-citation { font-size: 14px; padding: 9px 13px; background: #fff; }
pre { margin: 22px 0 18px; padding: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fa; color: #39454f; font: 14px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.text-link { color: #3b586a; font-size: 16px; }
p.copy-status { min-height: 24px; margin-top: 14px; font-size: 16px; }
.site-footer { padding: 28px 24px; border-top: 1px solid var(--line); }
.site-footer > div { max-width: 1132px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer p { display: flex; gap: 24px; margin: 0; color: #616d77; font-size: 15px; }
.site-footer a { text-decoration: none; }
@media (max-width: 800px) {
  .nav-inner { min-height: 64px; }
  .nav-links { gap: 18px; }
  .project-hero { padding-top: 44px; }
  .authors { display: flex; font-size: 16px; column-gap: 15px; flex-wrap: wrap; }
  .affiliations { font-size: 15px; }
}
@media (max-width: 700px) {
  .demo-block .demo-section > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-block .comparison-grid { display: contents; }
  .demo-block .comparison-panel { grid-column: 1; grid-row: auto; grid-template-rows: auto; gap: 8px; padding: 8px; }
  .demo-block .reference-panel { order: 1; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
  .demo-block .controls { order: 2; width: 100%; margin: 0 auto; }
  .demo-block .reconstruction-panel { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-block .demo-status { order: 4; }
  .demo-block .panel-heading { font-size: 13px; }
  .demo-block .activation-pair { gap: 4px; }
  .demo-block .dimension-marker { top: 3px; left: 3px; width: 16px; height: 16px; }
  .demo-block .dimension-marker::before { width: 7px; height: 7px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 18px; }
  .nav-links > a { display: none; }
  .nav-links { gap: 18px; }
  .nav-code { display: none; }
  main.project-page { padding: 0 18px; }
  .project-hero { padding: 36px 0; }
  .project-hero h1 { font-size: 34px; }
  .project-hero h1 > span { font-size: 23px; }
  .desktop-break { display: none; }
  .authors { display: flex; flex-wrap: wrap; justify-content: center; font-size: 16px; column-gap: 15px; row-gap: 8px; margin-top: 25px; }
  .affiliations { margin-top: 18px; gap: 8px 15px; }
  .resource-links { gap: 8px; margin-top: 24px; }
  .resource-button { padding: 9px 13px; }
  figure.teaser-figure { margin-bottom: 48px; }
  .teaser-figure figcaption { margin-top: 18px; text-align: left; }
  .project-page h2 { font-size: 26px; }
  .reading-section { margin-bottom: 48px; }
  .wide-section { margin-bottom: 48px; padding-top: 36px; }
  .steering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cross-image-grid { gap: 8px; }
  .cross-image-grid .panel-heading { font-size: 12px; }
  pre { padding: 18px; font-size: 13px; }
  .demo-block .controls { max-width: none; }
  .citation-heading { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .resource-button { transition: none; }
}
