/* Lato: https://github.com/google/fonts/tree/main/ofl/lato */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Lato-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Lato-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/Lato-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Lato-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Lato-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/Lato-ExtraBold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --font-sans: "Lato", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-math: "STIX Two Math", "Cambria Math", "Latin Modern Math", "DejaVu Math TeX Gyre", math, serif;
  --paper: #ffffff;
  --surface: #fafafa;
  --ink: #1e1e1e;
  --body: #3f3f43;
  --muted: #6f7076;
  --line: #dedee2;
  --line-dark: #a9aab0;
  --red: #e10600;
  --red-dark: #a42121;
  --red-soft: #fff4f3;
  --query: #f0c400;
  --query-soft: #fffbea;
  --purple: #7a5a9a;
  --content-width: 1440px;
  --support-thumb-size: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Roboto", Helvetica, sans-serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.image-lightbox-open {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.64;
  text-rendering: optimizeLegibility;
}

button,
input,
summary {
  font: inherit;
}

button,
summary,
input[type="range"] {
  touch-action: manipulation;
}

a {
  color: #245c8a;
  text-underline-offset: 0.16em;
}

button:focus-visible,
summary:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: #f7d8d5;
}

dt-article.research-article {
  display: block;
  width: 100%;
  padding: 0 20px 56px;
  background: var(--paper);
  color: rgba(0, 0, 0, 0.8);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55em;
}

@media (min-width: 1024px) {
  dt-article.research-article {
    font-size: 20px;
  }
}

dt-article.research-article *,
dt-article.research-article svg text,
dt-article.research-article svg tspan {
  font-family: var(--font-sans);
}

dt-article.research-article > *,
dt-article.research-article > section > :not(.figure-wide) {
  width: min(100%, var(--content-width));
  margin-right: auto;
  margin-left: auto;
}

dt-article.research-article > section {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.article-hero {
  padding: 0 0 24px;
}

dt-article.research-article > .article-hero {
  width: 100%;
}

.hero-copy {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.hero-visual {
  width: 100vw;
  margin: 0 0 10px calc(50% - 50vw);
  overflow: hidden;
  background: var(--paper);
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
}

.hero-collage-item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.hero-collage img,
.current-model-tile img,
.transfer-image-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-collage-item::after {
  position: absolute;
  bottom: clamp(4px, 0.55vw, 8px);
  left: clamp(4px, 0.55vw, 8px);
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  content: attr(data-label);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-collage-item[data-label="AI-generated"]::after {
  background: var(--red);
}

.hero-credit-row,
.figure-credit-row {
  display: flex;
  justify-content: flex-end;
}

.hero-credit-row {
  width: min(100%, var(--content-width));
  margin: 0 auto clamp(34px, 4vw, 54px);
}

.figure-credit-row {
  margin-top: 10px;
}

.credit-button {
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.image-credits-dialog {
  width: min(960px, calc(100% - 32px));
  max-height: min(84vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 22px 70px rgb(0 0 0 / 24%);
}

dt-article.research-article > .image-credits-dialog {
  width: min(960px, calc(100% - 32px));
  margin: auto;
}

.image-credits-dialog::backdrop {
  background: rgb(20 20 22 / 54%);
}

.image-credits-panel {
  max-height: min(84vh, 920px);
  padding: 22px;
  overflow-y: auto;
}

.image-credits-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
}

.image-credits-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.image-credits-heading h2 {
  margin: 4px 0 0 !important;
  font-size: 24px !important;
}

.image-credits-heading .figure-number {
  margin: 0;
}

.image-credits-panel > .image-credits-group-title {
  margin: 18px 0 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dialog-close {
  flex: none;
}

.image-credits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-credits-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}

.image-credits-list img {
  display: block;
  width: 96px;
  height: 64px;
  object-fit: cover;
}

.image-credits-list li > span,
.image-credits-list li > span > span,
.image-credits-list strong {
  display: block;
  min-width: 0;
}

.image-credits-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.image-credits-list li > span > span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.static-image-credits {
  width: min(960px, calc(100% - 32px));
  margin: 8px auto 28px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}

.static-image-credits summary {
  cursor: pointer;
  font-weight: 700;
}

.static-image-credits p,
.static-image-credits ol {
  margin-block: 10px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-sans);
}

dt-article.research-article h1 {
  max-width: var(--content-width);
  margin: 0 0 20px;
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 590;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.deck {
  margin: 0;
  color: #55565b;
  font-size: 21px;
  line-height: 1.42;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  max-width: 920px;
  margin: 22px 0 0;
  color: #4f5055;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
}

.article-byline span {
  color: var(--ink);
  font-weight: 620;
  white-space: nowrap;
}

.shared-affiliation {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.shared-affiliation a {
  color: inherit;
}

.article-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.article-resources a {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.article-resources a:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.article-resources span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.section-kicker,
.figure-number,
.equation-label,
.table-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0 0 6px;
}

.interpretation-callout {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  background: var(--surface);
}

.interpretation-callout p {
  margin: 0;
}

.interpretation-callout .result-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
}

.current-model-figure {
  margin: 28px 0 20px;
}

.current-model-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
}

.current-model-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.current-model-origin {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
  pointer-events: none;
}

.current-model-labels {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 6px;
  display: grid;
  max-width: calc(100% - 12px);
  justify-items: start;
  gap: 4px;
  pointer-events: none;
}

.current-model-state {
  display: flex;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 2px;
  color: #fff;
  line-height: 1.2;
}

.current-model-state > span {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.current-model-state > span::after {
  content: " →";
}

.current-model-state strong {
  font-size: 10px;
}

.state-truth {
  background: #1e1e1e;
}

.state-released {
  background: #4e545e;
}

.state-prediction {
  background: var(--red);
}

.current-model-figure > figcaption {
  margin-top: 12px;
  text-align: center;
}

.image-lightbox-trigger {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-lightbox-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  box-shadow: inset 0 0 0 7px var(--ink);
}

.image-lightbox {
  width: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

dt-article.research-article > .image-lightbox {
  width: auto;
  margin: auto;
}

.image-lightbox::backdrop {
  background: rgb(0 0 0 / 68%);
  -webkit-backdrop-filter: blur(10px) saturate(70%);
  backdrop-filter: blur(10px) saturate(70%);
}

.image-lightbox-panel {
  position: relative;
  display: grid;
  place-items: center;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: rgb(17 17 17 / 78%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
}

.image-lightbox-panel img {
  display: block;
  width: auto;
  max-width: min(1600px, calc(100vw - 56px));
  height: auto;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  min-height: 40px;
  min-width: 40px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 4px;
  background: rgb(30 30 30 / 88%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

#image-lightbox-caption {
  width: min(100%, 900px);
  margin: 9px 0 0;
  color: #e8e8ea;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.generation-prompts-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.generation-prompts-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.generation-prompts-list img {
  display: block;
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.generation-prompts-list strong,
.generation-prompt-generator,
.generation-prompt-label {
  display: block;
}

.generation-prompts-list strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.generation-prompt-generator {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.generation-prompt-label {
  margin-top: 12px;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.generation-prompt-text {
  max-width: 76ch;
  margin: 4px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.generation-prompts-loading,
.generation-prompts-error {
  display: block !important;
  color: var(--muted);
  font-size: 14px;
}

.generation-rights {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.generation-rights h3 {
  margin-bottom: 8px !important;
  font-size: 17px !important;
}

.generation-rights p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.case-figure {
  margin-top: 28px;
}

.case-study-grid,
.image-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-study-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.case-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.case-study-copy {
  padding: 12px 14px 14px;
}

.case-study-date {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.case-study-card h4 {
  margin-bottom: 6px !important;
}

.case-study-card .case-study-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
}

.case-image-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 1px 5px rgb(0 0 0 / 18%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-image-status {
  color: var(--red);
}

.case-figure figcaption {
  margin: 16px 0 0;
}

.transfer-design-figure,
.demo-figure,
.result-figure {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.walkthrough-media {
  width: min(100%, 1200px);
  margin-right: auto;
  margin-left: auto;
}

.walkthrough-media {
  overflow: hidden;
}

.walkthrough-animation {
  display: block;
  width: 100%;
  height: auto;
}

.walkthrough-fallback {
  display: block;
  width: 100%;
  height: auto;
}

.walkthrough-native {
  overflow: hidden;
  background: var(--paper);
  opacity: 1;
  transition: opacity 600ms ease;
}

.walkthrough-native.is-resetting {
  opacity: 0;
}

.walkthrough-native .pipeline {
  display: block;
  margin: 0;
  border: 0;
}

.walkthrough-native .pipeline-map {
  overflow: hidden;
}

.walkthrough-native .pipeline-svg {
  width: 100%;
  min-width: 0;
  height: auto;
}

.walkthrough-native [data-overview-id="flow-arrowhead"] path {
  fill: #55575c;
}

.transfer-axis-explorer,
.transfer-shift-content {
  display: grid;
  gap: 12px;
}

.transfer-shift-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.transfer-shift-button {
  display: grid;
  gap: 2px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.transfer-shift-button strong {
  font-size: 13px;
}

.transfer-shift-button span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.transfer-shift-button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.transfer-shift-button[aria-pressed="true"] span {
  color: #fff;
}

.transfer-axis-readout {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1px 22px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.transfer-axis-kicker {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  color: var(--red);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.transfer-axis-readout h4 {
  grid-row: 2;
  grid-column: 1;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.transfer-axis-readout > p:last-child {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.transfer-image-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.transfer-image-grid[aria-busy="true"]::before,
.transfer-image-grid[aria-busy="true"]::after {
  position: absolute;
  z-index: 4;
  content: "";
}

.transfer-image-grid[aria-busy="true"]::before {
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.transfer-image-grid[aria-busy="true"]::after {
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: transfer-gallery-spin 700ms linear infinite;
}

@keyframes transfer-gallery-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.transfer-image-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #111;
}

.transfer-image-item::before,
.transfer-image-item::after,
.transfer-ours {
  position: absolute;
  z-index: 2;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 6px;
  border-radius: 2px;
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
}

.transfer-image-item::before {
  bottom: 46px;
  content: attr(data-truth);
}

.transfer-image-item::after {
  bottom: 26px;
  background: rgba(78, 84, 94, 0.94);
  content: attr(data-prediction);
}

.transfer-ours {
  bottom: 6px;
  background: rgba(225, 6, 0, 0.94);
}

.transfer-axis-badge {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: normal;
  pointer-events: none;
}

section {
  margin-bottom: 58px !important;
}

dt-article.research-article h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 610;
  letter-spacing: -0.024em;
  line-height: 1.2;
}

dt-article.research-article h3 {
  margin: 0;
  font-size: 20px;
  font-style: normal;
  font-weight: 620;
  letter-spacing: -0.014em;
  line-height: 1.3;
}

dt-article.research-article h4 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.25;
}

p {
  margin-top: 0;
  margin-bottom: 24px;
}

dt-article figure {
  position: relative;
}

dt-article ul,
dt-article ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

dt-article li {
  margin-bottom: 24px;
}

.figure-wide {
  width: 100%;
  margin: 30px 0 34px;
}

.figure-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.figure-number {
  flex: none;
  margin: 0;
}

.transfer-trajectory,
.mah-point {
  cursor: help;
}

.transfer-trajectory:focus,
.mah-point:focus {
  outline: none;
}

.transfer-hit-area {
  fill: transparent;
}

.transfer-point,
.mah-point > circle {
  transition: r 140ms ease, stroke 140ms ease, stroke-width 140ms ease;
}

.transfer-trajectory:hover .transfer-point,
.transfer-trajectory:focus-visible .transfer-point {
  r: 9px;
  stroke: var(--ink);
  stroke-width: 2.2px;
}

.benchmark-transfer-figure figcaption {
  margin-top: 16px;
}

.demo-workbench {
  display: block;
}

.area-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.area-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-transform: none;
}

.shuffle-images {
  min-height: 34px;
  padding: 5px 10px;
}

.image-choice {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: var(--paper);
}

.image-choice[aria-pressed="true"] {
  border-color: var(--query);
  background: var(--query-soft);
  box-shadow: 0 0 0 2px var(--query);
}

.image-choice img {
  display: block;
  width: 100%;
  height: clamp(150px, 14vw, 210px);
  object-fit: cover;
}

.image-index {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  background: rgb(20 20 20 / 82%);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
}

.source-label {
  position: relative;
}

.is-enhanced .source-label {
  opacity: 0;
  visibility: hidden;
}

.is-enhanced.is-complete .source-label {
  opacity: 1;
  transition: opacity 360ms ease;
  visibility: visible;
}

.demo-guess-controls {
  width: min(420px, 100%);
  margin-top: 16px;
}

.class-label {
  display: block;
  padding: 5px 7px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
}

.real-label::before {
  content: "●";
  margin-right: 5px;
  color: var(--ink);
}

.generated-label::before {
  content: "◆";
  margin-right: 5px;
  color: var(--red);
}

.guess-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.guess-controls legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
}

button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: #606166;
}

button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.guess-status {
  min-height: 2.8em;
  margin: 9px 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
}

.pipeline {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.is-enhanced .pipeline:not(.is-revealed) {
  display: none;
}

.pipeline-scroll-hint {
  padding: 0 14px;
}

.pipeline-svg {
  display: block;
  width: 100%;
  min-width: 1320px;
  height: auto;
  background: var(--paper);
}

.pipeline-phase {
  opacity: 1;
  visibility: visible;
}

.is-enhanced .pipeline-phase {
  opacity: 0;
  visibility: hidden;
  transition: opacity 440ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 440ms;
}

.is-enhanced .pipeline-phase.is-complete,
.is-enhanced .pipeline-phase.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.flow-node {
  fill: var(--paper);
  stroke: var(--line-dark);
  stroke-width: 1.6;
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.input-node {
  fill: var(--paper);
  stroke: var(--line-dark);
}

.geometry-node {
  fill: var(--paper);
  stroke: var(--purple);
}

.output-node {
  fill: var(--red-soft);
  stroke: #d57a72;
}

.is-enhanced .pipeline-phase.is-active .flow-node {
  stroke: var(--red);
  stroke-width: 2.7;
}

.flow-edge {
  fill: none;
  stroke: #55575c;
  stroke-linecap: round;
  stroke-width: 2.2;
  marker-end: url("#flow-arrowhead");
}

#flow-arrowhead path {
  fill: #55575c;
}

.node-kicker,
.flow-lane-labels text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.node-kicker {
  fill: #55575c;
}

.node-title {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.geometry-title {
  font-size: 17px;
}

.node-math {
  fill: var(--ink);
  font-family: var(--font-sans) !important;
  font-size: 16px;
}

.winner-copy {
  fill: var(--red-dark);
  font-weight: 750;
}

.output-copy {
  fill: var(--red-dark);
  font-size: 17px;
  font-weight: 750;
}

.step-badge {
  fill: #777980;
  transition: fill 180ms ease;
}

.is-enhanced .pipeline-phase.is-active .step-badge {
  fill: var(--red);
}

.step-badge-text {
  fill: var(--paper);
  font-size: 14px;
  font-weight: 800;
  text-anchor: middle;
}

.real-dot {
  fill: var(--ink);
}

.generated-diamond {
  fill: var(--red);
}

.pipeline-photo,
.query-in-plane {
  transform-box: fill-box;
  transform-origin: center;
}

.is-enhanced .support-feature {
  opacity: 1;
}

.is-enhanced .support-feature .geometry-point,
.is-enhanced .support-feature .geometry-vector-glyph {
  transform-box: fill-box;
  transform-origin: center;
}

.is-enhanced .support-feature .geometry-point,
.is-enhanced .support-feature .geometry-vector-glyph,
.is-enhanced .support-feature .geometry-support-frame {
  opacity: 0;
}

.is-enhanced .pipeline[data-phase="fit"].is-animating .support-feature .geometry-vector-glyph {
  animation: support-vector-to-point 1400ms cubic-bezier(0.22, 1, 0.36, 1) var(--support-delay, 0ms) both;
}

.is-enhanced .pipeline[data-phase="fit"].is-animating .support-feature .geometry-point {
  animation: support-point-from-vector 1400ms cubic-bezier(0.22, 1, 0.36, 1) var(--support-delay, 0ms) both;
}

.is-enhanced .pipeline.is-animating .encoder-image {
  transform-box: fill-box;
  transform-origin: center;
}

.is-enhanced .pipeline[data-phase="fit"].is-animating .encoder-image {
  animation: encoder-image-receive 1400ms cubic-bezier(0.22, 1, 0.36, 1) 5 both;
}

.is-enhanced .pipeline[data-phase="fit"].is-animating .encoder-vector {
  animation: feature-vector-encode 1400ms ease-in-out 5 both;
  transform-box: fill-box;
  transform-origin: center;
}

.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-1,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-2,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-3,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-4,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-5,
.is-enhanced .pipeline[data-phase="fit"].is-animating .overview-support-source {
  animation: support-source 1400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-enhanced #geometry-support-2,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-2 {
  --support-delay: 1400ms;
  animation-delay: 1400ms;
}

.is-enhanced #geometry-support-3,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-3 {
  --support-delay: 2800ms;
  animation-delay: 2800ms;
}

.is-enhanced #geometry-support-4,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-4 {
  --support-delay: 4200ms;
  animation-delay: 4200ms;
}

.is-enhanced #geometry-support-5,
.is-enhanced .pipeline[data-phase="fit"].is-animating #pipeline-support-5 {
  --support-delay: 5600ms;
  animation-delay: 5600ms;
}

.is-enhanced .pipeline.fit-complete .support-feature,
.is-enhanced .pipeline[data-phase="classify"] .support-feature {
  opacity: 1;
}

.is-enhanced .pipeline.fit-complete .encoder-image,
.is-enhanced .pipeline.fit-complete .encoder-vector {
  opacity: 0;
}

.geometry-sample-image {
  opacity: 0;
  transition: opacity 320ms ease;
}

.geometry-vector-glyph {
  transition: opacity 320ms ease;
}

.is-enhanced .pipeline.fit-complete .support-feature .geometry-vector-glyph,
.is-enhanced .pipeline[data-phase="classify"] .support-feature .geometry-vector-glyph {
  opacity: 0;
}

.is-enhanced .pipeline.fit-complete .support-feature .geometry-point,
.is-enhanced .pipeline[data-phase="classify"] .support-feature .geometry-point {
  opacity: 1;
}

.is-enhanced .input-query,
.is-enhanced .distance-label,
.is-enhanced .output-stage {
  opacity: 0;
}

.is-enhanced .query-in-plane {
  opacity: 1;
}

.is-enhanced .query-in-plane .query-frame,
.is-enhanced .query-in-plane .query-sample-image,
.is-enhanced .query-in-plane .query-point {
  opacity: 0;
}

.is-enhanced .query-in-plane .query-point,
.is-enhanced .query-in-plane .query-vector-glyph {
  transform-box: fill-box;
  transform-origin: center;
}

.is-enhanced .pipeline[data-phase="classify"] .input-query {
  opacity: 1;
  transition: opacity 520ms ease 120ms;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .query-in-plane {
  opacity: 1;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .query-vector-glyph {
  animation: query-vector-to-point 3200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .query-point {
  animation: query-point-from-vector 3200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .encoder-image {
  animation: query-image-receive 3200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .encoder-vector {
  animation: query-vector-highlight 3200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-box: fill-box;
  transform-origin: center;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .distance-label {
  animation: distance-enter 3200ms ease both;
}

.is-enhanced .pipeline[data-phase="classify"].is-animating .output-stage {
  animation: output-enter 3200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-enhanced.is-complete .query-in-plane,
.is-enhanced.is-complete .distance-label,
.is-enhanced.is-complete .output-stage {
  opacity: 1;
  transform: none;
}

.is-enhanced.is-complete .query-sample-image {
  opacity: 0;
}

.is-enhanced.is-complete .query-vector-glyph {
  opacity: 0;
}

.is-enhanced.is-complete .query-point {
  opacity: 1;
}

@keyframes support-vector-to-point {
  0%, 69.9% {
    opacity: 0;
    transform: translate(var(--support-vector-start-x), var(--support-vector-start-y)) scale(0.96);
  }

  70% {
    opacity: 1;
    transform: translate(var(--support-vector-start-x), var(--support-vector-start-y)) scale(0.96);
  }

  90%, 98.9% {
    opacity: 1;
    transform: none;
  }

  99%, 100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes support-point-from-vector {
  0%, 98.9% {
    opacity: 0;
    transform: scale(0.3);
  }

  99%, 100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes encoder-image-receive {
  0%, 16% {
    opacity: 0;
    transform: translate(var(--encoder-image-start-x), var(--encoder-image-start-y)) scale(1.18);
  }

  20% {
    opacity: 1;
    transform: translate(var(--encoder-image-start-x), var(--encoder-image-start-y)) scale(1.18);
  }

  46%, 58% {
    opacity: 1;
    transform: none;
  }

  68%, 100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes feature-vector-encode {
  0%, 49.9% {
    opacity: 0;
    transform: scale(0.96);
  }

  50%, 59% {
    opacity: 1;
    transform: scale(1.12);
  }

  69.9% {
    opacity: 1;
    transform: none;
  }

  70%, 100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes support-source {
  0%, 4% {
    opacity: 0;
    transform: scale(0.98);
  }

  10%, 18% {
    opacity: 1;
    transform: scale(1.08);
  }

  24%, 100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes query-image-receive {
  0%, 18% {
    opacity: 0;
    transform: translate(var(--encoder-image-start-x), var(--encoder-image-start-y)) scale(1.18);
  }

  22% {
    opacity: 1;
    transform: translate(var(--encoder-image-start-x), var(--encoder-image-start-y)) scale(1.18);
  }

  38%, 46% {
    opacity: 1;
    transform: none;
  }

  54%, 100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes query-vector-highlight {
  0%, 43.9% {
    opacity: 0;
    transform: scale(0.96);
  }

  44%, 52% {
    opacity: 1;
    transform: scale(1.14);
  }

  61.9% {
    opacity: 1;
    transform: none;
  }

  62%, 100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes query-vector-to-point {
  0%, 61.9% {
    opacity: 0;
    transform: translate(var(--query-vector-start-x), var(--query-vector-start-y)) scale(0.96);
  }

  62% {
    opacity: 1;
    transform: translate(var(--query-vector-start-x), var(--query-vector-start-y)) scale(0.96);
  }

  80%, 91.9% {
    opacity: 1;
    transform: none;
  }

  92%, 100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes query-point-from-vector {
  0%, 91.9% {
    opacity: 0;
    transform: scale(0.3);
  }

  92%, 100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes distance-enter {
  0%, 88% {
    opacity: 0;
  }

  94%, 100% {
    opacity: 1;
  }
}

@keyframes output-enter {
  0%, 90% {
    opacity: 0;
    transform: translateX(8px);
  }

  96%, 100% {
    opacity: 1;
    transform: none;
  }
}

.thumb-frame,
.query-frame {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2;
}

.support-pair-frame {
  stroke-width: 2;
}

.real-support-pair .support-pair-frame {
  fill: #f1f3f4;
  stroke: #55575c;
}

.generated-support-pair .support-pair-frame {
  fill: #fff0ef;
}

.generated-support-pair .support-pair-frame,
.generated-support-frame,
.generated-mean-mark line {
  stroke: var(--red);
}

.support-ground-truth {
  fill: #4f5055;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 750;
  text-anchor: middle;
}

.generated-support-pair .support-ground-truth {
  fill: var(--red-dark);
}

.query-frame {
  stroke: var(--query);
  stroke-width: 2.5;
}

.input-label {
  fill: #777980;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.055em;
}

.input-note {
  fill: #66676c;
  font-size: 13px;
}

.input-divider,
.flow-lane-labels line {
  stroke: var(--line);
  stroke-width: 1;
}

.query-badge {
  fill: var(--query);
  stroke: #8c7200;
  stroke-width: 1.5;
}

.query-badge-copy {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.encoder-core {
  fill: #f2f2f3;
  stroke: #7c7d82;
  stroke-width: 1.2;
}

.is-enhanced .pipeline-phase.is-active .encoder-core {
  animation: encoder-pulse 900ms ease-in-out 2 alternate;
}

.encoder-title {
  font-size: 16px;
}

.encoder-copy {
  font-size: 14px;
}

.encoder-label {
  fill: #596b77;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 620;
}

.feature-vector-bracket {
  fill: none;
  stroke: var(--feature-vector-accent, #596b77);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.feature-vector-cell {
  stroke: var(--paper);
  stroke-width: 0.7;
}

.feature-vector-cell-1 {
  fill: var(--feature-vector-1, #365b82);
  width: var(--feature-vector-width-1, 18px);
}

.feature-vector-cell-2 {
  fill: var(--feature-vector-2, #88a9c4);
  width: var(--feature-vector-width-2, 18px);
}

.feature-vector-cell-3 {
  fill: var(--feature-vector-3, #d8e5ee);
  width: var(--feature-vector-width-3, 18px);
}

.feature-vector-cell-4 {
  fill: var(--feature-vector-4, #88a9c4);
  width: var(--feature-vector-width-4, 18px);
}

.feature-vector-cell-5 {
  fill: var(--feature-vector-5, #365b82);
  width: var(--feature-vector-width-5, 18px);
}

.feature-vector-cell-6 {
  fill: var(--feature-vector-6, #6d5a91);
  width: var(--feature-vector-width-6, 18px);
}

.encoder-flow {
  fill: none;
  stroke: #78909f;
  stroke-linecap: round;
  stroke-width: 1.5;
}

@keyframes encoder-pulse {
  to {
    fill: var(--red-soft);
    stroke: var(--red);
  }
}

.geometry-axis {
  stroke: var(--line);
  stroke-width: 1.4;
}

.geometry-axis-label {
  fill: #64666c;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 550;
}

.geometry-boundary {
  stroke: #9a9ba0;
  stroke-dasharray: 7 7;
  stroke-width: 1.8;
}

.is-enhanced .geometry-contour,
.is-enhanced .mean-mark,
.is-enhanced .geometry-label,
.is-enhanced .geometry-note:not(.stage-three-copy),
.is-enhanced .geometry-boundary {
  opacity: 0;
}

.is-enhanced .pipeline.fit-complete .geometry-contour,
.is-enhanced .pipeline.fit-complete .mean-mark,
.is-enhanced .pipeline.fit-complete .geometry-label,
.is-enhanced .pipeline.fit-complete .geometry-note:not(.stage-three-copy) {
  animation: fitted-stat-enter 700ms ease both;
}

.is-enhanced .pipeline.fit-complete .geometry-boundary {
  animation: fitted-boundary-enter 700ms ease both;
}

.is-enhanced .pipeline.fit-complete .geometry-contour,
.is-enhanced .pipeline.fit-complete .mean-mark,
.is-enhanced .pipeline.fit-complete .geometry-label,
.is-enhanced .pipeline.fit-complete .geometry-note:not(.stage-three-copy),
.is-enhanced .pipeline.fit-complete .geometry-boundary,
.is-enhanced .pipeline[data-phase="classify"] .geometry-contour,
.is-enhanced .pipeline[data-phase="classify"] .mean-mark,
.is-enhanced .pipeline[data-phase="classify"] .geometry-label,
.is-enhanced .pipeline[data-phase="classify"] .geometry-note:not(.stage-three-copy),
.is-enhanced .pipeline[data-phase="classify"] .geometry-boundary {
  opacity: 1;
}

.is-enhanced .pipeline.is-static .pipeline-phase,
.is-enhanced .pipeline.is-static .support-feature,
.is-enhanced .pipeline.is-static .input-query,
.is-enhanced .pipeline.is-static .query-in-plane,
.is-enhanced .pipeline.is-static .distance-label,
.is-enhanced .pipeline.is-static .output-stage,
.is-enhanced .pipeline.is-static .mean-mark,
.is-enhanced .pipeline.is-static .geometry-label,
.is-enhanced .pipeline.is-static .geometry-note,
.is-enhanced .pipeline.is-static .geometry-boundary {
  visibility: visible;
  opacity: 1;
  transform: none;
  animation: none;
}

.is-enhanced .pipeline.is-static .geometry-contour {
  visibility: visible;
  opacity: 1;
  animation: none;
}

.is-enhanced .pipeline.is-static .geometry-sample-image {
  opacity: 1;
}

.is-enhanced .pipeline.is-static .geometry-vector-glyph {
  opacity: 0;
}

.is-enhanced .pipeline.is-static .geometry-support-frame,
.is-enhanced .pipeline.is-static .query-frame {
  opacity: 1;
}

@keyframes fitted-stat-enter {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fitted-boundary-enter {
  0%, 35% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.geometry-contour {
  stroke-width: 2;
}

.real-contour {
  fill: #f1f1f2;
  stroke: var(--ink);
}

.generated-contour {
  fill: var(--red-soft);
  stroke: var(--red);
}

.geometry-point {
  stroke: var(--paper);
  stroke-width: 1.2;
}

.geometry-support-frame {
  fill: none;
  stroke-width: 2.4;
}

.query-in-plane .query-frame {
  fill: none;
}

.real-support-frame,
.real-mean-mark line {
  stroke: var(--ink);
}

.pipeline-svg [hidden] {
  display: none;
}

.mean-mark line {
  stroke-linecap: round;
  stroke-width: 2.4;
}

.geometry-label,
.geometry-note,
.distance-label {
  font-family: var(--font-sans);
  font-size: 14px;
}

.geometry-label,
.geometry-note {
  fill: #55575c;
}

.real-geometry-label {
  fill: var(--ink);
}

.generated-geometry-label {
  fill: var(--red-dark);
}

.geometry-note {
  letter-spacing: 0;
}

.distance-label {
  fill: #55575c;
  font-size: 13px;
  font-weight: 700;
}

.distance-label.winner-copy {
  fill: var(--red-dark);
}

.distance-label.real-output {
  fill: var(--ink);
}

.stage-three-copy {
  font-size: 13px;
}

.output-title {
  font-size: 17px;
}

.real-output {
  fill: var(--ink);
}

.output-diamond {
  fill: var(--red);
}

.flow-lane-labels text {
  fill: #777980;
  font-size: 21px;
  letter-spacing: 0.08em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pipeline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.stage-status {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
}

.figure-note {
  margin: 16px 0 0;
  color: #606168;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

.data-details {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
}

summary {
  width: fit-content;
  color: #45464b;
  cursor: pointer;
  font-weight: 650;
}

figcaption {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  figcaption {
    font-size: 13px;
  }
}

figcaption strong {
  color: var(--ink);
}

.equation-callout {
  margin: clamp(26px, 4vw, 42px) 0;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 5vw, 48px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-sans);
  text-align: left;
}

.equation-label {
  margin: 0 0 5px;
}

.equation-title {
  margin: 0 0 18px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.equation-scroll {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 6px;
  scrollbar-width: thin;
  text-align: center;
}

.equation-display {
  display: block;
  width: max-content;
  min-width: 0;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.25;
}

dt-article.research-article .equation-display,
dt-article.research-article .equation-display *,
dt-article.research-article .equation-mobile,
dt-article.research-article .equation-mobile * {
  font-family: var(--font-math);
}

.equation-mobile {
  display: none;
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 6px;
  color: #55565c;
  font-family: var(--font-sans);
  font-size: 14px;
}

.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-help {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
}

.key-square,
.key-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.key-square {
  background: #696b71;
}

.key-circle {
  border-radius: 50%;
  background: var(--red);
}

.mah-point:hover > circle,
.mah-point:focus-visible > circle {
  r: 7px;
  stroke: var(--ink);
  stroke-width: 2.2px;
}

.chart-tooltip {
  pointer-events: none;
  visibility: hidden;
}

.mah-point:hover .chart-tooltip,
.mah-point:focus .chart-tooltip,
.transfer-trajectory:hover .chart-tooltip,
.transfer-trajectory:focus .chart-tooltip {
  visibility: visible;
}

.chart-tooltip rect {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1;
}

.chart-tooltip text {
  fill: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 680;
}

.pipeline-map,
.chart-scroll,
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.chart-scroll {
  margin: 10px -4px 0;
  padding: 4px;
}

.scroll-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
}

.chart-scroll svg {
  display: block;
  min-width: 840px;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.chart-fallback {
  margin: 18px 0;
  padding: 15px 17px;
  border-left: 2px solid var(--red);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

.mobile-chart-summary {
  display: none;
}

.support-control {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(280px, 1.6fr);
  gap: 7px 22px;
  align-items: center;
  margin-bottom: 11px;
  font-family: var(--font-sans);
}

.support-control label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.support-control input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.support-control input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #cfd8de;
}

.support-control input[type="range"]::-webkit-slider-thumb {
  box-sizing: border-box;
  width: var(--support-thumb-size);
  height: var(--support-thumb-size);
  margin-top: calc((4px - var(--support-thumb-size)) / 2);
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red-dark);
}

.support-control input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #cfd8de;
}

.support-control input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}

.support-control input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--support-thumb-size);
  height: var(--support-thumb-size);
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red-dark);
}

.range-labels {
  grid-column: 2;
  position: relative;
  height: 1.35em;
  margin-inline: calc(var(--support-thumb-size) / 2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.range-labels span {
  position: absolute;
  top: 0;
  width: max-content;
  transform: translateX(-50%);
}

.range-labels span:nth-child(1) {
  left: 0;
}

.range-labels span:nth-child(2) {
  left: 20%;
}

.range-labels span:nth-child(3) {
  left: 40%;
}

.range-labels span:nth-child(4) {
  left: 60%;
}

.range-labels span:nth-child(5) {
  left: 80%;
}

.range-labels span:nth-child(6) {
  left: 100%;
}

.support-control output {
  grid-column: 1 / -1;
  min-height: 1.5em;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 650;
}

.table-scroll {
  margin-top: 13px;
}

.ladder-table-wrap {
  margin-bottom: 28px;
}

.sweep-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 22px 0;
}

.sweep-tables .table-scroll {
  margin-top: 0;
}

.sweep-table {
  min-width: 0;
}

.table-label {
  display: block;
  margin: 0 0 6px;
  text-align: left;
}

.table-caption-copy {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.sweep-table th:last-child,
.sweep-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--paper);
  color: #3c3d42;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.35;
}

caption {
  padding: 0 0 9px;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 2px 0;
  font-size: 15px;
  text-align: right;
  vertical-align: top;
}

dt-article table th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

dt-article table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

thead th {
  border-top: 1px solid var(--line-dark);
  border-bottom-color: var(--line-dark);
  color: var(--ink);
  font-weight: 700;
}

tbody th {
  color: var(--ink);
  font-weight: 620;
}

#ladder-data tbody th,
.sweep-table tbody th {
  font-weight: 400;
}

tr.selected-component {
  background: var(--red-soft);
}

tr.selected-component > :first-child {
  position: relative;
}

tr.selected-component > :first-child::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -8px;
  box-sizing: border-box;
  width: 8px;
  border-inline-start: 3px solid var(--red);
  background: var(--red-soft);
  content: "";
}

tr.selected-component > * {
  color: var(--red);
  font-weight: 400;
}

tr.selected-component a {
  color: var(--red);
}

.takeaway {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.paper-bibtex {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  white-space: pre;
}

.paper-bibtex code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: normal;
  word-break: normal;
  white-space: pre;
}

dt-article.research-article .citation-section h3 {
  margin-bottom: 8px;
}

dt-article.research-article .paper-bibtex + h3 {
  margin-top: 32px;
}

.reference-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.reference-citation {
  display: inline-block;
  margin-left: 0.14em;
  font-size: 0.68em;
  line-height: 1;
  vertical-align: super;
}

.reference-citation a {
  font-weight: 700;
  text-decoration: none;
}

.reference-list li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  scroll-margin-top: 28px;
}

.reference-list li:target {
  border-radius: 2px;
  background: var(--red-soft);
  color: var(--ink);
}

.project-context {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .case-study-grid,
  .image-credits-list,
  .generation-prompts-list li,
  .current-model-collage,
  .support-control,
  .sweep-tables {
    grid-template-columns: 1fr;
  }

  .transfer-axis-readout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2px;
  }

  .transfer-axis-kicker,
  .transfer-axis-readout h4,
  .transfer-axis-readout > p:last-child {
    grid-row: auto;
    grid-column: 1;
  }

  .transfer-axis-readout > p:last-child {
    margin-top: 7px;
  }

  .case-image-label {
    top: 10px;
    left: 10px;
  }
  body {
    font-size: 16px;
  }

  dt-article.research-article {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-visual {
    margin-bottom: 8px;
  }

  .hero-collage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2px;
  }

  .hero-collage-item {
    grid-column: span 3;
  }

  .hero-collage-item:nth-last-child(-n + 3) {
    grid-column: span 4;
  }

  .generation-prompts-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  dt-article.research-article h1 {
    font-size: 32px;
  }

  .deck {
    font-size: 19px;
  }

  h2 {
    font-size: 26px;
  }

  .demo-figure,
  .result-figure {
    padding: 15px;
  }

  .figure-heading {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .image-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-choice img {
    height: 150px;
  }

  .pipeline-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-status {
    margin: 2px 0 0;
  }

  .scroll-hint {
    display: block;
  }

  .mobile-chart-summary {
    display: block;
    margin: 12px 0 4px;
    padding: 11px 12px;
    border-left: 2px solid var(--red);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
  }

  .equation-callout {
    padding: 18px 16px;
  }

  .equation-title {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .equation-scroll {
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .equation-display {
    display: none;
  }

  .equation-mobile {
    display: grid;
    gap: 5px;
    justify-items: center;
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.45;
  }

  .equation-mobile-condition {
    color: var(--muted);
    font-size: 0.84em;
  }

  .support-x-axis-title {
    display: none;
  }

  .range-labels {
    grid-column: 1;
  }

  .transfer-image-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    color: #000;
  }

  .figure-wide {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    transform: none;
  }

  .guess-controls,
  .pipeline-controls,
  .support-control {
    display: none;
  }

  .is-enhanced .pipeline:not(.is-revealed) {
    display: block;
  }

  .is-enhanced .pipeline-phase {
    visibility: visible;
    opacity: 1;
  }

  .is-enhanced .support-feature,
  .is-enhanced .input-query,
  .is-enhanced .query-in-plane,
  .is-enhanced .distance-label,
  .is-enhanced .output-stage,
  .is-enhanced .mean-mark,
  .is-enhanced .geometry-label,
  .is-enhanced .geometry-note,
  .is-enhanced .geometry-boundary {
    visibility: visible;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .is-enhanced .geometry-contour {
    visibility: visible;
    opacity: 1;
    animation: none;
  }

  .is-enhanced .source-label {
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .pipeline-svg {
    min-width: 0;
  }

  .chart-scroll {
    overflow: visible;
  }

  .chart-scroll svg {
    min-width: 0;
  }

  .result-figure {
    break-inside: avoid;
  }

  .scroll-hint {
    display: none;
  }
}
