/* Shared research content and controls. Direction-specific composition lives
   in each study's style.css; no changes apply to the existing project page. */
@font-face { font-family: Inter; src: url('../fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --navy: #183d53; --teal: #087775; --ink: #273a45; --muted: #526570;
  --line: #d7e0e4; --sans: Inter, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --content-width: 1120px; --gutter: 40px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: #fff; background: var(--teal); }
button, input, select { font: inherit; accent-color: var(--teal); caret-color: var(--teal); }
button { cursor: pointer; }
button, a, input, select, summary { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--teal); }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); text-wrap: balance; }
.container { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sec { padding-block: 48px 24px; }
.section-heading { margin-bottom: 24px; }
h2 { font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--navy); color: #fff; padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; }
.project-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 600; letter-spacing: -.025em; line-height: 1; text-decoration: none; }
.project-brand img { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; }
.project-brand > span > span { color: var(--teal); }
.paper-header h1 { font-size: 36px; line-height: 1.23; font-weight: 500; letter-spacing: -.028em; margin-block: 18px 25px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 17px; }
.authors a { text-decoration: none; }
.authors a:hover { text-decoration: underline; }
sup { font-size: .65em; vertical-align: super; margin-inline: 2px 3px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 25px; font-size: 14px; color: var(--muted); margin-top: 5px; }
.resources { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 24px; margin-top: 20px; font-size: 14px; }
.resources a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; text-decoration: none; }
.resources a:hover { text-decoration: underline; }
.resources .resource-primary { padding: 9px 20px; background: var(--navy); color: #fff; border-radius: 4px; }
.resources .resource-primary:hover { background: var(--teal); text-decoration: none; }
.teaser { margin-top: 24px; }
.teaser > a, .teaser img { display: block; width: 100%; }
.teaser figcaption { max-width: 76ch; margin: 12px auto 0; text-align: center; font-size: 14px; line-height: 1.7; }
.figure-note { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.reading-copy { max-width: 72ch; }
.reading-copy p { margin-bottom: 16px; }
.reading-copy p:last-child { margin-bottom: 0; }
.demo-box { position: relative; background: #fff; }
.demo-cover { display: block; position: relative; border: 0; padding: 0; width: 100%; background: #fff; aspect-ratio: 16/9; }
.demo-cover > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-cta { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.demo-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 12px 20px; font-size: 14px; border-radius: 4px; }
.demo-note { color: var(--muted); font-size: 12px; padding: 4px 8px; background: #fff; }
.demo-cover:hover .demo-btn { background: var(--teal); }
.demo video { display: block; width: 100%; aspect-ratio: 16/9; background: #fff; }
.media-note { margin: 16px auto 0; max-width: 76ch; font-size: 14px; text-align: center; color: var(--muted); }
.video-download { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 13px; margin-top: 10px; }
.video-download a { display: inline-flex; align-items: center; min-height: 36px; }
.switch { display: flex; gap: 32px; border-bottom: 1px solid var(--line); }
.sw { background: #fff; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 14px 0; font-size: 15px; text-align: left; min-height: 48px; }
.sw[aria-selected=true] { color: var(--teal); border-bottom-color: var(--teal); }
.explorer-panel { padding-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); font-size: 13px; line-height: 1.4; padding: 10px 16px; min-height: 44px; text-decoration: none; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn-solid, .modebtn.active, .result-tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid:hover, .modebtn.active:hover, .result-tab.is-on:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.btn:disabled { opacity: .5; cursor: wait; }
.explorer-bar, .explorer-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.example-label { color: var(--muted); font-size: 13px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.comparison-panel { min-width: 0; border-block: 1px solid var(--line); }
.comparison-head { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 0 9px; padding: 18px 0 8px; }
.letter { grid-row: span 2; font-size: 24px; font-weight: 600; color: var(--teal); }
.letter.orange { color: var(--navy); }
.comparison-head label { color: var(--muted); font-size: 12px; line-height: 1.4; }
.comparison-head select { width: 100%; min-width: 0; font-size: 14px; color: var(--navy); border: 0; background: #fff; padding: 8px 18px 8px 0; min-height: 44px; }
.viewer3d { height: 320px; position: relative; background: #fff; overflow: hidden; }
.viewer3d canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.viewer3d canvas:active { cursor: grabbing; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-block: 18px; }
.metric span { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); min-height: 34px; }
.metric b { display: block; font-size: 23px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.metric.focus b { color: var(--teal); }
.timeline { display: grid; grid-template-columns: 80px 1fr 82px; gap: 24px; align-items: center; padding-top: 20px; }
.timeline input { width: 100%; min-height: 32px; cursor: pointer; }
.tick-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.timeline output { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.timeline-track { padding-top: 10px; }
.explorer-foot { color: var(--muted); font-size: 12px; margin: 20px 0 0; }
.note { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 18px; }
.demo-provenance { max-width: 96ch; }
.code-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding-top: 8px; }
.code-layout h3 { margin-bottom: 16px; }
.code-layout p { font-size: 16px; }
.field-list { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 13px; color: var(--teal); }
.code { font: 13px/1.8 var(--mono); overflow: auto; margin: 0; padding: 22px 0; white-space: pre; scrollbar-color: #b6c5cc #fff; }
.schema-code { padding-top: 0; }
.syn-key { color: var(--navy); }
.syn-string { color: var(--teal); }
.syn-value { color: #1b638a; }
.syn-comment { color: var(--muted); }
.sec-lede { max-width: 72ch; margin-bottom: 24px; }
.results-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.results-toolbar > a { margin-left: auto; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-table th, .results-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.results-table thead th { font-size: 13px; font-weight: 500; border-block: 1px solid var(--navy); }
.results-table .c-model { text-align: left; font-weight: 400; padding-left: 0; }
.results-table .ours .c-model { font-weight: 600; }
.results-table .ours { color: var(--teal); }
.results-table .ensemble { border-bottom: 1px solid var(--navy); }
.citation-heading { display: flex; align-items: center; justify-content: flex-end; gap: 20px; color: var(--muted); font-size: 13px; }
.citation { margin-top: 14px; border-block: 1px solid var(--line); }
.page-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 24px 36px; margin-top: 48px; font-size: 13px; color: var(--muted); }
.page-footer a { min-height: 32px; }
@media (max-width: 800px) {
  :root { --gutter: 28px; }
  .title-break { display: none; }
  .paper-header h1 { font-size: 32px; }
  .authors { font-size: 16px; gap: 5px 20px; }
  .viewer3d { height: 270px; }
  .code-layout { gap: 24px; }
  .metric b { font-size: 21px; }
  .metric span { font-size: 11px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .sec { padding-block: 36px 16px; }
  .section-heading { margin-bottom: 20px; }
  h2 { font-size: 25px; }
  .paper-header h1 { font-size: 28px; }
  .authors { font-size: 15px; gap: 4px 16px; }
  .affiliations { font-size: 13px; gap: 0 18px; }
  .resources { gap: 4px 18px; font-size: 13px; margin-top: 18px; }
  .resources .resource-primary { padding-inline: 15px; }
  .teaser { margin-top: 20px; }
  .teaser figcaption { font-size: 13px; text-align: left; margin-top: 12px; }
  .figure-note { font-size: 12px; }
  .demo-btn { font-size: 12px; padding: 10px 14px; }
  .demo-note { display: none; }
  .media-note { text-align: left; font-size: 13px; }
  .video-download { gap: 4px 16px; justify-content: flex-start; }
  .switch { justify-content: space-between; gap: 14px; }
  .sw { font-size: 13px; padding-block: 12px; }
  .compare, .code-layout { grid-template-columns: 1fr; gap: 24px; }
  .viewer3d { height: 290px; }
  .btn { font-size: 12px; padding-inline: 12px; }
  .mode-tabs { gap: 8px; }
  .metrics { gap: 8px; }
  .metric span { font-size: 12px; }
  .timeline { grid-template-columns: 64px 1fr 62px; gap: 14px; }
  .timeline output { font-size: 13px; }
  .results-toolbar > a { margin-left: 0; }
  .results-table { font-size: 13px; }
  .results-table th, .results-table td { padding: 11px 10px; }
  .results-table thead th { font-size: 12px; white-space: normal; }
  .results-table .c-model { min-width: 156px; }
  .code { font-size: 12px; }
  .citation-heading { font-size: 12px; }
  .page-footer { flex-wrap: wrap; gap: 8px; font-size: 12px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Impeccable / distill: one reading axis, retained identity, fewer ornaments. */
:root { --content-width: 1100px; }
.paper-header { text-align: center; padding-top: 48px; }
.project-brand { font-size: 56px; }
.project-brand img { width: 64px; height: 64px; }
.paper-header h1 { max-width: 1100px; margin-inline: auto; font-size: 42px; line-height: 1.2; font-weight: 500; margin-block: 22px 28px; }
.teaser { max-width: 1080px; }
.sec { max-width: 980px; padding-top: 60px; }
.sec h2 { text-align: center; }
#abstract, #cite { max-width: 780px; }
.reading-copy { margin-inline: auto; }
.demo { width: calc(100% - var(--gutter) * 2); max-width: none; }
.section-heading { margin-bottom: 26px; }
.page-footer { max-width: 980px; }
@media (max-width: 1100px) {
  .title-break { display: none; }
}
@media (max-width: 800px) {
  .project-brand { font-size: 50px; }
  .project-brand img { width: 60px; height: 60px; }
  .paper-header h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .paper-header { padding-top: 30px; }
  .project-brand { font-size: 40px; }
  .project-brand img { width: 48px; height: 48px; }
  .paper-header h1 { font-size: 30px; margin-block: 18px 22px; }
  .sec { padding-top: 40px; }
  .sec h2 { text-align: left; }
}

@media (max-width: 380px) {
  .project-brand { font-size: 36px; }
  .project-brand img { width: 44px; height: 44px; }
  .paper-header h1 { font-size: 28px; }
}
