:root { --ink: #292d34; --muted: #717680; --line: #dfe3e8; --accent: #2374ab; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.75; letter-spacing: 0; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); }
img { display: block; }
button:focus-visible, a:focus-visible, select:focus-visible, .hover-swap:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-hero { padding: 66px 24px 32px; text-align: center; }
.hero-inner { max-width: 1000px; margin: auto; }
h1 { margin: 0; font-size: 46px; font-weight: 700; line-height: 1.2; }
.subtitle { margin: 12px 0 25px; font-size: 30px; line-height: 1.35; font-weight: 500; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--accent); font-size: 18px; }
.authors > span { white-space: nowrap; }
.authors a { text-decoration: none; }
.authors a:hover, .authors a:focus-visible { text-decoration: underline; }
.authors sup, .affiliations sup { font-size: 11px; line-height: 0; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 12px; font-size: 15px; color: var(--ink); }
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 6px; background: #30343b; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s; }
.pill-button:hover { background: #2374ab; }
.section-block { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0; border-bottom: 1px solid #edf0f3; scroll-margin-top: 24px; }
h2 { margin: 0 0 22px; font-size: 29px; line-height: 1.35; font-weight: 600; text-align: center; }
.section-heading { text-align: center; margin-bottom: 26px; }
.section-heading p { max-width: 800px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.teaser-block { padding-top: 24px; }
.teaser-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
.icon-button:hover { background: #f1f5f8; }
.teaser-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.teaser-tab { border: 0; border-bottom: 2px solid transparent; padding: 7px 13px; background: transparent; color: var(--muted); font-size: 13px; }
.teaser-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.teaser-grid { min-height: 430px; }
.teaser-row { display: flex; align-items: flex-start; justify-content: center; gap: 18px; margin-bottom: 20px; }
.teaser-figure { margin: 0; min-width: 0; flex: 0 1 auto; }
.teaser-figure figcaption { text-align: center; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: #555e6a; }
.teaser-figure img { box-sizing: content-box; height: 166px; width: auto; max-width: 100%; border: 1px solid #cfd5dd; border-radius: 3px; }
.teaser-caption { text-align: center; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.teaser-caption strong { color: var(--ink); font-weight: 500; }
.copy, .contribution-list { max-width: 900px; margin: 0 auto; }
.copy p { margin: 0 0 16px; text-align: justify; }
.copy p:last-child { margin-bottom: 0; }
.contribution-list { padding-left: 24px; }
.contribution-list li { padding-left: 5px; margin-bottom: 17px; }
.contribution-list li:last-child { margin-bottom: 0; }
.contribution-list strong { font-weight: 600; }
.explorer-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 32px 0 28px; }
.toolbar-label, .mini-label { margin: 0 0 9px; font-size: 13px; color: var(--muted); font-weight: 500; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tab { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font-size: 13px; }
.case-tab.active { background: #30343b; color: #fff; border-color: #30343b; }
.select-wrap { display: grid; gap: 9px; font-size: 13px; color: var(--muted); }
.select-wrap select { width: 200px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.case-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.case-header h3 { margin: 0; font-size: 20px; font-weight: 600; }
.case-header p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.difficulty-badge { font-size: 12px; color: #37835e; text-transform: capitalize; }
.difficulty-badge.medium { color: #946e21; }
.difficulty-badge.hard { color: #b05050; }
.original-band { display: flex; align-items: center; gap: 45px; margin-bottom: 36px; }
.original-band > div:first-child { flex: 0 1 440px; min-width: 0; }
.original-frame img { max-width: 100%; max-height: 220px; width: auto; height: auto; border: 1px solid #cfd5dd; border-radius: 3px; }
.result-note { flex: 1; font-size: 14px; color: var(--muted); }
.result-note h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.result-note p { margin: 0; }
.method-panel { margin-top: 30px; }
.method-title h4 { margin: 0; font-size: 20px; font-weight: 600; }
.method-title p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ours-panel .method-title h4 { color: var(--accent); }
.ratio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.ratio-card { min-width: 0; }
.ratio-card h5 { text-align: center; font-size: 12px; color: var(--muted); font-weight: 500; margin: 0 0 9px; }
.image-holder { height: 180px; position: relative; display: flex; justify-content: center; align-items: flex-start; }
.result-image { width: auto; height: auto; max-width: 100%; max-height: 100%; border: 1px solid #cfd5dd; border-radius: 3px; }
.ratio-card.special .image-holder { height: 220px; }
.hover-swap { cursor: pointer; }
.comparison-hint { display: none; }
.swap-media { position: relative; display: inline-flex; max-width: 100%; }
.hover-swap .image-holder { padding-top: 28px; }
.swap-media .result-image { max-height: 312px; }
.comparison-hint.is-ours { display: inline-flex; position: absolute; right: 0; top: -6px; transform: translateY(-100%); align-items: center; height: 22px; padding: 0 8px; background: #171717; color: #fff; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1; pointer-events: none; }
.hover-swap:is(:hover, :focus) .result-image { border-color: var(--accent); }
.issue-list { margin-top: 10px; font-size: 13px; color: var(--muted); }
.issue-list ul { padding-left: 18px; margin: 0; }
.missing { display: none; align-items: center; justify-content: center; min-height: 100px; font-size: 12px; color: var(--muted); }
.bibtex-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bibtex-header h2 { margin: 0; text-align: left; }
.copy-bibtex-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: white; font-size: 13px; }
pre { overflow-x: auto; padding: 24px; background: #f5f6f8; border-radius: 4px; font-size: 13px; line-height: 1.7; margin: 0; }
.footer { text-align: center; padding: 28px 20px; color: var(--muted); font-size: 12px; }
.scroll-to-top { position: fixed; bottom: 24px; right: 24px; z-index: 10; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); visibility: hidden; opacity: 0; }
.scroll-to-top.visible { visibility: visible; opacity: 1; }
@media (max-width: 800px) {
  h1 { font-size: 36px; }
  .subtitle { font-size: 25px; }
  .teaser-figure img { height: 120px; }
  .teaser-grid { min-height: 335px; }
  .teaser-row { gap: 10px; }
  .ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .explorer-toolbar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .site-hero { padding: 42px 20px 26px; }
  h1 { font-size: 31px; }
  .subtitle { font-size: 22px; }
  .section-block { width: calc(100% - 32px); padding: 34px 0; }
  h2 { font-size: 25px; }
  .teaser-controls { gap: 6px; }
  .teaser-tab { padding: 5px 8px; font-size: 12px; }
  .teaser-row { flex-wrap: wrap; gap: 16px 10px; }
  .teaser-figure { max-width: 100%; }
  .teaser-figure img { height: 100px; }
  .teaser-grid { min-height: 440px; }
  .original-band { flex-direction: column; align-items: flex-start; gap: 18px; }
  .original-band > div:first-child { flex: auto; }
  .ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-holder { height: 160px; }
  .copy p { text-align: left; }
  pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Full-width section bands keep the figures and tables on one reading grid. */
:root { --ink: #222b3c; --muted: #697487; --accent: #2484a4; }
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; padding: 0 max(24px, calc((100% - 1160px) / 2)); border-bottom: 1px solid #e8ecf0; background: #fff; font-size: 12px; }
.page-nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.page-nav a:hover { color: var(--accent); }
.page-nav .nav-brand { color: var(--ink); font-weight: 600; }
.page-nav > div { display: flex; gap: 22px; overflow-x: auto; padding: 14px 0; }
.site-hero { padding-top: 58px; }
.section-block { width: 100%; padding: 64px max(24px, calc((100% - 1100px) / 2)); border-bottom: 1px solid #e3e8ed; }
.band-muted { background: #f5f7fa; }
h2 { text-align: left; font-size: 32px; font-weight: 600; margin-bottom: 18px; }
.section-heading { text-align: left; max-width: none; }
.section-heading p { max-width: none; margin: 0; }
.section-intro { max-width: none; margin: 0 0 32px; color: var(--muted); line-height: 1.8; font-size: 15px; }
.teaser-block { padding-top: 24px; padding-bottom: 42px; }
.teaser-block .section-heading, .teaser-block h2 { text-align: center; }
.teaser-block .section-heading p { margin-left: auto; margin-right: auto; }
.paper-summary .copy, .contribution-list { max-width: none; }
.paper-summary .copy p { line-height: 1.9; }
.contributions { padding-top: 42px; }
.pill-button { border-radius: 999px; background: #252d3b; }
.teaser-tab { border: 1px solid #d9e0e7; border-radius: 999px; padding: 6px 14px; background: #fff; }
.teaser-tab.active { color: white; background: var(--ink); border-color: var(--ink); }
.teaser-tabs { gap: 8px; }
.choice-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-tab { border: 1px solid #d6dee7; border-radius: 999px; padding: 7px 16px; background: #fff; color: #566175; font-size: 13px; line-height: 1.5; transition: background .15s, color .15s; }
.choice-tab:hover { border-color: var(--accent); color: var(--accent); }
.choice-tab.active { background: #252d3b; border-color: #252d3b; color: #fff; }
.baseline-control { margin: 22px 0 26px; }
.explorer-toolbar { margin-bottom: 0; }
.case-tab { border-radius: 50%; }
.case-header { padding-top: 20px; border-top: 1px solid #e0e6ec; }
.ours-panel .method-title h4 { color: var(--accent); }
.ratio-grid { gap: 20px; }
.table-block { padding: 20px; background: #fff; border: 1px solid #e0e6ec; border-radius: 8px; box-shadow: 0 5px 18px rgba(35, 47, 65, .035); }
.table-scroll { overflow-x: auto; }
.research-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; color: #354054; font-variant-numeric: tabular-nums; line-height: 1.55; }
.research-table caption { text-align: left; font-size: 15px; font-weight: 500; color: var(--ink); padding: 0 0 24px; }
.research-table th, .research-table td { text-align: right; padding: 11px 12px; border-bottom: 1px solid #e8edf2; white-space: nowrap; }
.research-table th:first-child { text-align: left; }
.research-table tbody th { font-weight: 400; }
.research-table thead th { font-weight: 500; }
.research-table thead tr:last-child th { border-bottom: 1px solid #546073; }
.research-table .metric-groups th { color: var(--muted); font-weight: 400; text-align: center; text-transform: uppercase; font-size: 9px; padding: 0 10px 9px; }
.research-table tr:last-child > * { border-bottom: 1px solid #546073; }
.research-table .ours-row th { color: var(--ink); font-weight: 600; }
.research-table .ours-row { background: #f3f7fb; }
.research-table .ours-row > * { border-top: 1px solid #d3dde8; }
.best { background: #cde2f7; color: #27364b; }
.second { background: #e8f1fb; color: #354054; }
.research-table td.best { font-weight: 600; }
.table-footnote { display: flex; align-items: flex-start; gap: 20px; margin-top: 13px; }
.table-footnote p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.table-legend { display: flex; gap: 6px; white-space: nowrap; font-size: 10px; }
.table-legend span { border-radius: 3px; padding: 2px 7px; }
.method-figure { margin: 28px 0 0; }
.figure-media { display: block; padding: 0; border: 0; background: transparent; width: 100%; }
.method-figure img { width: 100%; height: auto; border: 1px solid #d5dee7; border-radius: 3px; }
.study-gallery { margin-top: 42px; }
.study-gallery h3 { margin: 26px 0 9px; font-size: 20px; font-weight: 500; }
.gallery-description { color: var(--muted); font-size: 14px; max-width: none; margin: 0 0 24px; }
.figure-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.figure-comparison.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.comparison-figure { margin: 0; min-width: 0; }
.comparison-figure figcaption { font-size: 12px; font-weight: 500; line-height: 1.5; text-align: center; margin: 0 0 12px; min-height: 36px; display: flex; justify-content: center; align-items: center; }
.comparison-figure .figure-media { display: flex; justify-content: center; align-items: flex-start; }
.comparison-figure img { max-width: 100%; max-height: 360px; width: auto; height: auto; border: 1px solid #cfd8e3; border-radius: 3px; }
.comparison-figure.ours-figure figcaption { color: #237c9b; font-weight: 600; }
.comparison-figure.ours-figure img { border-color: #6ba7bb; }
.style-gallery { margin-top: 28px; }
.bibtex-block pre { background: #eaf0f5; }
@media (max-width: 800px) {
  .page-nav .nav-brand { display: none; }
  .page-nav > div { width: 100%; justify-content: space-between; gap: 20px; }
  .section-block { padding: 46px 24px; }
  .teaser-block { padding-top: 18px; }
  .figure-comparison.four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-comparison { gap: 14px; }
  .comparison-figure img { max-height: 290px; }
}
@media (max-width: 480px) {
  .page-nav { padding: 0 16px; }
  .page-nav > div { justify-content: flex-start; gap: 20px; }
  .section-block { padding: 38px 16px; }
  h2 { font-size: 27px; }
  .section-intro { font-size: 14px; }
  .teaser-controls { gap: 5px; }
  .teaser-tabs { gap: 4px; }
  .teaser-tab { padding: 5px 7px; font-size: 11px; }
  .choice-tab { padding: 7px 12px; font-size: 12px; }
  .table-block { padding: 14px; }
  .table-footnote { flex-direction: column; gap: 10px; }
  .figure-comparison { grid-template-columns: 1fr; gap: 28px; }
  .figure-comparison.four-columns { grid-template-columns: 1fr; }
  .comparison-figure img { max-height: 400px; }
  .comparison-figure figcaption { min-height: 0; margin-bottom: 10px; }
  .study-gallery h3 { font-size: 19px; }
}

.site-hero { padding: 88px 24px 56px; }
.hero-inner { max-width: 1100px; }
.hero-inner h1 { font-size: 46px; color: #36383b; }
.project-title { display: flex; align-items: center; justify-content: center; gap: 14px; }
.project-icon { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; }
.project-title > span { min-width: 0; }
.hero-inner .subtitle { margin: 8px 0 28px; color: #36383b; font-size: 37px; line-height: 1.3; font-weight: 600; }
.hero-links { gap: 8px; }
.pill-button { background: #36383b; padding: 8px 19px; }
.teaser-carousel { position: relative; }
.teaser-viewport { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.teaser-viewport::-webkit-scrollbar { display: none; }
.teaser-track { display: flex; width: 100%; }
.teaser-slide { flex: 0 0 100%; min-width: 0; padding: 18px 8px 6px; scroll-snap-align: start; scroll-snap-stop: always; }
.teaser-composition { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 24px 32px; }
.teaser-reference { grid-column: 1; grid-row: 1; align-self: center; min-width: 0; padding: 16px 12px; }
.teaser-outputs { --corner-x: calc((100% - 56px) * .523809524 + 28px); position: relative; grid-area: 1 / 1 / 3 / 3; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 24px 32px; min-width: 0; margin: 0; padding: 24px 12px 16px; border: 0; }
.teaser-outputs::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#a9b7c3, #a9b7c3) right top / calc(100% - var(--corner-x)) 1px no-repeat, linear-gradient(#a9b7c3, #a9b7c3) right top / 1px 100% no-repeat, linear-gradient(#a9b7c3, #a9b7c3) left bottom / 100% 1px no-repeat, linear-gradient(#a9b7c3, #a9b7c3) left bottom / 1px 50% no-repeat, linear-gradient(#a9b7c3, #a9b7c3) left center / var(--corner-x) 1px no-repeat, linear-gradient(#a9b7c3, #a9b7c3) var(--corner-x) top / 1px 50% no-repeat; }
.teaser-outputs legend { position: absolute; top: -13px; left: calc(var(--corner-x) + 14px); display: flex; align-items: center; gap: 12px; padding: 0 10px; background: #fff; color: #171717; font-size: 15px; font-weight: 700; }
.editable-label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid #d8e0e6; border-radius: 4px; color: #343c43; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.editable-label svg, .editable-label i { color: #2484a4; }
.teaser-ratios { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 24px; min-width: 0; }
.teaser-wide { grid-column: 1; grid-row: 2; }
.teaser-figure { min-width: 0; margin: 0; }
.teaser-figure figcaption { margin-bottom: 10px; font-size: 12px; text-align: center; }
.teaser-figure .figure-media { height: 260px; display: flex; align-items: center; justify-content: center; }
.teaser-figure img { box-sizing: border-box; width: min(100%, calc(260px * var(--natural-ratio, 1))); height: auto; max-height: 260px; border: 1px solid #cfd5dd; border-radius: 3px; }
.teaser-carousel > .icon-button { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-50%); }
#teaserPrev { left: -20px; }
#teaserNext { right: -20px; }
.teaser-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.teaser-dot { width: 12px; height: 12px; padding: 0; border: 1px solid #c8d0d8; border-radius: 50%; background: #fff; }
.teaser-dot.active { background: #171717; border-color: #171717; }
.teaser-caption { min-height: 25px; }
.ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.image-holder { height: 340px; align-items: center; }
.image-holder .figure-media { height: 100%; display: flex; align-items: center; justify-content: center; }
.ratio-card.special .image-holder { height: 380px; }
.original-band > div:first-child { flex-basis: 550px; }
.original-frame img { max-height: 320px; }
.style-gallery { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); align-items: center; gap: 28px; }
.style-reference img { max-height: 420px; }
.style-comparison { margin: 0; min-width: 0; }
.style-comparison figcaption { text-align: center; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.before-after { position: relative; width: 100%; height: 600px; margin: 0 auto; overflow: hidden; border: 1px solid #bdccd9; border-radius: 3px; background: #fff; }
.before-after > img, .after-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.after-layer { position: absolute; inset: 0; background: #fff; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); pointer-events: none; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: col-resize; z-index: 4; touch-action: pan-y; }
.before-after:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transform: translateX(-50%); pointer-events: none; z-index: 3; }
.compare-divider > span { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #d7dfe7; border-radius: 50%; background: #fff; color: #3b4b5c; box-shadow: 0 2px 8px rgba(0,0,0,.12); transform: translate(-50%, -50%); }
@media (max-width: 800px) {
  .site-hero { padding: 64px 24px 40px; }
  .hero-inner h1 { font-size: 36px; }
  .hero-inner .subtitle { font-size: 29px; }
  .teaser-composition { gap: 18px 32px; }
  .teaser-outputs, .teaser-ratios { row-gap: 16px; }
  .teaser-figure .figure-media { height: 220px; }
  .teaser-figure img { width: min(100%, calc(220px * var(--natural-ratio, 1))); max-height: 220px; }
  .ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-gallery { grid-template-columns: 1fr; gap: 30px; }
  .style-reference img { max-height: 240px; }
}
@media (max-width: 480px) {
  .site-hero { padding: 48px 20px 32px; }
  .hero-inner h1 { font-size: 31px; }
  .project-title { gap: 10px; }
  .project-icon { width: 48px; height: 48px; }
  .hero-inner .subtitle { font-size: 25px; }
  .teaser-composition { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 24px; }
  .teaser-reference { padding: 0; }
  .teaser-outputs { grid-area: 2 / 1 / 3 / 2; grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 24px 10px 14px; gap: 18px; border: 1px solid #a9b7c3; border-radius: 4px; }
  .teaser-outputs::before { display: none; }
  .teaser-outputs legend { left: 12px; }
  .teaser-wide { grid-column: 1; grid-row: 1; }
  .teaser-ratios { grid-column: 1; grid-row: 2; gap: 18px 12px; }
  .teaser-figure .figure-media { height: 180px; }
  .teaser-figure img { width: min(100%, calc(180px * var(--natural-ratio, 1))); max-height: 180px; }
  .teaser-carousel > .icon-button { width: 36px; height: 36px; }
  #teaserPrev { left: -10px; }
  #teaserNext { right: -10px; }
  .ratio-grid { grid-template-columns: 1fr; gap: 24px; }
  .image-holder { height: 340px; }
  .style-reference img { max-height: 210px; }
  .before-after { max-width: 100%; }
}

.teaser-block { padding-top: 8px; }
.teaser-figure figcaption,
.ratio-card h5,
.comparison-figure figcaption,
.comparison-figure.ours-figure figcaption,
.style-comparison figcaption,
.method-title h4,
.ours-panel .method-title h4 { color: #171717; font-weight: 700; }
.teaser-figure figcaption, .ratio-card h5 { font-size: 14px; }
.carousel-shell { position: relative; margin-top: 24px; }
.carousel-viewport { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; }
.carousel-slide { flex: 0 0 100%; min-width: 0; padding: 6px 8px; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-shell > .icon-button { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-50%); }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-dots { display: flex; justify-content: center; gap: 9px; margin: 24px 0 0; }
.baseline-control { margin: 36px 0 20px; }
.result-carousel .ratio-grid { margin-top: 0; }
.more-slide { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); grid-template-rows: repeat(2, 300px); gap: 28px; }
.more-slide > .ratio-card { display: flex; flex-direction: column; }
.more-slide .image-holder { height: auto; flex: 1; min-height: 0; }
.more-slide .result-image { max-height: 100%; max-width: 100%; }
.more-tall { grid-column: 2; grid-row: 1 / 3; }
#ablationTitle { min-height: 30px; }
#ablationDescription { min-height: 70px; }
#ablationGallery .figure-media { height: 420px; display: flex; justify-content: center; align-items: center; }
#ablationGallery figcaption { font-size: 14px; }
#ablationGallery img { max-height: 420px; max-width: 100%; width: auto; height: auto; }
.style-carousel { margin-top: 24px; }
#style-transfer { padding-left: max(24px, calc((100% - 1280px) / 2)); padding-right: max(24px, calc((100% - 1280px) / 2)); }
#style-transfer > h2, #style-transfer > .section-intro { max-width: 1100px; margin-left: auto; margin-right: auto; }
.style-carousel .style-gallery { padding: 0 42px; margin-top: 0; }
.style-comparison .style-labels { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: 16px; width: 100%; margin: 0 auto 12px; font-size: 14px; }
.style-flow-arrow { position: relative; display: block; height: 2px; background: #7b8794; }
.style-flow-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; border-top: 2px solid #7b8794; border-right: 2px solid #7b8794; transform: translateY(-50%) rotate(45deg); }
.style-reference .figure-media { height: 420px; align-items: center; }
.style-reference figcaption { min-height: 0; margin-bottom: 12px; font-size: 14px; }
.style-navigation { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 22px; }
.style-navigation .carousel-dots { margin: 0; }
@media (max-width: 800px) {
  .before-after { height: 480px; }
  .style-reference .figure-media { height: 240px; }
}
@media (max-width: 480px) {
  #style-transfer { padding-left: 16px; padding-right: 16px; }
  .before-after { height: 400px; }
  .style-comparison .style-labels { grid-template-columns: auto minmax(48px, 1fr) auto; gap: 10px; font-size: 12px; }
  .style-reference .figure-media { height: 210px; }
}
@media (max-width: 800px) {
  .more-slide { grid-template-rows: repeat(2, 260px); gap: 20px; }
  #ablationGallery .figure-media { height: 330px; }
  #ablationGallery img { max-height: 330px; }
}
@media (max-width: 480px) {
  .carousel-shell > .icon-button { width: 36px; height: 36px; }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
  .carousel-dots { gap: 7px; }
  .more-slide { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); grid-template-rows: repeat(2, 210px); gap: 18px 14px; }
  #ablationTitle { min-height: 58px; }
  #ablationDescription { min-height: 160px; }
  #ablationGallery .figure-media { height: 340px; }
  #ablationGallery img { max-height: 340px; }
}

.author-note { margin: 10px 0 0; color: #171717; font-size: 14px; }
.section-intro, .section-heading p, .gallery-description, .issue-list { color: #171717; }
.teaser-caption { max-width: 1050px; margin: 24px auto 0; color: #171717; font-size: 16px; line-height: 1.85; text-align: center; }
.table-footnote p { color: #171717; font-size: 13px; }
