@charset "UTF-8";

:root {
  --ink: #363636;
  --muted: #606060;
  --link: #245f98;
  --line: #dedede;
  --soft: #f7f7f7;
  --max: 1000px;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
figure, p, h1, h2, h3, ul { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h2 { font-size: 30px; font-weight: 600; text-align: center; margin-bottom: 24px; }
h3 { font-size: 22px; font-weight: 600; margin: 34px 0 14px; }
button:focus-visible, a:focus-visible, input:focus-visible, pre:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 48px; }
.prose { max-width: 800px; margin-inline: auto; }
.prose p + p { margin-top: 18px; }
.prose a { text-decoration: underline; }
.section-intro { color: var(--muted); text-align: center; margin: -10px auto 26px; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.publication-header { padding-top: 52px; padding-bottom: 38px; text-align: center; }
.publication-header h1 { font-size: clamp(29px, 3.2vw, 43px); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 22px; list-style: none; padding: 0; margin-top: 26px; font-size: 18px; }
.affiliation { margin-top: 6px; font-size: 17px; }
.venue { margin-top: 12px; color: #a32f39; font-size: 19px; font-weight: 600; }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 19px; border: 1px solid #363636; border-radius: 24px; background: #363636; color: #fff; font-size: 15px; line-height: 1.4; }
.button:hover { background: #202020; text-decoration: none; }
.button svg { width: 17px; height: 17px; flex-shrink: 0; }
.button-note { font-size: 13px; }
.tldr { max-width: 820px; margin: 30px auto 0; font-size: 17px; line-height: 1.7; }

.showcase { padding-top: 14px; padding-bottom: 24px; }
.showcase h2 { font-size: 25px; margin-bottom: 20px; }
.showcase .section-intro { font-size: 15px; margin-bottom: 20px; }
.comparison-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.sample-navigation { display: flex; align-items: center; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.sample-navigation button { width: 36px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 19px; }
.sample-navigation button:hover { background: var(--soft); }
.dpo-control { position: relative; display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.dpo-control input { position: absolute; z-index: 1; left: 0; top: 0; width: 36px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { display: block; width: 36px; height: 22px; border-radius: 20px; background: #969696; }
.switch-track::before { content: ""; display: block; width: 16px; height: 16px; margin: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.dpo-control input:checked + .switch-track { background: #454545; }
.dpo-control input:checked + .switch-track::before { transform: translateX(14px); }
.dpo-control input:focus-visible + .switch-track { outline: 3px solid var(--link); outline-offset: 4px; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sample figcaption { min-height: 34px; padding-bottom: 8px; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.4; }
.sample figcaption small { font-weight: 400; font-size: 13px; }
.sample img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.zoomable { display: block; cursor: zoom-in; }
.prompt { margin-top: 15px; min-height: 52px; text-align: center; font-size: 14px; line-height: 1.65; }
.prompt strong { font-weight: 600; }
.example-picker { display: flex; justify-content: center; gap: 9px; overflow-x: auto; padding: 6px 4px 10px; margin: 0 auto 14px; scrollbar-width: thin; scroll-padding-inline: 8px; }
.example-picker button { flex: 0 0 78px; display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 5px; color: var(--muted); background: #fff; border: 2px solid transparent; border-radius: 5px; font-size: 11px; line-height: 1.4; }
.example-picker button img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.example-picker button:hover { background: var(--soft); }
.example-picker button[aria-pressed="true"] { border-color: #555; color: var(--ink); font-weight: 600; }
.abstract-copy { text-align: justify; }

.method-figure { margin-block: 30px 26px; }
.method-figure img { width: 100%; }
.method-figure figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.method-copy strong { font-weight: 600; }
.results-section { background: var(--soft); margin-top: 12px; }
.results-section h3:first-child { margin-top: 28px; }
.results-table { overflow-x: auto; margin-top: 24px; }
.results-table table { width: 100%; border-collapse: collapse; text-align: right; font-variant-numeric: tabular-nums; }
.results-table caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 13px; padding-top: 10px; }
.results-table th, .results-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.results-table thead { border-top: 2px solid #777; border-bottom: 1px solid #777; }
.results-table tbody tr:last-child { border-bottom: 2px solid #777; }
.results-table th:first-child { text-align: left; }
.results-table tbody th { font-weight: 400; }
.model-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.model-gallery img { width: 100%; background: #fff; }
.model-gallery figcaption { text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.model-gallery figcaption strong { color: var(--ink); }
.t2i-results { max-width: none; }
.t2i-results > h3, .t2i-results > p { max-width: 800px; margin-inline: auto; }
.quantitative-scroll { margin-top: 26px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.quantitative-scroll:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.quantitative-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: 24px; min-width: 700px; }
.quantitative-figures img { width: 100%; }
.t2i-results figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.news-section { padding-bottom: 24px; }
.news-list { padding-left: 21px; }
.news-list li + li { margin-top: 10px; }
.news-list time { font-weight: 600; margin-right: 7px; white-space: nowrap; }

.citation-section { max-width: 848px; padding-top: 28px; padding-bottom: 36px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.citation-heading h2 { margin: 0; text-align: left; font-size: 26px; }
.copy-button { border: 1px solid #b9b9b9; border-radius: 4px; padding: 7px 12px; background: #fff; color: var(--ink); font-size: 12px; }
.copy-button:hover { background: var(--soft); }
.citation-section pre { margin: 20px 0 0; padding: 22px 24px; overflow-x: auto; background: #f4f4f4; font-size: 13px; line-height: 1.7; tab-size: 2; }
.citation-section code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.citation-status { min-height: 24px; padding-top: 5px; color: var(--muted); font-size: 12px; }
.footer { background: #fafafa; padding: 30px 24px; color: var(--muted); text-align: center; font-size: 13px; }
.footer p + p { margin-top: 5px; }

dialog { width: min(1300px, 96vw); max-height: 94dvh; padding: 52px 20px 20px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 100px #0004; background: #fff; color: var(--ink); }
dialog::backdrop { background: #000b; }
dialog img { max-height: calc(90dvh - 120px); max-width: 100%; width: auto; margin: auto; object-fit: contain; }
dialog img[src$=".svg"] { width: 100%; }
dialog p { font-size: 13px; text-align: center; color: var(--muted); margin-top: 16px; }
.dialog-close { position: absolute; top: 10px; right: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 4px; padding: 5px 12px; font-size: 12px; }
.dialog-close span { font-size: 20px; line-height: 1; }
.modal-open { overflow: hidden; }

@media (max-width: 850px) {
  .publication-header { padding-top: 40px; }
  .publication-header h1 { font-size: 36px; }
  .authors { gap: 3px 18px; font-size: 17px; }
  .example-picker { justify-content: flex-start; }
  .section { padding-block: 40px; }
  .news-section { padding-bottom: 20px; }
  .citation-section { padding-top: 24px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  h2 { font-size: 27px; margin-bottom: 20px; }
  h3 { font-size: 20px; line-height: 1.4; margin-top: 28px; }
  .section { padding-block: 34px; }
  .publication-header { padding-block: 32px 30px; }
  .publication-header h1 { font-size: 29px; line-height: 1.24; letter-spacing: -.02em; }
  .authors { font-size: 16px; gap: 3px 17px; margin-top: 22px; }
  .affiliation { font-size: 15px; }
  .venue { font-size: 18px; margin-top: 10px; }
  .publication-links { margin-top: 16px; }
  .button { padding: 9px 15px; font-size: 14px; }
  .button-note { font-size: 12px; }
  .tldr { font-size: 15px; margin-top: 26px; text-align: left; }
  .showcase { padding-top: 12px; padding-bottom: 12px; }
  .showcase h2 { font-size: 23px; }
  .showcase .section-intro { font-size: 14px; }
  .comparison-controls { gap: 12px; }
  .comparison-grid { gap: 7px; }
  .sample figcaption { font-size: 13px; min-height: 48px; padding-bottom: 7px; }
  .sample figcaption small { display: block; font-size: 11px; }
  .sample img { border-radius: 2px; }
  .prompt { font-size: 12px; min-height: 68px; margin-top: 13px; }
  .dpo-control { font-size: 13px; }
  .example-picker { gap: 6px; margin-bottom: 10px; }
  .example-picker button { flex-basis: 70px; padding: 4px; font-size: 10px; }
  .example-picker button img { width: 58px; height: 58px; }
  .abstract-copy { text-align: left; }
  .method-figure { margin-block: 24px; }
  .method-figure figcaption { font-size: 12px; margin-top: 14px; }
  .results-table table { font-size: 13px; }
  .results-table th, .results-table td { padding: 10px 9px; }
  .results-table caption { font-size: 12px; }
  .model-gallery { grid-template-columns: 1fr; gap: 24px; }
  .model-gallery figcaption { font-size: 13px; margin-top: 10px; }
  .t2i-results figcaption { font-size: 12px; }
  .news-section { padding-bottom: 20px; }
  .citation-section { padding-top: 24px; padding-bottom: 24px; }
  .citation-section pre { padding: 18px 16px; font-size: 11px; }
  .citation-heading h2 { font-size: 24px; }
  dialog { width: 96vw; padding: 48px 10px 15px; }
  dialog p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
