@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@font-face {
  font-family: "Charter";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/Charter/charter_regular.woff2") format("woff2");
}
@font-face {
  font-family: "Charter";
  font-style: italic;
  font-weight: normal;
  src: url("../fonts/Charter/charter_italic.woff2") format("woff2");
}
@font-face {
  font-family: "Charter";
  font-style: normal;
  font-weight: bold;
  src: url("../fonts/Charter/charter_bold.woff2") format("woff2");
}
@font-face {
  font-family: "Charter";
  font-style: italic;
  font-weight: bold;
  src: url("../fonts/Charter/charter_bold_italic.woff2") format("woff2");
}
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  background-color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p, a, code, pre, ol, ul, li {
  color: #353535;
  line-height: 1.6;
  font-weight: 300;
  font-size: 18px;
  font-family: "Poppins", serif;
}

a {
  text-underline-offset: 1px;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
a:hover {
  color: inherit;
}

b {
  font-weight: 600;
}

em {
  font-style: italic;
}

sub {
  font-weight: inherit;
  font-size: 0.65em;
  position: relative;
  top: 0.3em;
}

sup {
  font-weight: inherit;
  font-size: 0.65em;
  position: relative;
  top: -0.5em;
}

hr {
  border: 0;
  height: 0;
  border-top: 1px solid rgb(0, 0, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
hr.hard {
  border-top: 1px solid rgba(0, 0, 0, 0.5);
}
hr.soft {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

img {
  width: 100%;
  margin: 0 auto;
  display: block;
}

video {
  width: 100%;
  margin: 0 auto;
  display: block;
}

svg {
  width: 100%;
}

.container {
  padding-right: calc(6vw - (100vw - 100%));
  padding-left: 6vw;
  flex: 1;
}

::-moz-selection {
  color: white;
  background: #353535;
}

::selection {
  color: white;
  background: #353535;
}

@media screen and (max-width: 769px) {
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 15px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 600;
  }
  h1.title {
    font-weight: 500;
    font-size: 26px;
  }
  h2 {
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 700;
    font-size: 30px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 24px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 18px;
  }
}
@media screen and (min-width: 769px) {
  .container {
    padding-right: calc(8.5vw - (100vw - 100%));
    padding-left: 8.5vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 16px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 26px;
  }
  h2 {
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 700;
    font-size: 30px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 2vh 0;
    font-size: 24px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 2vh 0;
    font-size: 18px;
  }
}
@media screen and (min-width: 992px) {
  .container {
    padding-right: calc(12vw - (100vw - 100%));
    padding-left: 12vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 16px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 26px;
  }
  h2 {
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 700;
    font-size: 30px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1vh 0;
    font-size: 24px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1vh 0;
    font-size: 18px;
  }
}
@media screen and (min-width: 1200px) {
  .container {
    padding-right: calc(15vw - (100vw - 100%));
    padding-left: 15vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 17px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 30px;
  }
  h2 {
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 700;
    font-size: 38px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1vh 0;
    font-size: 30px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1vh 0;
    font-size: 24px;
  }
}
@media screen and (min-width: 1600px) {
  .container {
    padding-right: calc(18vw - (100vw - 100%));
    padding-left: 18vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 18px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1.75vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 36px;
  }
  h2 {
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 700;
    font-size: 38px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 30px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 24px;
  }
}
@media screen and (min-width: 2000px) {
  .container {
    padding-right: calc(22vw - (100vw - 100%));
    padding-left: 22vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 18px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1.75vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 36px;
  }
  h2 {
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 700;
    font-size: 38px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 30px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 24px;
  }
}
@media screen and (min-width: 2400px) {
  .container {
    padding-right: calc(24vw - (100vw - 100%));
    padding-left: 24vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 20px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1.75vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 36px;
  }
  h2 {
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 700;
    font-size: 38px;
  }
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 30px;
  }
  h4 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 24px;
  }
}
@media screen and (min-width: 3200px) {
  .container {
    padding-right: calc(32vw - (100vw - 100%));
    padding-left: 28vw;
  }
}
footer {
  padding: 3vh 0px;
  background-color: #fafafa;
}
footer span {
  padding: 0 1px;
  font-size: 0.85em;
}
footer p {
  font-style: italic;
}

@media screen and (min-width: 992px) {
  footer {
    padding: 3vh 0px;
    background-color: #fafafa;
  }
}
@media screen and (min-width: 1200px) {
  footer {
    padding: 4vh 0px;
    background-color: #fafafa;
  }
}
@media screen and (min-width: 1600px) {
  footer {
    padding: 5vh 0px;
  }
}
/* ======================== Blog ===================== */
div.container.blog#first-content {
  padding-top: max(60px, var(--navbar-height, 60px));
  background-color: #f6f6f6;
}
div.container.blog#first-content div.blog-title {
  display: grid;
  grid-template-columns: 1fr;
  grid-row: 50vh;
}
div.container.blog#first-content div.blog-title.white * {
  color: white;
}
div.container.blog#first-content div.blog-title.white *::-moz-selection {
  color: #353535 !important;
  background: white !important;
}
div.container.blog#first-content div.blog-title.white *::selection {
  color: #353535 !important;
  background: white !important;
}
div.container.blog#first-content div.blog-title.white * .link * {
  color: #f4f3ef !important;
}
div.container.blog#first-content div.blog-title.white * .info p {
  color: #f4f3ef !important;
}
div.container.blog#first-content div.blog-title .blog-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2vh 0;
}
div.container.blog#first-content div.blog-title .blog-intro p.author {
  padding: 4px 0;
  font-weight: 500;
  line-height: 1.2;
}
div.container.blog#first-content div.blog-title .blog-intro p.author .author-name {
  white-space: nowrap;
}
div.container.blog#first-content div.blog-title .blog-intro p.institution {
  padding: 4px 0;
  font-weight: 500;
  /* font-style: italic; */
  line-height: 1.2;
}
div.container.blog#first-content div.blog-title .blog-intro p.abstract {
  font-family: "Poppins";
  font-weight: 400;
  padding: 1vh 0;
}

/* TL;DR callout shown above the full abstract in the Overview section — set
 * apart from the justified `.text` paragraphs below it so a reader can take
 * in the one-line summary before (or instead of) the full abstract. */
#summary .tldr {
  max-width: 760px;
  margin: 0 auto 28px auto;
  padding: 14px 20px;
  background: #f6f6f8;
  border-left: 3px solid #1f6feb;
  border-radius: 6px;
  font-size: 1em;
  line-height: 1.5;
  text-align: left;
  color: #1a1a1a;
}

div.container.blog#first-content div.blog-title .blog-intro .info p {
  padding: 10px 0 0 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #353535;
  font-weight: 600;
  font-size: 0.95em;
}

/* ======================== Retrieval ===================== */
.retrieval-panel {
  background-color: #f6f6f6;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.retrieval-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 0.5vw;
  align-items: center;
}

.retrieval-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.retrieval-card--results {
  grid-column: 3 / -1;
}

.retrieval-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  aspect-ratio: 1 / 1;
}

.retrieval-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retrieval-panel .caption {
  text-align: center;
  margin-top: 4px;
}

.retrieval-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4vw;
  width: 100%;
}

.retrieval-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  align-self: center;
  /* transform: translateY(-6px); */
}

.retrieval-connector-line {
  width: 14px;
  height: 2px;
  background: #555;
  border-radius: 999px;
  display: inline-block;
}

.retrieval-connector-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid #555;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 3px;
}

.retrieval-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.retrieval-controls input[type=range] {
  width: 100%;
  max-width: 520px;
}

.retrieval-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.retrieval-buttons .button {
  font-size: 0.55em;
  padding: 0.5em 0.9em;
  margin-bottom: 0;
}

.retrieval-buttons .icon {
  display: inline-flex;
  align-items: center;
}

.retrieval-buttons .icon svg {
  width: 14px;
  height: 14px;
}

.retrieval-buttons .icon i {
  font-size: 14px;
}

.retrieval-hint {
  color: #666667;
}

.view-retrieval-input {
  position: relative;
}

.view-retrieval-panel .retrieval-grid {
  align-items: start;
  grid-template-rows: auto auto auto;
  row-gap: 8px;
}

.view-retrieval-panel .retrieval-card {
  display: contents;
}

.view-retrieval-panel .view-retrieval-input {
  grid-column: 1;
  grid-row: 1;
}

.view-retrieval-panel .retrieval-connector {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.view-retrieval-panel .retrieval-results-grid {
  grid-column: 3 / -1;
  grid-row: 1;
}

.view-retrieval-panel .view-input-label {
  grid-column: 1;
  grid-row: 2;
}

.view-retrieval-panel .view-state-label {
  grid-column: 1;
  grid-row: 3;
}

.view-retrieval-panel .view-results-label {
  grid-column: 3 / -1;
  grid-row: 2;
}

.view-control-button {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 4vw, 52px);
  height: clamp(34px, 4vw, 52px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #050505;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.view-control-button:hover,
.view-control-button:focus-visible {
  background: rgba(255, 255, 255, 0.95);
}

.view-control-button i {
  font-size: clamp(1.1rem, 2.8vw, 2rem);
}

.view-control-button--up {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.view-control-button--right {
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
}

.view-control-button--down {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.view-control-button--left {
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
}

.view-state-label {
  color: #666667;
  font-size: 0.75em;
  margin-top: 0 !important;
}

.synthesis-panel {
  background-color: #d9d9d9;
  border-radius: 28px;
  padding: 28px 28px 24px;
}

.synthesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
}

.synthesis-card {
  display: contents;
}

.synthesis-grid .retrieval-image {
  width: 100%;
  grid-row: 1;
}

.synthesis-grid .synthesis-connector {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.synthesis-input-image,
.synthesis-input-label,
#nvs-source-view-label {
  grid-column: 1;
}

.synthesis-baseline-image,
.synthesis-baseline-label {
  grid-column: 3;
}

.synthesis-ours-image,
.synthesis-ours-label {
  grid-column: 4;
}

.synthesis-gt-image,
.synthesis-gt-label,
#nvs-target-view-label {
  grid-column: 5;
}

.synthesis-input-label,
.synthesis-baseline-label,
.synthesis-ours-label,
.synthesis-gt-label {
  grid-row: 2;
}

#nvs-source-view-label,
#nvs-target-view-label {
  grid-row: 3;
}

.synthesis-buttons {
  margin-top: 18px;
}

.generation-panel {
  background-color: #f6f6f6;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.generation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
}

.generation-card {
  display: contents;
}

.generation-input-frame,
.generation-grid .retrieval-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  grid-row: 1;
}

/* Shared by the 3D Generation baselines viewer grid (SAM3D/TRELLIS/Ours/GT
 * mesh slots) — previously lived in an inline <style> block scoped to the
 * old Retrieval section's markup, which has since been replaced; these
 * rules are still needed here even though the class names say "retrieval". */
.retrieval-model-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #eef0f2;
  border-radius: 10px;
  overflow: hidden;
}

.retrieval-model-slot .ulip-glb-mount,
.retrieval-model-slot .ulip-splat-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.retrieval-model-slot canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.generation-input-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.generation-single-input,
.generation-multi-input {
  width: 100%;
  height: 100%;
}

.generation-single-input img,
.generation-multi-input img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generation-multi-input {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}

.generation-multi-input img {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.generation-input-frame .is-hidden {
  display: none;
}

.generation-connector {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.generation-input-frame,
.generation-input-label,
#generation-mode-label,
.generation-mode-toggle {
  grid-column: 1;
}

.gen-col-3 {
  grid-column: 3;
}

.gen-col-4 {
  grid-column: 4;
}

.gen-col-5 {
  grid-column: 5;
}

.gen-col-6 {
  grid-column: 6;
}

.generation-model-slot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.generation-col-label {
  grid-row: 2;
}

.generation-input-label,
.generation-baseline-label,
.generation-ours-label,
.generation-gt-label {
  grid-row: 2;
}

#generation-mode-label {
  grid-row: 3;
}

.generation-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  grid-row: 4;
  margin-top: 4px;
}

.generation-mode-button {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #f6f6f6;
  color: #353535;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 0.78em;
  font-weight: 500;
  padding: 0.65em 0.9em;
}

.generation-mode-button.is-active {
  background: #353535;
  color: #f6f6f6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.generation-single-control:disabled {
  pointer-events: none;
}

.generation-buttons {
  margin-top: 16px;
}

.transfers-panel {
  padding: 8px 0 0;
  overflow: visible;
}

.transfers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.transfers-header h2,
.transfers-header h3 {
  margin: 0;
}

.transfers-index {
  display: block;
  color: #8a8f96;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.transfers-carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.transfers-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: min(88%, 1040px);
  aspect-ratio: 1 / 0.76;
  padding: 0;
  border-radius: 16px;
  background: #eeeeee;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity 0.28s ease;
}

/* Applied for one frame on task change so the card fades in over the preview
   that just slid into the active position. */
.transfers-card.is-switching {
  opacity: 0;
  transition: none;
}

/* Every content section shares the single fixed cell so the panel size stays
   constant as you move between transfers within a mode. Tall content (image
   grid, 3D viewer) fills the cell; short content (object / NOCS / table) is
   vertically centred via align-self on the individual rules below. */
.transfers-card > .transfers-quals,
.transfers-card > .transfers-qual-section,
.transfers-card > .transfers-3d-viewer,
.transfers-card > .transfers-quants {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}

.transfers-card > .transfers-qual-section--object,
.transfers-card > .transfers-qual-section--nocs,
.transfers-card > .transfers-quants {
  align-self: center;
  padding: 24px;
  box-sizing: border-box;
}

.transfers-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  width: min(88%, 1040px);
  margin: 0 auto 18px;
}

.transfers-header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.transfers-mode-switch {
  display: none;
}

.transfers-mode-tabs {
  display: inline-flex;
  align-self: center;
  flex: 0 0 auto;
  gap: 0;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.10);
}

.transfers-active-heading {
  display: grid;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.transfers-heading-slot {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  text-align: left;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.transfers-heading-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.transfers-carousel-controls {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .transfers-carousel-controls {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.transfers-mode-button {
  display: none;
}

.transfers-mode-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  padding: 6px 16px 10px;
  background: transparent;
  color: #999;
  font-size: 0.80rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.transfers-mode-tab:hover {
  color: #444;
}

.transfers-mode-tab.is-active {
  color: #304d6d;
  border-bottom-color: #304d6d;
}

.transfers-quals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.transfers-qual-section {
  width: 100%;
}

.transfers-qual-object-grid,
.transfers-nocs-grid {
  display: grid;
  gap: 18px;
  width: 100%;
}

.transfers-qual-object-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.transfers-qual-object-card,
.transfers-nocs-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transfers-qual-object-card h3 {
  margin: 0;
  text-align: center;
}

.transfers-object-viewer,
.transfers-nocs-image {
  aspect-ratio: 1 / 0.76;
  overflow: hidden;
  border-radius: 16px;
  background: #eef0f1;
}

.transfers-object-viewer canvas {
  display: block;
}

.transfers-nocs-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transfers-nocs-slider {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  overflow: hidden;
  border-radius: 16px;
  background: #eef0f1;
}

.transfers-nocs-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transfers-qual-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}

.transfers-qual-index {
  min-width: 42px;
  text-align: center;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #8a8f96;
}

.transfers-header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.transfers-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: #32424b;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.transfers-nav-btn:hover {
  background: rgba(0, 0, 0, 0.14);
  color: #000;
}

.viewer-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.viewer-hint.is-hidden {
  opacity: 0;
}

.transfers-qual-image {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.transfers-qual-image img {
  display: block;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  overflow: hidden;
  background: #eef0f1;
  border-radius: 16px;
}

.transfers-qual-caption {
  margin: 0;
  color: #666667;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
}

.transfers-quants .table-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 0;
  overflow-x: auto;
}

.transfers-quants table {
  margin: 0 auto;
  width: 100%;
  table-layout: auto;
}

.transfers-quants th,
.transfers-quants td {
  white-space: nowrap;
}

.transfers-quants tbody tr.is-ours td {
  background: rgba(48, 77, 109, 0.07);
}

.transfers-quants tbody tr.is-ours td:first-child {
  font-weight: 700;
  color: #304d6d;
}

.transfers-card.is-quantitative .transfers-quals,
.transfers-card.is-quantitative .transfers-qual-section--object,
.transfers-card.is-quantitative .transfers-qual-section--nocs,
.transfers-card.is-quantitative .transfers-3d-viewer {
  display: none !important;
}

.transfers-card.is-quantitative .transfers-quants {
  width: 100%;
}

.transfers-card.is-quantitative .table-wrapper {
  max-width: 920px;
}

/* ── Transfers slide carousel (matches tokenization slide pattern) ────────── */

.transfers-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88%, 1040px);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  filter: saturate(0.75);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
  will-change: transform, opacity;
}

/* Suppress animation on direct tab jumps */
.transfers-slide.no-transition {
  transition: none !important;
}

.transfers-slide[data-position="left"] {
  transform: translate(-80%, -50%) scale(0.78);
  opacity: 0.6;
  z-index: 1;
}

.transfers-slide[data-position="right"] {
  transform: translate(-20%, -50%) scale(0.78);
  opacity: 0.6;
  z-index: 1;
}

/* Active slide shows its preview at full opacity; the .transfers-card overlays
   it at z-index 3 and fades in on task change so the preview that slid into
   place is briefly visible underneath (smooth "slide into place"). */
.transfers-slide[data-position="active"] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 2;
  pointer-events: none;
}

.transfers-slide[data-position="far-left"],
.transfers-slide[data-position="far-right"] {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  z-index: 0;
}

.transfers-slide:not([data-position="active"]) {
  cursor: pointer;
  pointer-events: auto;
}

.transfers-slide:not([data-position="active"]) * {
  pointer-events: none;
}

.transfers-slide:not([data-position="active"]):hover {
  opacity: 0.85;
  filter: none;
}

.transfers-carousel-stage:has(.transfers-slide[data-position="active"]:hover) .transfers-slide:not([data-position="active"]) {
  pointer-events: none;
}

.transfers-carousel-stage:has(.transfers-slide[data-position="active"]:hover) .transfers-slide[data-position="left"],
.transfers-carousel-stage:has(.transfers-slide[data-position="active"]:hover) .transfers-slide[data-position="right"] {
  opacity: 0.6;
}

.transfers-slide-frame {
  width: 100%;
  border-radius: 16px;
  background: #eeeeee;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  aspect-ratio: 1 / 0.76;
  overflow: hidden;
}

/* The active slide sits directly under the .transfers-card (same size); the
   card supplies the shadow, so drop the frame's own to avoid a doubled halo. */
.transfers-slide[data-position="active"] .transfers-slide-frame {
  box-shadow: none;
}

.transfers-slide-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live 3D preview mounted inside a side slide (tasks with no static render).
   Uses its own aspect-ratio (not height:100%) so the container has a definite
   size even when it mounts while its slide is the initially-active one. */
.transfers-slide-preview--3d {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  background: #eeeeee;
}

/* Previews are decorative — suppress the interaction hint. */
.transfers-slide-preview--3d .viewer-hint {
  display: none;
}

.transfers-controls {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.transfers-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.transfers-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: #32424b;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.transfers-tab:hover:not(.is-active) {
  color: #050505;
}

.transfers-tab.is-active {
  background: #304d6d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(48, 77, 109, 0.22);
}

.view-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #050505;
  cursor: pointer;
}

.view-carousel-button i {
  font-size: 2.6rem;
}

.view-carousel-button:hover,
.view-carousel-button:focus-visible {
  color: #666667;
}

.ablations-panel {
  padding-top: 8px;
}

.ablations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ablations-header h2 {
  margin: 0;
}

.ablations-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(320px, 1.08fr) minmax(210px, 0.9fr);
  align-items: center;
  gap: 32px;
}

.ablations-side-card,
.ablations-chart-card {
  border-radius: 24px;
  background: #eeeeee;
}

.ablations-side-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.ablations-side-card h3 {
  margin: 0 0 22px;
}

.ablations-side-card p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.45;
}

.ablations-chart-card {
  padding: 28px;
  background: #f6f6f6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.ablations-spider-chart {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.spider-chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: "Poppins", sans-serif;
}

.spider-chart-title {
  text-anchor: middle;
  font-size: 20px;
  font-weight: 600;
  fill: #353535;
}

.spider-grid-ring {
  fill: none;
  stroke: rgba(64, 64, 65, 0.25);
  stroke-width: 1.2;
}

.spider-axis {
  stroke: rgba(64, 64, 65, 0.32);
  stroke-width: 1;
}

.spider-axis-label {
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 15px;
  font-weight: 600;
  fill: #404041;
}

.spider-series {
  fill-opacity: 0.18;
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.spider-marker {
  stroke: #f6f6f6;
  stroke-width: 1.4;
}

.spider-legend text {
  font-size: 13px;
  fill: #404041;
}

.spider-legend line {
  stroke-width: 3;
  stroke-linecap: round;
}

.ablations-controls {
  margin-top: 26px;
}

.tokenization-panel {
  background-color: #f6f6f6;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tokenization-subsection {
  margin-bottom: 32px;
}

.tokenization-subsection:last-child {
  margin-bottom: 0;
}

.tokenization-subsection h2 {
  margin-bottom: 16px;
  font-size: 1.2em;
  font-weight: 600;
}

.tokenization-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.tokenization-figure {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tokenization-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* The three wide generation diagrams (#generation-from-2d / -from-3d /
 * -steerable) are SVGs with a ~1850px viewBox and no width attr, so they
 * render at intrinsic width and overflow the column to the right. Cap them at
 * the same centered max-width as the any-to-any figure and center them. */
#capabilities .tokenization-figure-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

#capabilities img.tokenization-figure {
  display: block;
  width: 100%;
  height: auto;
}

.tokenization-description {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tokenization-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 14px;
}

.tokenization-header-row .tokenization-active-heading {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.tokenization-active-heading {
  display: grid;
  margin: 28px 0 14px;
}

.tokenization-heading-slot {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  text-align: left;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.tokenization-heading-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tokenization-media-bar {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  align-self: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.tokenization-media-bar[data-active="true"] {
  opacity: 1;
  pointer-events: auto;
}

.tokenization-media-pill {
  display: inline-flex;
  align-items: stretch;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tokenization-media-button {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  padding: 0 14px;
  height: 32px;
  border-radius: 999px;
  color: #2a2a2a;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tokenization-media-button > span {
  display: inline-block;
  line-height: 1;
}

.tokenization-media-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tokenization-media-button--play .tokenization-media-icon {
  width: 14px;
  height: 14px;
}

.tokenization-media-button:hover,
.tokenization-media-button:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: #050505;
  outline: none;
}

.tokenization-media-button--play {
  width: 32px;
  padding: 0;
  column-gap: 0;
  flex: 0 0 auto;
}

.tokenization-media-button--play .tokenization-media-icon-pause {
  display: none;
}

.tokenization-media-button--play[data-state="playing"] .tokenization-media-icon-play {
  display: none;
}

.tokenization-media-button--play[data-state="playing"] .tokenization-media-icon-pause {
  display: block;
}

.tokenization-media-divider {
  align-self: center;
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 2px;
}

.tokenization-media-scrub {
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.tokenization-media-scrub::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
}

.tokenization-media-scrub::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
}

.tokenization-media-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #304d6d;
  margin-top: -5px;
  border: 0;
  box-shadow: 0 2px 6px rgba(48, 77, 109, 0.35);
}

.tokenization-media-scrub::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #304d6d;
  border: 0;
  box-shadow: 0 2px 6px rgba(48, 77, 109, 0.35);
}

.tokenization-video {
  background: white;
}

@media (max-width: 720px) {
  .tokenization-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tokenization-media-bar {
    width: 100%;
    align-items: stretch;
  }
  .tokenization-media-pill {
    align-self: flex-start;
  }
}

.tokenization-carousel {
  margin-top: 4px;
}

.tokenization-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 788;
  overflow: visible;
}

.tokenization-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  filter: saturate(0.75);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
  will-change: transform, opacity;
}

.tokenization-slide[data-position="left"] {
  transform: translate(-80%, -50%) scale(0.78);
  opacity: 0.6;
  z-index: 1;
}

.tokenization-slide[data-position="right"] {
  transform: translate(-20%, -50%) scale(0.78);
  opacity: 0.6;
  z-index: 1;
}

.tokenization-slide[data-position="active"] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
}

.tokenization-slide[data-position="far-left"],
.tokenization-slide[data-position="far-right"] {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  z-index: 0;
}

.tokenization-slide-frame {
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #eeeeee;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.tokenization-slide[data-position="active"] .tokenization-slide-frame {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

/* Side panels: clickable, with all inner content non-interactive so the
   click reaches the slide handler. */
.tokenization-slide:not([data-position="active"]),
.retrieval-slide:not([data-position="active"]) {
  cursor: pointer;
  pointer-events: auto;
}

.tokenization-slide:not([data-position="active"]) *,
.retrieval-slide:not([data-position="active"]) * {
  pointer-events: none;
}

.tokenization-slide:not([data-position="active"]):hover,
.retrieval-slide:not([data-position="active"]):hover {
  opacity: 0.85;
  filter: none;
}

/* When the active panel is hovered, side panels stay in their resting state
   (no hover halo) and ignore pointer events. This stops mouseover/clicks on
   the focused panel from bleeding into the side panels. */
.tokenization-stage:has(.tokenization-slide[data-position="active"]:hover) .tokenization-slide:not([data-position="active"]),
.retrieval-stage:has(.retrieval-slide[data-position="active"]:hover) .retrieval-slide:not([data-position="active"]) {
  pointer-events: none;
}

.tokenization-stage:has(.tokenization-slide[data-position="active"]:hover) .tokenization-slide[data-position="left"],
.tokenization-stage:has(.tokenization-slide[data-position="active"]:hover) .tokenization-slide[data-position="right"] {
  opacity: 0.6;
}

.retrieval-stage:has(.retrieval-slide[data-position="active"]:hover) .retrieval-slide[data-position="left"],
.retrieval-stage:has(.retrieval-slide[data-position="active"]:hover) .retrieval-slide[data-position="right"] {
  opacity: 0.4;
  filter: saturate(0.6) blur(1.5px);
}

.tokenization-slide-frame > .tokenization-figure {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  border: 0;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}

/* ====================== Retrieval carousel (2 panels) ====================== */

.retrieval-active-heading {
  display: grid;
  margin: 28px 0 14px;
}

.retrieval-heading-slot {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  text-align: left;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.retrieval-heading-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.retrieval-carousel {
  margin-top: 4px;
}

.retrieval-stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}

.retrieval-slide {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  transform: translate(0, 0) scale(0.74);
  transform-origin: center center;
  opacity: 0;
  filter: saturate(0.6) blur(1.5px);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
  will-change: transform, opacity;
  z-index: 1;
}

.retrieval-slide[data-position="active"] {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 3;
}

.retrieval-slide[data-position="left"] {
  transform: translate(-32%, 0) scale(0.74);
  opacity: 0.4;
}

.retrieval-slide[data-position="right"] {
  transform: translate(32%, 0) scale(0.74);
  opacity: 0.4;
}

.retrieval-carousel-controls {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.retrieval-active-description {
  display: grid;
  margin-top: 22px;
}

.retrieval-description-slot {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.retrieval-description-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .retrieval-slide[data-position="left"],
  .retrieval-slide[data-position="right"] {
    opacity: 0;
  }
  .retrieval-carousel-controls {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.modelling-figure-frame {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1144 / 1080;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  margin: 12px auto 0;
}

.modelling-figure-frame > .modelling-video {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  border: 0;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}

/* Same treatment as .modelling-figure-frame, sized for the chaining
 * animation's own aspect ratio (1920x856) instead of modelling's. */
.chained-generations-figure-frame {
  width: 100%;
  aspect-ratio: 1920 / 856;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #eeeeee;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  margin-top: 12px;
}
.chained-generations-figure-frame > .chained-generations-video {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  border: 0;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}

@media (max-width: 900px) {
  .tokenization-slide[data-position="left"],
  .tokenization-slide[data-position="right"] {
    opacity: 0;
  }
  .tokenization-controls {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.tokenization-controls {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.tokenization-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #32424b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tokenization-arrow:hover,
.tokenization-arrow:focus-visible {
  color: #050505;
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}

.tokenization-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Plain rectangular outline buttons — no fill, no pill shape. Hover/active
 * only ever change the border color/text weight, never the background, so
 * switching tabs doesn't read as a "filled chatbot button" state change. */
.tokenization-tab {
  appearance: none;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  padding: 9px 16px;
  background: transparent;
  color: #32424b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tokenization-tab:hover:not(.is-active),
.tokenization-tab:active {
  /* Explicit, not just omitted: the shared `button:hover`/`button:active`
   * base rule (element + pseudo-class) is textually more specific than a
   * bare `.tokenization-tab` class selector, so its grey background-fill
   * still wins here unless overridden directly on this same hover rule. */
  background: transparent;
  border-color: rgba(0, 0, 0, 0.65);
  color: #050505;
}

.tokenization-tab.is-active {
  background: transparent;
  border-color: #304d6d;
  color: #304d6d;
  font-weight: 700;
}

.tokenization-active-description {
  margin-top: 22px;
  display: grid;
}

.tokenization-description-slot {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.tokenization-description-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .tokenization-controls {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.tokenization-description p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95em;
}

.tokenization-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tokenization-buttons .button {
  font-size: 0.55em;
  padding: 0.5em 0.9em;
  margin-bottom: 0;
}

.tokenization-buttons .icon {
  display: inline-flex;
  align-items: center;
}

.tokenization-buttons .icon i {
  font-size: 14px;
}

.tokenization-hint {
  color: #666667;
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}

/* Legacy tokenization styles for compatibility */
.tokenization-figure-legacy {
  position: relative;
  width: min(100%, 1220px);
  aspect-ratio: 1615 / 438;
  margin: 0 auto;
  background: #d9d9d9;
  overflow: hidden;
}

.tokenization-template {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.tokenization-slot {
  position: absolute;
  z-index: 2;
  left: var(--slot-left);
  top: var(--slot-top);
  width: var(--slot-width);
  height: var(--slot-height);
  pointer-events: none;
}

.tokenization-slot img {
  position: absolute;
  inset: 2px;
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
}

.tokenization-slot--object img {
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
}

.tokenization-slider-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(560px, 78%);
  margin: 28px auto 0;
}

.tokenization-slider-row input[type=range] {
  width: 100%;
}

.tokenization-slider-row .caption {
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.partfield-panel {
  background-color: #f6f6f6;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.partfield-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.partfield-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.partfield-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.partfield-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partfield-panel .caption {
  text-align: center;
  margin-top: 4px;
}

.partfield-operator {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: -34px;
  color: #555;
}

.partfield-operator--plus {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.partfield-operator--arrow {
  min-width: 44px;
}

.partfield-arrow-line {
  width: 14px;
  height: 2px;
  background: #555;
  border-radius: 999px;
  display: inline-block;
}

.partfield-arrow-head {
  width: 0;
  height: 0;
  border-left: 6px solid #555;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 3px;
}

.partfield-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-top: 18px;
}

.partfield-slider-group {
  min-width: 0;
}

.partfield-slider-group--input {
  grid-column: 1;
}

.partfield-slider-group--parts {
  grid-column: 5;
}

.partfield-slider-group--explode {
  grid-column: 7;
}

.partfield-slider-group input[type=range] {
  width: 100%;
}

.partfield-buttons {
  margin-top: 10px;
}

@media screen and (max-width: 992px) {
  .retrieval-grid {
    grid-template-columns: 1fr;
  }

  .retrieval-card--results {
    grid-column: span 1;
  }

  .retrieval-connector {
    display: none;
  }

  .retrieval-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-retrieval-panel .view-retrieval-input,
  .view-retrieval-panel .retrieval-results-grid,
  .view-retrieval-panel .view-input-label,
  .view-retrieval-panel .view-state-label,
  .view-retrieval-panel .view-results-label {
    grid-column: 1;
    grid-row: auto;
  }

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

  .synthesis-grid .retrieval-image,
  .synthesis-grid .synthesis-connector,
  .synthesis-input-label,
  .synthesis-baseline-label,
  .synthesis-ours-label,
  .synthesis-gt-label,
  #nvs-source-view-label,
  #nvs-target-view-label {
    grid-column: auto;
    grid-row: auto;
  }

  .synthesis-grid .synthesis-connector {
    display: none;
  }

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

  .generation-input-frame,
  .generation-grid .retrieval-image,
  .generation-connector,
  .generation-input-label,
  .generation-col-label,
  .gen-col-3,
  .gen-col-4,
  .gen-col-5,
  .gen-col-6,
  #generation-mode-label,
  .generation-mode-toggle {
    grid-column: auto;
    grid-row: auto;
  }

  .generation-connector {
    display: none;
  }

  .transfers-card {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
    width: 100%;
  }

  /* Single-column mobile layout: no coverflow, so sections size to content. */
  .transfers-quals {
    grid-template-rows: none;
    height: auto;
  }

  .transfers-qual-image {
    aspect-ratio: 1 / 0.76;
  }

  .transfers-qual-image img {
    flex: none;
    height: 100%;
  }

  .transfers-carousel-stage {
    min-height: 0;
  }

  .transfers-slide[data-position="left"],
  .transfers-slide[data-position="right"] {
    display: none;
  }

  .ablations-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ablations-side-card {
    min-height: 0;
  }

  .tokenization-panel {
    padding: 22px;
  }

  .tokenization-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tokenization-controls input[type=range] {
    max-width: 100%;
  }

  .partfield-panel {
    padding: 22px;
  }

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

  .partfield-operator {
    display: none;
  }

  .partfield-slider-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .partfield-slider-group--input,
  .partfield-slider-group--parts,
  .partfield-slider-group--explode {
    grid-column: auto;
  }

  .partfield-slider-spacer {
    display: none;
  }
}

@media screen and (max-width: 769px) {
  .retrieval-grid {
    grid-template-columns: 1fr;
  }

  .retrieval-card--results {
    grid-column: span 1;
  }

  .retrieval-results-grid {
    grid-template-columns: 1fr;
  }

  .partfield-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .transfers-panel {
    padding-top: 0;
  }

  .transfers-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .transfers-header-nav {
    gap: 10px;
  }

  .ablations-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ablations-chart-card {
    padding: 18px;
  }

  .tokenization-panel {
    border-radius: 20px;
    padding: 16px;
  }

  .tokenization-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tokenization-figure {
    padding: 12px;
  }

  .tokenization-description {
    padding: 16px;
  }

  .spider-legend {
    display: none;
  }

  .transfers-quals {
    grid-template-columns: 1fr;
  }

  .partfield-grid,
  .partfield-slider-row,
  .synthesis-grid,
  .generation-grid {
    grid-template-columns: 1fr;
  }
}
div.container.blog#first-content div.blog-title .blog-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2vh 0;
}
div.container.blog#first-content div.blog-title .blog-cover img.foreground {
  position: relative;
  z-index: 2;
  padding: 0 !important;
}
div.container.blog#first-content div.blog-title .blog-cover img.background {
  position: absolute;
  z-index: 1;
  filter: blur(24px);
  padding: 0 !important;
}

div.container.blog p.text {
  padding: 1.5vh 0;
  font-family: "Charter", sans-serif;
  text-align: justify;
}
div.container.blog p.text:last-child {
  padding-bottom: 0;
}
div.container.blog ul, div.container.blog ol {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  padding: 0;
}
div.container.blog ul li p.text, div.container.blog ol li p.text {
  padding: 0vh 0 1.5vh 0 !important;
}
div.container.blog p.caption {
  padding: 1vh 0;
  font-weight: 500;
  line-height: 1.2;
  font-size: 90%;
}
div.container.blog p.caption b {
  font-weight: 700 !important;
}
div.container.blog p.caption a {
  font-size: inherit;
  color: inherit;
}
div.container.blog p.caption.inline {
  padding: 1.5vh 0 !important;
  font-style: italic;
}
div.container.blog p.caption.inline.center {
  text-align: center;
}
div.container.blog p.caption.comment {
  padding: 0 2vw 1vh;
}
div.container.blog p.caption.selection {
  line-height: 1;
}
div.container.blog img {
  padding-bottom: 1vh;
}
div.container.blog.first {
  margin-top: 1.5vh;
}
div.container.blog.main {
  padding: 0.5vh 6vw;
}
div.container.blog.main.comment .content-comment {
  display: none;
}
div.container.blog.main.inline {
  padding-top: 0;
  padding-bottom: 1vh;
}
div.container.blog.large {
  padding: 0.5vh 6vw;
}
div.container.blog.large.inline {
  padding-top: 0;
  padding-bottom: 1vh;
}
div.container.blog.extra-large {
  padding: 0.5vh 6vw;
}
div.container.blog.extra-large.inline {
  padding-top: 0;
  padding-bottom: 1vh;
}
div.container.blog.extra-extra-large {
  padding: 0.5vh 6vw;
}
div.container.blog.extra-extra-large.inline {
  padding-top: 0;
  padding-bottom: 1vh;
}
div.container.blog.max {
  padding: 0.5vh 0vw;
}
div.container.blog.max.inline {
  padding-top: 0;
  padding-bottom: 1vh;
}
div.container.blog.gray {
  background-color: #f6f6f6;
}
div.container.blog.gray p.caption {
  padding-bottom: 0;
}
div.container.blog.gray-linear {
  background: linear-gradient(to bottom, #f6f6f6 0%, white 10%, white 90%, #f6f6f6 100%);
}
div.container.blog.gray-linear p.caption {
  padding-bottom: 0;
}

@media screen and (min-width: 769px) {
  div.container.blog#first-content {
    padding-top: max(60px, var(--navbar-height, 60px));
  }
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    -moz-column-gap: 2vw;
         column-gap: 2vw;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    margin: 0 0 0 auto;
    width: 90%;
    padding: 3vh 0;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title.no-cover h1 {
    padding: 0 2%;
    text-align: center;
    color: #1a1a1a;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 56px);
  }
  div.container.blog#first-content div.blog-title.no-cover p.author {
    padding: 10px 2%;
    text-align: center;
  }
  div.container.blog#first-content div.blog-title.no-cover p.institution {
    padding: 10px 2%;
    text-align: center;
  }
  div.container.blog#first-content div.blog-title.no-cover .info {
    display: flex;
    justify-content: space-around;
  }
  div.container.blog.first {
    margin-top: 2vh;
  }
  div.container.blog.main {
    padding: 1vh 15vw;
  }
  div.container.blog.main.comment {
    padding-left: 15vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 70vw 13vw;
  }
  div.container.blog.main.comment .content-comment {
    display: none;
  }
  div.container.blog.large {
    padding: 1vh 10vw;
  }
  div.container.blog.extra-large {
    padding: 1vh 8vw;
  }
  div.container.blog.extra-extra-large {
    padding: 1vh 8vw;
  }
}
@media screen and (min-width: 992px) {
  div.container.blog#first-content {
    padding-top: max(60px, var(--navbar-height, 60px));
  }
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 75vh;
    -moz-column-gap: 3vw;
         column-gap: 3vw;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    padding: 3vh 0;
  }
  div.container.blog.first {
    margin-top: 3vh;
  }
  div.container.blog.main {
    padding: 1.5vh 20vw;
  }
  div.container.blog.main.comment {
    padding-left: 20vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 60vw 18vw;
  }
  div.container.blog.main.comment .content-comment {
    display: none;
  }
  div.container.blog.large {
    padding: 1.5vh 15vw;
  }
  div.container.blog.extra-large {
    padding: 1.5vh 8.5vw;
  }
  div.container.blog.extra-extra-large {
    padding: 1.5vh 8.5vw;
  }
}
@media screen and (min-width: 1200px) {
  div.container.blog#first-content {
    padding-top: max(60px, var(--navbar-height, 60px));
  }
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 75vh;
    -moz-column-gap: 4vw;
         column-gap: 4vw;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    padding: 5vh 0;
  }
  div.container.blog#first-content div.blog-title .blog-intro p {
    padding: 1.5vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    padding: 5vh 0;
  }
  div.container.blog.first {
    margin-top: 4vh;
  }
  div.container.blog.main {
    padding: 2vh 24vw;
  }
  div.container.blog.main.comment {
    padding-left: 24vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 60vw 18vw;
  }
  div.container.blog.main.comment .content-comment {
    display: block;
  }
  div.container.blog.large {
    padding: 2vh 16vw;
  }
  div.container.blog.extra-large {
    padding: 2vh 12vw;
  }
  div.container.blog.extra-extra-large {
    padding: 2vh 12vw;
  }
}
@media screen and (min-width: 1600px) {
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 75vh;
    -moz-column-gap: 4vw;
         column-gap: 4vw;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    padding: 5vh 0;
  }
  div.container.blog#first-content div.blog-title .blog-intro p {
    padding: 1.5vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    padding: 5vh 0;
  }
  div.container.blog.first {
    margin-top: 5vh;
  }
  div.container.blog.main {
    padding: 2vh 27vw;
  }
  div.container.blog.main.comment {
    padding-left: 27vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 50vw 23vw;
  }
  div.container.blog.large {
    padding: 2vh 22vw;
  }
  div.container.blog.extra-large {
    padding: 2vh 18vw;
  }
  div.container.blog.extra-extra-large {
    padding: 2vh 14vw;
  }
}
@media screen and (min-width: 2000px) {
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 65vh;
    -moz-column-gap: 5vw;
         column-gap: 5vw;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    padding: 5vh 0;
  }
  div.container.blog#first-content div.blog-title .blog-intro p {
    padding: 1.5vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    padding: 5vh 0;
  }
  div.container.blog.first {
    margin-top: 5vh;
  }
  div.container.blog.main {
    padding: 2vh 30vw;
  }
  div.container.blog.main.comment {
    padding-left: 30vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 50vw 23vw;
  }
  div.container.blog.large {
    padding: 2vh 26vw;
  }
  div.container.blog.extra-large {
    padding: 2vh 22vw;
  }
  div.container.blog.extra-extra-large {
    padding: 2vh 16vw;
  }
}
@media screen and (min-width: 2400px) {
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 65vh;
    -moz-column-gap: 6vw;
         column-gap: 6vw;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    padding: 5vh 0;
  }
  div.container.blog#first-content div.blog-title .blog-intro p {
    padding: 1.5vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    padding: 5vh 0;
  }
  div.container.blog.first {
    margin-top: 5vh;
  }
  div.container.blog.main {
    padding: 2vh 32vw;
  }
  div.container.blog.main.comment {
    padding-left: 32vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 50vw 23vw;
  }
  div.container.blog.large {
    padding: 2vh 28vw;
  }
  div.container.blog.extra-large {
    padding: 2vh 24vw;
  }
  div.container.blog.extra-extra-large {
    padding: 2vh 18vw;
  }
}
@media screen and (min-width: 3200px) {
  div.container.blog#first-content div.blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 75vh;
    -moz-column-gap: 7vw;
         column-gap: 7vw;
  }
  div.container.blog#first-content div.blog-title .blog-intro {
    padding: 5vh 0;
  }
  div.container.blog#first-content div.blog-title .blog-intro p {
    padding: 1.5vh 0;
  }
  div.container.blog#first-content div.blog-title.no-cover {
    grid-template-columns: 1fr;
  }
  div.container.blog#first-content div.blog-title.no-cover .blog-intro {
    padding: 10px 0 0;
  }
  div.container.blog#first-content div.blog-title .blog-cover {
    padding: 5vh 0;
  }
  div.container.blog.first {
    margin-top: 5vh;
  }
  div.container.blog.main {
    padding: 2vh 38vw;
  }
  div.container.blog.main.comment {
    padding-left: 38vw;
    padding-right: 0vw;
    display: grid;
    grid-template-columns: 50vw 23vw;
  }
  div.container.blog.large {
    padding: 2vh 32vw;
  }
  div.container.blog.extra-large {
    padding: 2vh 28vw;
  }
  div.container.blog.extra-extra-large {
    padding: 2vh 22vw;
  }
}
/* ======================== Button ===================== */
input[type=submit], input[type=reset], input[type=button],
button, .button {
  background-color: #ececec;
  border-radius: 10px;
  padding: 0.75em 1em;
  margin-bottom: 10px;
  color: #353535;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover,
button:hover, .button:hover {
  background-color: #ececec;
  opacity: 0.8;
  color: #353535;
}
input[type=submit]:active, input[type=reset]:active, input[type=button]:active,
button:active, .button:active {
  opacity: 0.5;
  background-color: #ececec;
  color: #353535;
}
input[type=submit].icon i, input[type=reset].icon i, input[type=button].icon i,
button.icon i, .button.icon i {
  font-size: 1.2em;
  padding-right: 0.5em;
  padding-bottom: 1px;
}

/* Locked/"coming soon" buttons (e.g. hero Models/Demo/Data links before
 * those resources are ready) — greyed out and inert, rather than looking
 * identical to a working button. */
button.is-disabled, .button.is-disabled,
button.is-disabled:hover, .button.is-disabled:hover,
button.is-disabled:active, .button.is-disabled:active {
  background-color: #f4f4f4;
  color: #b0b0b0;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}
input[type=submit].project, input[type=reset].project, input[type=button].project,
button.project, .button.project {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  height: 0.75em;
  padding: 0.6em;
  font-size: 1em;
  color: #353535;
}
input[type=submit].project.white, input[type=reset].project.white, input[type=button].project.white,
button.project.white, .button.project.white {
  color: #f4f3ef;
}

@media screen and (max-width: 992px) {
  input[type=submit], input[type=reset], input[type=button],
  button, .button {
    font-size: 0.6em;
  }
  input[type=submit].icon i, input[type=reset].icon i, input[type=button].icon i,
  button.icon i, .button.icon i {
    font-size: 1.2em;
  }
}
/* ======================== Slide Menu ===================== */
.slide-menu {
  display: table;
  margin: 0 auto;
  padding-bottom: 2vh;
}
.slide-menu .dots {
  margin-bottom: -10px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.slide-menu .dots .dot {
  position: relative;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: inline-block;
  background-color: #c6c6c6;
  cursor: pointer;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 15px;
  transition: all 0.2s ease-in-out;
}
.slide-menu .dots .dot:after {
  content: "";
  position: absolute;
  left: -15px;
  top: -15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.slide-menu .dots .dot:hover {
  transform: scale(1.4);
}
.slide-menu .dots .dot.active {
  background-color: #E2a3a3;
  transform: scale(1.4);
}

/* ======================== Table ===================== */
.table-wrapper {
  overflow: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  padding-bottom: 1vh;
}

.table-wrapper::-webkit-scrollbar { /* WebKit */
  width: 0;
  height: 0;
}

table {
  margin: 0.5vh 0;
  width: 100%;
  font-family: "Poppins", sans-serif;
}
table a {
  font-size: inherit;
}
table th, table td {
  font-size: 85%;
}
table th b, table td b {
  font-weight: 900;
}
table thead {
  font-weight: 700;
}
table tbody tr {
  border: solid 1px #404041;
  border-left: 0;
  border-right: 0;
}
table tbody tr:nth-child(2n+1) {
  background-color: #ececec;
}
table tbody tr:first-child {
  border-top: solid 2px white;
}
table tbody tr:last-child {
  border-bottom: solid 2px white;
}
table tbody tr td.gray {
  background-color: #ececec !important;
}
table tbody tr td.nogray {
  background-color: #f6f6f6 !important;
}
table tbody.center td {
  text-align: center;
}
table thead.center th {
  text-align: center;
}
table td {
  color: #353535;
  padding: 0.5em 0.5em;
}
table th {
  color: #666667;
  padding: 0 0.5em 0.25em 0.5em;
  text-align: left;
}
table tfoot {
  border-top: solid 2px white;
}
table.alt {
  border-collapse: separate;
}
table.alt tbody tr td {
  border: solid 1px white;
  border-left-width: 0;
  border-top-width: 0;
}
table.alt tbody tr td:first-child {
  border-left-width: 1px;
}
table.alt tbody tr:first-child td {
  border-top-width: 1px;
}
table.alt thead {
  border-bottom: 0;
}
table.alt tfoot {
  border-top: 0;
}

/* ======================== Modality overview table ===================== */
.modality-table-wrap {
  margin: 2vh auto 1vh;
  width: 100%;
  max-width: 780px;
}
.modality-table-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.modality-table-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
@media screen and (max-width: 600px) {
  .modality-table-row {
    flex-direction: column;
  }
}
.modality-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
/* The site's base responsive rule sets font-size directly on every `td`/`th`
 * (scaling up to ~18px at wide breakpoints) — that explicit per-element
 * rule beats simple inheritance from `.modality-table`, so the size has to
 * be pinned on the cells themselves, not just the table wrapper. Fixed size
 * that doesn't grow with the viewport; way too large otherwise, causing
 * "Tokenizer"/"WordPiece"/etc. to overflow their cards. */
.modality-table th,
.modality-table td {
  font-size: 14px;
}
.modality-table thead th {
  background-color: #fff;
  color: #353535;
  font-weight: 700;
  text-align: center;
  padding: 0.6em 0.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.modality-table thead th:first-child {
  text-align: left;
}
.modality-table tbody tr {
  border: 0;
}
.modality-table tbody tr:nth-child(2n+1) {
  background-color: transparent;
}
.modality-table td {
  padding: 0.45em 0.5em;
  text-align: center;
}
.modality-table td:first-child {
  text-align: left;
}
.modality-table tbody tr.modality-category-row td {
  text-align: left;
  font-style: italic;
  font-weight: 600;
  /* Was `90%` — relative to the *inherited* size from <tr> (which the site's
   * base rule sets directly, bypassing the 12.5px pinned on the cells
   * above), not to the 12.5px sibling cells, so this rendered far bigger
   * than the rest of the table. Pin to a fixed size instead. */
  font-size: 13px;
  color: #666667;
  background-color: #fff;
  padding-top: 0.7em;
}
.modality-table tbody tr.modality-row--base {
  background-color: #eeeeee;
}
.modality-table tbody tr.modality-row--geo {
  background-color: #e4edfc;
}
.modality-table tbody tr.modality-row--sem {
  background-color: #e5f4e6;
}
.modality-table tbody tr.modality-row--hl {
  background-color: #fdf3da;
}

/* ======================== Code ===================== */
code {
  background-color: rgba(230, 235, 237, 0.25);
  border-radius: 10px;
  border: solid 1px #c6c6c6;
  font-family: "Fira Code", monospace;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
  color: #666667;
  font-size: 75% !important;
}

pre {
  font-family: "Fira Code", monospace;
  position: relative;
}

pre code {
  background-color: #fafafa !important;
  display: block;
  padding: 1.5vh 1.5vw !important;
  overflow-x: auto;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: #ececec;
  border-radius: 8px;
  padding: 0.75em 0.5em;
  color: #353535;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border: none;
  z-index: 10;
  gap: 0;
}
.code-copy-btn:hover {
  background-color: #ececec;
  opacity: 0.8;
  color: #353535;
}
.code-copy-btn:active {
  opacity: 0.5;
  background-color: #ececec;
  color: #353535;
}
.code-copy-btn.copied {
  padding: 0.75em 0.7em;
}
.code-copy-btn.copied .copy-text {
  max-width: 6em;
  opacity: 1;
  margin-left: 0.35em;
}
.code-copy-btn.copied i {
  padding-right: 0em;
  padding-left: 0em;
}
.code-copy-btn i {
  font-size: 1em;
  padding: 0 0.3em 1px 0.3em;
  display: inline-block;
  line-height: 1;
}
.code-copy-btn .copy-text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1;
  text-indent: 0;
  transition: max-width 0.4s ease, opacity 0.4s ease, margin-left 0.4s ease;
}

/* ======================== Selection ===================== */
select {
  border-color: transparent;
  border-radius: 5px;
  padding: 5px 3px;
  background-color: #ececec;
  display: inline;
  line-height: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
  border: 0;
  outline: none;
  margin: inherit;
  height: 30px;
  text-underline-offset: 1px;
  width: inherit;
}
select option {
  white-space: nowrap;
  overflow: hidden;
}
select:hover {
  cursor: pointer;
}
select:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #333;
}

/* ======================== Slider Display ===================== */
.slider-container {
  box-shadow: none;
  outline: none;
  --divider-width: 1px;
  --divider-color: #000;
  --default-handle-width: clamp(10px, 5vw, 40px);
  --default-handle-color: #000;
}
.slider-container.white {
  --divider-color: #fff;
  --default-handle-color: #fff;
}
.slider-container img {
  padding: 0 !important;
}

.before, .after {
  margin: 0;
}

.before figcaption {
  left: 8px;
}

.after figcaption {
  right: 8px;
}

.before figcaption,
.after figcaption {
  font-size: 90%;
  font-family: "Poppins";
  background: transparent;
  color: #353535;
  padding: 8px;
  position: absolute;
  top: 99%;
  transform: translateY(-100%);
  line-height: 100%;
}
.before figcaption.white,
.after figcaption.white {
  color: #f4f3ef;
}

/* ======================== Video Control ===================== */
.video-control {
  display: flex;
  justify-content: center;
  padding: 5px 0;
  gap: 10px;
}

.video-speed {
  opacity: 0;
}
.video-speed.fade-in-out {
  animation: fadeInOut 1.4s linear forwards;
}

.video-caption {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* ======================== Slide Show Control ===================== */
.slideshow .navigation {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  gap: 10px;
}

.slideshow .slider {
  position: relative;
  width: 100%;
  height: 440px;
  padding-bottom: 20px;
  overflow: hidden;
}
.slideshow .slider:hover {
  cursor: pointer;
}
.slideshow .slider .slider-item {
  width: 400px;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  padding-left: 40px;
}
.slideshow .slider .slider-item video {
  display: block;
  padding-bottom: 40px;
}

h1, h2, h3, h4, h5, h6, p, a, code, pre, ol, ul, li {
  line-height: 1.5;
}

@media screen and (max-width: 769px) {
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 15px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 600;
  }
  h1.title {
    font-weight: 400;
    letter-spacing: 0px;
    font-size: 32px;
  }
  h2 {
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 600;
    font-size: 30px;
  }
  h3 {
    font-weight: 600;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 24px;
  }
  h4 {
    font-weight: 600;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 18px;
  }
}
@media screen and (min-width: 769px) {
  .container {
    padding-right: calc(8.5vw - (100vw - 100%));
    padding-left: 8.5vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 16px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-weight: 400;
    letter-spacing: 0px;
    font-size: 32px;
  }
  h2 {
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 600;
    font-size: 30px;
  }
  h3 {
    font-weight: 600;
    line-height: 1.2;
    padding: 2vh 0;
    font-size: 24px;
  }
  h4 {
    font-weight: 600;
    line-height: 1.2;
    padding: 2vh 0;
    font-size: 18px;
  }
}
@media screen and (min-width: 992px) {
  .container {
    padding-right: calc(12vw - (100vw - 100%));
    padding-left: 12vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-size: 52px;
  }
  h2 {
    padding: 1vh 0;
    font-size: 30px;
  }
  h3 {
    padding: 1vh 0;
    font-size: 24px;
  }
  h4 {
    padding: 1vh 0;
    font-size: 18px;
  }
}
@media screen and (min-width: 1200px) {
  .container {
    padding-right: calc(15vw - (100vw - 100%));
    padding-left: 15vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 18px;
  }
  h1 {
    font-size: 40px;
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-size: 44px;
  }
  h2 {
    padding: 1vh 0;
    font-size: 33px;
  }
  h3 {
    padding: 1vh 0;
    font-size: 26px;
  }
  h4 {
    padding: 1vh 0;
    font-size: 20px;
  }
}
@media screen and (min-width: 1600px) {
  .container {
    padding-right: calc(18vw - (100vw - 100%));
    padding-left: 18vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 20px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1.75vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-size: 52px;
  }
  h2 {
    padding: 1.5vh 0;
    font-size: 38px;
  }
  h3 {
    padding: 1.5vh 0;
    font-size: 30px;
  }
  h4 {
    padding: 1.5vh 0;
    font-size: 22px;
  }
}
@media screen and (min-width: 2000px) {
  .container {
    padding-right: calc(22vw - (100vw - 100%));
    padding-left: 22vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 20px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1.75vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-size: 52px;
  }
  h2 {
    padding: 1.5vh 0;
    font-size: 38px;
  }
  h3 {
    padding: 1.5vh 0;
    font-size: 30px;
  }
  h4 {
    padding: 1.5vh 0;
    font-size: 24px;
  }
}
@media screen and (min-width: 2400px) {
  .container {
    padding-right: calc(24vw - (100vw - 100%));
    padding-left: 24vw;
  }
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 22px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.2;
    padding: 1.75vh 0;
    font-weight: 600;
  }
  h1.title {
    padding: 0 0 1vh;
    font-size: 52px;
  }
  h2 {
    padding: 1.5vh 0;
    font-size: 38px;
  }
  h3 {
    padding: 1.5vh 0;
    font-size: 30px;
  }
  h4 {
    padding: 1.5vh 0;
    font-size: 24px;
  }
}
@media screen and (min-width: 3200px) {
  .container {
    padding-right: calc(32vw - (100vw - 100%));
    padding-left: 28vw;
  }
}
footer p {
  font-family: "Charter";
}

/* ======================== Blog ===================== */
div.container.blog#first-content div.blog-title .blog-intro p.author {
  padding: 4px 0 10px;
  font-family: "Poppins";
  font-weight: 400;
  line-height: 1.7;
  font-size: 85%;
}

div.container.blog#first-content div.blog-title .blog-intro p.author .author-name + .author-name {
  margin-left: 0.5em;
}
div.container.blog#first-content div.blog-title .blog-intro p.institution {
  padding: 4px 0 10px;
  font-family: "Poppins";
  /* font-style: italic; */
  font-weight: 400;
  line-height: 1.2;
  font-size: 85%;
}
div.container.blog#first-content div.blog-title .blog-intro p.abstract {
  font-family: "Poppins";
  font-weight: 400;
  padding: 1vh 0;
  font-size: 85%;
  line-height: 1.6;
}
div.container.blog#first-content div.blog-title .blog-intro .info p {
  text-transform: uppercase;
  color: #353535;
  font-weight: 500;
  font-size: 85%;
}

div.container.blog p.text {
  padding: 1.5vh 0;
  font-family: "Charter", sans-serif;
}
div.container.blog p.text:last-child {
  padding-bottom: 0;
}
div.container.blog ul li p.text, div.container.blog ol li p.text {
  padding: 0vh 0 1vh 0 !important;
}
div.container.blog p.caption {
  padding: 1vh 0;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0px;
  font-size: 70%;
}
div.container.blog p.caption b {
  font-weight: 600 !important;
}

/* ======================== Button ===================== */
input[type=submit], input[type=reset], input[type=button],
button, .button {
  font-size: 0.65em;
  font-weight: 500;
}

/* ======================== Table ===================== */
table th b, table td b {
  font-weight: 500;
}
table thead {
  font-weight: 500;
}

/* ======================== Selection ===================== */
select {
  padding: 2px 2px;
}

/* ======================== Slider Display ===================== */
.before figcaption,
.after figcaption {
  font-size: 70%;
}/*# sourceMappingURL=main_free.css.map */



.center-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 60%;
  height: auto;
  margin: 0 auto; /* Centers the div itself */
}

/* Specific style for the teaser chart container */
.center-box.flexible-chart {
  max-width: 60%;
}

@media screen and (max-width: 768px) {
  .center-box.flexible-chart {
    max-width: 95%;
  }
}

.special-gradient {
  position: relative;
  background: #f6f6f6;
}

.special-gradient::after {
  content: none;
}

h3.title {
  font-size: 1.2em;
  text-align: center;
  font-weight: 600;
}

.summary-content {
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.button.summary-content p.caption {
  font-size: 1.0em !important;
  margin-right: 0.5em;
  margin-left: 0.5em;
}

.summary-content .title a {
    text-decoration: none;
    color: inherit;
}

.custom-caption {
    padding-left: 10% !important;
    padding-right: 10% !important;
}

.video-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em !important;
  height: auto;
  margin: 0 auto; /* Centers the div itself */
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

td.best-result {
    font-weight: 600;
    color: #000;
    background-color: #ffeb3b;
}

td.second-best-result {
    text-decoration: underline;
    background-color: #fff59d;
    font-weight: 600;
}

.color-green {
  background-color: #c8e6c9 !important;
}

.color-pink {
  background-color: #f8bbd0 !important;
}

.color-blue {
  background-color: #bbdefb !important;
}

.color-light-red {
  background-color: #ffcccc !important;
}

tr.border-top {
    border-top: 1px solid #000 !important;
}

.custom-box {
  padding-right: 8vw; 
  padding-left: 8vw;
}

/* Navigation Bar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(222, 222, 222, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
    /* Vertical spacing only — horizontal alignment now comes from the inner
     * `.container.blog.large` wrapper (see index.html), which reuses the
     * same responsive width-class system as the hero/pull-figure sections
     * so the brand/links line up with them instead of drifting left. */
    padding: 0.5rem 0;
}

/* `.container.blog.large` is reused here only so the brand mark's left edge
 * loosely tracks the hero/pull-figure column — but that class's own
 * responsive padding escalates up to 32vw per side at wide breakpoints
 * (tuned for a prose column, not a single-row nav bar), which left far too
 * little room for 8 nav items + the Modeling dropdown to fit on one line.
 * This selector is more specific than every `.large` breakpoint rule (4
 * class-level selectors vs. 3), so it wins at every width and replaces both
 * the vertical padding (would otherwise stack with `.navbar`'s own) and the
 * horizontal padding with a much narrower, single fixed value. */
.navbar .container.blog.large {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: clamp(20px, 3vw, 64px);
    padding-right: clamp(20px, 3vw, 64px);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-family: "Poppins";
    letter-spacing: 0px;
}

.navbar-links {
    display: flex;
    align-items: center;
    /* No logo/brand mark sits to the left of this (see .navbar-content) —
     * it's the only visible content in the bar on desktop — so center it
     * in the available width rather than right-aligning it, which left a
     * large lopsided empty gap on the left. */
    justify-content: center;
    gap: 1.15rem;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    /* At full original size, all 8 items + Modeling fit on one line from
     * ~1100px up (the vast majority of real desktop widths). Below that,
     * fall back to a horizontal scroll (with the fade-edge hint below)
     * rather than wrapping or shrinking the text further. */
    overflow-x: auto;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-links.fade-right {
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right, black 0, black calc(100% - 80px), transparent 100%);
}

.navbar-links.fade-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black 100%);
    mask-image: linear-gradient(to right, transparent 0, black 80px, black 100%);
}

.navbar-links.fade-left.fade-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}

.navbar-links::-webkit-scrollbar {
    display: none;
}

.navbar-links > * {
    flex-shrink: 0;
}

.navbar-links a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-family: "Poppins";
    font-size: 0.9em;
    letter-spacing: 0px;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: #666;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: fixed;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1001;
    /* margin-top: 0.1em; */
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: "Poppins";
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 0px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-trigger {
    cursor: pointer;
}

/* Burger menu styles */
.burger-menu {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu div {
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.dmethod {
  font-family: 'American Typewriter', serif;
  /* font-size: 1.1em; */
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .navbar-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 60%;  /* Reduced from 70% to 60% */
        background: linear-gradient(to bottom, rgba(244, 165, 126, 0.95), rgba(242, 168, 183, 0.95));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 1.5rem 2rem;  /* Reduced horizontal padding */
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        z-index: 1000;
    }

    .navbar-links.active {
        right: 0;
    }

    .navbar-links a {
        font-size: 1.1em;
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dropdown-content a {
        padding: 8px 16px;
    }

    /* Add padding to first content section to account for navbar */
    div.container.blog#first-content {
        padding-top: 80px;
    }

    /* Burger menu animation */
    .burger-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

.fixed-caption-height {
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Adjustable columns that automatically adjust width based on content */
.adjustable-columns-2 {
  display: flex;
  gap: 2vw;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.adjustable-columns-2 > * {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
}

.adjustable-columns-2 > *:first-child {
  flex: 0 0 auto; /* Don't grow or shrink, use natural width */
  width: auto; /* Let the content determine the width */
  max-width: 35%; /* Limit the maximum width to 40% of the container */
}

.adjustable-columns-2 > *:last-child {
  flex: 1; /* Take up remaining space */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .adjustable-columns-2 {
    flex-direction: column;
    gap: 1rem;
  }

  .adjustable-columns-2 > * {
    width: 100% !important;
  }

  .adjustable-columns-2 > *:first-child {
    max-width: 65%; /* Increase max-width for mobile screens */
  }
}

/* ======================== Any-to-any figure with hover popup ===================== */

.any-to-any-wrap {
  position: relative;
  width: 100%;
  /* Center the figure in the content column instead of stretching it to the
   * full container width (which read as left-aligned + overflowing on wide
   * screens). Tune this single value to make the figure wider/narrower. */
  max-width: 1100px;
  margin: 0 auto;
  /* Modality-tag colors live on the wrap (rather than the grid) so both
   * the grid AND the sibling popup inherit them — the popup title needs
   * these vars to color modality-name spans the same as their labels. */
  /* --a2a-color-2d: #e91e63;
  --a2a-color-3d: #f57c00; */
  --a2a-color-2d: rgb(255, 170, 197);
  --a2a-color-3d: rgb(255, 184, 102);
  /* Border tint for 1D modalities (Caption/Metadata/Palette). Tune freely —
   * cascades to row/column labels, grid-cell frames and popup-cell frames. */
  --a2a-color-1d: rgb(118, 178, 255);
  /* Row/column label text colors. Default to the border colors so a single
   * palette change cascades to everything; override either of these to
   * decouple the label tint from the frame color. */
  --a2a-label-color-2d: var(--a2a-color-2d);
  --a2a-label-color-3d: var(--a2a-color-3d);
  --a2a-label-color-1d: var(--a2a-color-1d);
  --a2a-label-color-2d: rgb(255, 125, 166);
  --a2a-label-color-3d: rgb(255, 169, 71);
  --a2a-label-color-1d: rgb(74, 138, 232);
}

.any-to-any-wrap .any-to-any-figure {
  width: 100%;
  background: white;
  border-radius: 12px;
  padding: 16px 16px 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.any-to-any-grid {
  --a2a-cell-size: 38px;
  --a2a-thumb-size: 38px;
  --a2a-row-label-w: 22px;
  --a2a-arrow-w: 18px;
  --a2a-gap: 6px;
  /* Row/column label font size scales with the cell size so that when the
   * modality slider shrinks the grid (fewer columns → bigger cells) the
   * labels grow into the extra space. The clamp floor was reduced from
   * 10px → 7px so long labels (Partfield, DINO ret., …) still fit at the
   * full 20-column grid where cells are tightest. */
  --a2a-label-font-size: clamp(7px, calc(var(--a2a-cell-size) * 0.18), 14px);
  /* Gradient frame thickness around each cell + thumb. Scales with the
   * cell size so the colored border stays visually proportional as the
   * modality slider grows/shrinks the grid. */
  --a2a-frame-width: clamp(2px, calc(var(--a2a-cell-size) * 0.05), 6px);
  display: grid;
  grid-template-columns:
    var(--a2a-row-label-w)
    var(--a2a-thumb-size)
    var(--a2a-arrow-w)
    repeat(14, var(--a2a-cell-size));
  column-gap: var(--a2a-gap);
  row-gap: var(--a2a-gap);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  width: 100%;
  position: relative;
}

.a2a-fade-in {
  animation: a2aFadeIn 0.16s ease-out both;
}

.a2a-fade-out-ghost {
  position: absolute !important;
  z-index: 4;
  pointer-events: none;
  animation: a2aFadeOut 0.18s ease-in both;
}

@keyframes a2aFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes a2aFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.a2a-top-label {
  /* Slightly bigger than the slider captions (which inherit body p font,
   * ~16px on desktop) so "Input" / "Predictions" headers read as section
   * markers rather than blending in with the rest of the chrome. */
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  padding-bottom: 2px;
}

.a2a-top-label--predictions {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 2px;
}

.a2a-col-label {
  font-size: var(--a2a-label-font-size);
  font-weight: 600;
  text-align: center;
  color: #2c2c2c;
  padding: 2px 0;
  white-space: nowrap;
  /* Hide horizontal overflow so a long column label can't bleed into the
   * adjacent column header at the full-grid density. */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
}

.a2a-col-label.cat-3d,
.a2a-col-label.cat-mv { color: var(--a2a-label-color-3d); }
.a2a-col-label.cat-2d { color: var(--a2a-label-color-2d); }
.a2a-col-label.cat-1d { color: var(--a2a-label-color-1d); }

.a2a-row-label.cat-3d { color: var(--a2a-label-color-3d); }
.a2a-row-label.cat-2d { color: var(--a2a-label-color-2d); }
.a2a-row-label.cat-1d { color: var(--a2a-label-color-1d); }

.a2a-row-label {
  font-size: var(--a2a-label-font-size);
  font-weight: 600;
  color: #1a1a1a;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  /* Vertical text whose visible length is the row height — clip overflow
   * (long labels like "ULIP ret." would otherwise bleed into the next row
   * label) and add an ellipsis when clipping. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 1px 0;
  /* Match the row track height so vertical clipping has something to bite
   * against (a row label inside a `align-items: center` track is
   * height: max-content by default, which makes overflow:hidden a no-op). */
  height: var(--a2a-cell-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.a2a-input-thumb {
  position: relative;
  width: var(--a2a-thumb-size);
  height: var(--a2a-thumb-size);
  border-radius: 4px;
  overflow: hidden;
  /* Same absolute-inset trick as `.a2a-cell` — the inner image is positioned
   * 2px inside, exposing a 2px-thick frame of the cell `background`. */
  box-sizing: border-box;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.a2a-input-thumb.cat-2d { background: var(--a2a-color-2d); }
.a2a-input-thumb.cat-3d { background: var(--a2a-color-3d); }
.a2a-input-thumb.cat-1d { background: var(--a2a-color-1d); }

.a2a-input-thumb:hover,
.a2a-input-thumb.is-active,
.a2a-input-thumb:focus-visible {
  transform: scale(1.18);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
  z-index: 3;
  outline: none;
}

.a2a-input-thumb.is-pinned {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
}

.a2a-input-thumb img {
  position: absolute;
  top: var(--a2a-frame-width);
  left: var(--a2a-frame-width);
  width: calc(100% - var(--a2a-frame-width) * 2);
  height: calc(100% - var(--a2a-frame-width) * 2);
  /* Override `div.container.blog img { padding-bottom: 1vh; }` — see
   * the analogous comment on `.a2a-cell img`. */
  padding: 0 !important;
  margin: 0;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: #fff;
}

.a2a-arrow {
  font-size: 12px;
  color: #555;
  text-align: center;
  line-height: 1;
}

.a2a-cell {
  position: relative;
  width: var(--a2a-cell-size);
  height: var(--a2a-cell-size);
  border-radius: 3px;
  overflow: hidden;
  /* The image is absolutely positioned inset by 2px, leaving a 2px-thick
   * frame of the cell's `background` showing on every side (including the
   * bottom — `width:100%/height:100%` on the img was leaving the bottom
   * 2px collapsed in some layouts). */
  box-sizing: border-box;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.a2a-cell img {
  position: absolute;
  top: var(--a2a-frame-width);
  left: var(--a2a-frame-width);
  /* Explicit width/height — browsers don't reliably size absolutely-positioned
   * replaced elements (img) from `right`/`bottom` insets alone, so the right
   * and bottom edges would otherwise overflow at the image's intrinsic size
   * (and get clipped by `overflow:hidden`, which hides the frame on those
   * sides). */
  width: calc(100% - var(--a2a-frame-width) * 2);
  height: calc(100% - var(--a2a-frame-width) * 2);
  /* Override the global `div.container.blog img { padding-bottom: 1vh; }`
   * rule — img defaults to box-sizing:content-box, so that padding would
   * extend the img's box past the cell's bottom edge and get clipped by
   * `overflow:hidden`, hiding the bottom 2px of the gradient frame.
   * `!important` is needed because the global selector has higher
   * specificity than `.a2a-cell img`. */
  padding: 0 !important;
  margin: 0;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  /* 3D PNGs have transparent backgrounds; force white so the gradient
   * frame doesn't bleed through alpha. */
  background: #fff;
}

/* Video-modality grid cells / input thumbs — same inset positioning as
 * `.a2a-cell img` above, applied to `<video>` for the video any-to-any grid. */
.a2a-cell video,
.a2a-input-thumb video {
  position: absolute;
  top: var(--a2a-frame-width);
  left: var(--a2a-frame-width);
  width: calc(100% - var(--a2a-frame-width) * 2);
  height: calc(100% - var(--a2a-frame-width) * 2);
  padding: 0 !important;
  margin: 0;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  background: #fff;
}

/* Cell frame colors. Uniform when both input and output are the same
 * category; diagonal gradient when they differ. The 45deg gradient runs
 * bottom-left → top-right (so 0% sits in the bottom-left corner, 100% in
 * the top-right). The bottom + left half carries the input modality's
 * color, the top + right half carries the output's, with a soft blend
 * between 42% and 58% along the diagonal. */
.a2a-cell.cat-in-2d.cat-out-2d { background: var(--a2a-color-2d); }
.a2a-cell.cat-in-3d.cat-out-3d { background: var(--a2a-color-3d); }
.a2a-cell.cat-in-1d.cat-out-1d { background: var(--a2a-color-1d); }
.a2a-cell.cat-in-2d.cat-out-3d {
  background: linear-gradient(45deg,
    var(--a2a-color-2d) 0%,
    var(--a2a-color-2d) 30%,
    var(--a2a-color-3d) 70%,
    var(--a2a-color-3d) 100%);
}
.a2a-cell.cat-in-3d.cat-out-2d {
  background: linear-gradient(45deg,
    var(--a2a-color-3d) 0%,
    var(--a2a-color-3d) 30%,
    var(--a2a-color-2d) 70%,
    var(--a2a-color-2d) 100%);
}
.a2a-cell.cat-in-1d.cat-out-2d {
  background: linear-gradient(45deg,
    var(--a2a-color-1d) 0%,
    var(--a2a-color-1d) 30%,
    var(--a2a-color-2d) 70%,
    var(--a2a-color-2d) 100%);
}
.a2a-cell.cat-in-2d.cat-out-1d {
  background: linear-gradient(45deg,
    var(--a2a-color-2d) 0%,
    var(--a2a-color-2d) 30%,
    var(--a2a-color-1d) 70%,
    var(--a2a-color-1d) 100%);
}
.a2a-cell.cat-in-1d.cat-out-3d {
  background: linear-gradient(45deg,
    var(--a2a-color-1d) 0%,
    var(--a2a-color-1d) 30%,
    var(--a2a-color-3d) 70%,
    var(--a2a-color-3d) 100%);
}
.a2a-cell.cat-in-3d.cat-out-1d {
  background: linear-gradient(45deg,
    var(--a2a-color-3d) 0%,
    var(--a2a-color-3d) 30%,
    var(--a2a-color-1d) 70%,
    var(--a2a-color-1d) 100%);
}

.a2a-cell:hover,
.a2a-cell.is-active,
.a2a-cell:focus-visible {
  transform: scale(1.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  z-index: 3;
  outline: none;
}

.a2a-cell.is-pinned {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
}

.a2a-cell--blank {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  cursor: default;
  pointer-events: none;
}

/* Inner DOM-rendered text used by the 1D text modalities (Caption,
 * Metadata) — replaces the rendered PNG in the grid cell so the cleaned
 * popup-quality text shows in the cell preview too. Same inset
 * positioning as `.a2a-cell img`. */
.a2a-cell--text .a2a-cell-text,
.a2a-input-thumb--text .a2a-cell-text {
  position: absolute;
  top: var(--a2a-frame-width);
  left: var(--a2a-frame-width);
  width: calc(100% - var(--a2a-frame-width) * 2);
  height: calc(100% - var(--a2a-frame-width) * 2);
  padding: 2px 3px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 1px;
  /* Tiny font scaled to the cell size: text reads as a "page of words"
   * shape rather than legible prose, mirroring how the rendered PNG looked
   * before. The clamp keeps it visible without overflowing. */
  font-size: clamp(3.5px, calc(var(--a2a-cell-size) * 0.10), 7px);
  line-height: 1.1;
  color: #1a1a1a;
  overflow: hidden;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Hide the broken-image glyph and show a dashed empty placeholder when the
 * active sample has no render for a given (input, output) combo. Applies
 * to both grid prediction cells and input thumbs. */
.a2a-cell.is-missing,
.a2a-input-thumb.is-missing {
  background: #f7f7f7 !important;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  cursor: default;
  pointer-events: none;
}
.a2a-cell.is-missing img,
.a2a-input-thumb.is-missing img,
.a2a-cell.is-missing video,
.a2a-input-thumb.is-missing video {
  visibility: hidden;
}

.any-to-any-popup {
  position: absolute;
  /* JS sets `left` and `top` adjacent to the hovered cell. */
  top: 0;
  left: 0;
  width: 260px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 0.1s ease, transform 0.1s ease;
  z-index: 5;
}

.any-to-any-popup.is-visible {
  opacity: 1;
  transform: scale(1);
}

.any-to-any-popup.is-pinned {
  pointer-events: auto;
  border-color: rgba(31, 111, 235, 0.4);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.18);
}

.a2a-popup-header { margin-bottom: 10px; }

.a2a-popup-title {
  font-weight: 600;
  font-size: 0.95em;
  color: #111;
}

/* Modality-name spans inside the popup title — colored to match the
 * row/column labels of the same modality (uses the same `cat-2d` /
 * `cat-3d` classes, with the label-color CSS variables defined on
 * `.any-to-any-grid`). */
.a2a-popup-title .a2a-mod.cat-2d { color: var(--a2a-label-color-2d); }
.a2a-popup-title .a2a-mod.cat-3d { color: var(--a2a-label-color-3d); }
.a2a-popup-title .a2a-mod.cat-1d { color: var(--a2a-label-color-1d); }

.a2a-popup-hint {
  margin: 10px 0 0 0;
  font-size: 0.6em;
  color: #666;
  font-style: italic;
  text-align: center;
}

.a2a-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Single-image popup mode: used when the popup represents a 3D modality
 * (the grid cell's output is a 3D representation, or the input column popup
 * for a 3D-input row). Shows one large hero image instead of a 2x2 grid. */
.a2a-popup-grid--single {
  grid-template-columns: 1fr;
  gap: 0;
}
.a2a-popup-grid--single .a2a-popup-cell--hidden {
  display: none;
}

.a2a-popup-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  /* `background` is the colored gradient frame; the actual image / 3D viewer
   * is inset by `--a2a-popup-frame-width` so the frame shows on all sides. */
  background: #fff;
  cursor: default;
}

/* Popup cells pick up the same input/output category as the cell or input
 * thumb that opened the popup — classes are set on `.a2a-popup-grid` by
 * `a2aUpdatePopup`. Uniform color when the two categories match, diagonal
 * gradient when they differ (mirrors `.a2a-cell` exactly). */
.a2a-popup-grid {
  --a2a-popup-frame-width: 4px;
}
.a2a-popup-grid.cat-in-2d.cat-out-2d .a2a-popup-cell { background: var(--a2a-color-2d); }
.a2a-popup-grid.cat-in-3d.cat-out-3d .a2a-popup-cell { background: var(--a2a-color-3d); }
.a2a-popup-grid.cat-in-1d.cat-out-1d .a2a-popup-cell { background: var(--a2a-color-1d); }
.a2a-popup-grid.cat-in-2d.cat-out-3d .a2a-popup-cell {
  background: linear-gradient(45deg,
    var(--a2a-color-2d) 0%,
    var(--a2a-color-2d) 42%,
    var(--a2a-color-3d) 58%,
    var(--a2a-color-3d) 100%);
}
.a2a-popup-grid.cat-in-3d.cat-out-2d .a2a-popup-cell {
  background: linear-gradient(45deg,
    var(--a2a-color-3d) 0%,
    var(--a2a-color-3d) 42%,
    var(--a2a-color-2d) 58%,
    var(--a2a-color-2d) 100%);
}
.a2a-popup-grid.cat-in-1d.cat-out-2d .a2a-popup-cell {
  background: linear-gradient(45deg,
    var(--a2a-color-1d) 0%,
    var(--a2a-color-1d) 42%,
    var(--a2a-color-2d) 58%,
    var(--a2a-color-2d) 100%);
}
.a2a-popup-grid.cat-in-2d.cat-out-1d .a2a-popup-cell {
  background: linear-gradient(45deg,
    var(--a2a-color-2d) 0%,
    var(--a2a-color-2d) 42%,
    var(--a2a-color-1d) 58%,
    var(--a2a-color-1d) 100%);
}
.a2a-popup-grid.cat-in-1d.cat-out-3d .a2a-popup-cell {
  background: linear-gradient(45deg,
    var(--a2a-color-1d) 0%,
    var(--a2a-color-1d) 42%,
    var(--a2a-color-3d) 58%,
    var(--a2a-color-3d) 100%);
}
.a2a-popup-grid.cat-in-3d.cat-out-1d .a2a-popup-cell {
  background: linear-gradient(45deg,
    var(--a2a-color-3d) 0%,
    var(--a2a-color-3d) 42%,
    var(--a2a-color-1d) 58%,
    var(--a2a-color-1d) 100%);
}

.any-to-any-popup.is-pinned .a2a-popup-cell {
  cursor: pointer;
}

.any-to-any-popup.is-pinned .a2a-popup-cell:hover {
  outline: 2px solid rgba(31, 111, 235, 0.6);
  outline-offset: -2px;
}

.a2a-popup-cell img {
  position: absolute;
  top: var(--a2a-popup-frame-width);
  left: var(--a2a-popup-frame-width);
  width: calc(100% - var(--a2a-popup-frame-width) * 2);
  height: calc(100% - var(--a2a-popup-frame-width) * 2);
  /* Override `div.container.blog img { padding-bottom: 1vh }` — same fix
   * as on `.a2a-cell img`. */
  padding: 0 !important;
  margin: 0;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: #fff;
}

.a2a-popup-cell video {
  position: absolute;
  top: var(--a2a-popup-frame-width);
  left: var(--a2a-popup-frame-width);
  width: calc(100% - var(--a2a-popup-frame-width) * 2);
  height: calc(100% - var(--a2a-popup-frame-width) * 2);
  padding: 0 !important;
  margin: 0;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  background: #000;
}

.a2a-popup-cell--3d {
  background: #fff;
}

.a2a-popup-cell--3d .a2a-popup-3d-host {
  position: absolute;
  top: var(--a2a-popup-frame-width);
  left: var(--a2a-popup-frame-width);
  width: calc(100% - var(--a2a-popup-frame-width) * 2);
  height: calc(100% - var(--a2a-popup-frame-width) * 2);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.a2a-popup-cell--3d .a2a-popup-3d-host canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* 1D modality popup cell variants. Both share the popup-cell frame but
 * fill it with custom DOM (text block / palette wheel) instead of an img. */
.a2a-popup-cell--text {
  background: var(--a2a-color-1d, #fff);
}
.a2a-popup-cell--text .a2a-popup-text {
  position: absolute;
  top: var(--a2a-popup-frame-width);
  left: var(--a2a-popup-frame-width);
  width: calc(100% - var(--a2a-popup-frame-width) * 2);
  height: calc(100% - var(--a2a-popup-frame-width) * 2);
  padding: 14px 16px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 2px;
  /* Starting size — JS auto-fits to the largest size that doesn't overflow
   * the box (see a2aAutoFitTextBox in assets/scripts/main.js). */
  font-size: 18px;
  line-height: 1.4;
  color: #1a1a1a;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}

/* When marked() renders Metadata, replace `pre-wrap` with normal flow so
 * paragraph margins, lists, and headings render correctly. */
.a2a-popup-cell--text .a2a-popup-text--markdown {
  white-space: normal;
}
.a2a-popup-cell--text .a2a-popup-text--markdown > *:first-child { margin-top: 0; }
.a2a-popup-cell--text .a2a-popup-text--markdown > *:last-child { margin-bottom: 0; }
.a2a-popup-cell--text .a2a-popup-text--markdown p { margin: 0.4em 0; }
.a2a-popup-cell--text .a2a-popup-text--markdown ul,
.a2a-popup-cell--text .a2a-popup-text--markdown ol { margin: 0.4em 0; padding-left: 1.4em; }
.a2a-popup-cell--text .a2a-popup-text--markdown h1,
.a2a-popup-cell--text .a2a-popup-text--markdown h2,
.a2a-popup-cell--text .a2a-popup-text--markdown h3 {
  margin: 0.5em 0 0.3em;
  font-weight: 600;
  line-height: 1.25;
}
.a2a-popup-cell--text .a2a-popup-text--markdown h1 { font-size: 1.18em; }
.a2a-popup-cell--text .a2a-popup-text--markdown h2 { font-size: 1.10em; }
.a2a-popup-cell--text .a2a-popup-text--markdown h3 { font-size: 1.04em; }
.a2a-popup-cell--text .a2a-popup-text--markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0 4px;
  border-radius: 3px;
}
.a2a-popup-cell--text .a2a-popup-text--markdown pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 10px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9em;
}
.a2a-popup-cell--text .a2a-popup-text--markdown blockquote {
  margin: 0.4em 0;
  padding-left: 0.8em;
  border-left: 3px solid var(--a2a-color-1d, #ccc);
  color: #555;
}
.a2a-popup-cell--text .a2a-popup-text--markdown a {
  color: var(--a2a-label-color-1d, #2563eb);
  text-decoration: underline;
}

.a2a-popup-cell--palette {
  background: var(--a2a-color-1d, #fff);
}
.a2a-popup-cell--palette .a2a-popup-palette-wrap {
  position: absolute;
  top: var(--a2a-popup-frame-width);
  left: var(--a2a-popup-frame-width);
  width: calc(100% - var(--a2a-popup-frame-width) * 2);
  height: calc(100% - var(--a2a-popup-frame-width) * 2);
  background: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a2a-popup-cell--palette .a2a-popup-palette-wrap img {
  position: static;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0;
  object-fit: contain;
  display: block;
  cursor: crosshair;
}
.a2a-popup-cell--palette .a2a-popup-palette-chip {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 80px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #222;
  pointer-events: none;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.a2a-hint {
  margin: 10px 0 0 0;
  font-size: 0.78em;
  color: #666;
  font-style: italic;
  text-align: center;
}

.a2a-slider-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.a2a-slider-group {
  flex: 1 1 0;
  min-width: 180px;
  max-width: 360px;
}

.a2a-export-group {
  flex: 0 0 auto;
  min-width: 0;
  align-self: center;
}

.a2a-export-button {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.a2a-slider-group input[type="range"] {
  width: 100%;
}

.a2a-slider-group .caption {
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 1100px) {
  .any-to-any-popup {
    width: 220px;
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .any-to-any-grid {
    --a2a-row-label-w: 14px;
    --a2a-arrow-w: 10px;
    --a2a-gap: 3px;
    font-size: 9px;
  }
  .a2a-col-label, .a2a-row-label { font-size: 8px; }
  .any-to-any-popup {
    width: min(260px, 80vw);
    min-width: 180px;
  }
}

.teaser-figure {
  position: relative;
}

.teaser-figure > svg {
  display: block;
  width: 100%;
  height: auto;
}

.teaser-figure > [data-slot] {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #fff;
}

.teaser-figure > svg.teaser-borders {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.teaser-figure > [data-slot] > img,
.teaser-figure > [data-slot] > video,
.teaser-figure > [data-slot] > canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-figure-toggle {
  position: absolute;
  top: 8px;
  right: -44px;
  z-index: 10;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.teaser-figure-toggle:hover {
  background: rgba(255, 255, 255, 1);
  color: #000;
}

/* ===================================================================== */
/* Transfers carousel v2 — modelled on the retrieval carousel: slides    */
/* stack in one grid cell, each holds its real task content, active is    */
/* centred and neighbours translate out as scaled previews.               */
/* ===================================================================== */
.t2-carousel {
  margin-top: 4px;
}

.t2-stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}

.t2-slide {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  transform: translate(0, 0) scale(0.74);
  transform-origin: center center;
  opacity: 0;
  filter: saturate(0.9);
  pointer-events: none;
  /* Animate only compositor-friendly properties (transform + opacity) so the
     transition stays smooth even while a task switch parses a GLB on the main
     thread. Animating filter:blur() here caused main-thread jank. */
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.5s ease;
  will-change: transform, opacity;
  z-index: 1;
}

.t2-slide[data-position="active"] {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 3;
}

.t2-slide[data-position="left"] {
  transform: translate(-34%, 0) scale(0.74);
  opacity: 0.4;
  z-index: 2;
}

.t2-slide[data-position="right"] {
  transform: translate(34%, 0) scale(0.74);
  opacity: 0.4;
  z-index: 2;
}

/* Side panels: clickable to bring forward; inner content non-interactive so
   the click lands on the slide itself (see wireCarouselSlideClicks). */
.t2-slide:not([data-position="active"]) {
  cursor: pointer;
  pointer-events: auto;
}

.t2-slide:not([data-position="active"]) * {
  pointer-events: none;
}

.t2-slide:not([data-position="active"]):hover {
  opacity: 0.6;
}

.t2-panel {
  width: min(100%, 1040px);
  margin: 0 auto;
  aspect-ratio: 1 / 0.66;
  box-sizing: border-box;
  padding: 22px 26px;
  border-radius: 16px;
  background: #eeeeee;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.t2-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.t2-header h3 {
  margin: 0;
}

.t2-mode-tabs {
  display: inline-flex;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.10);
}

.t2-mode-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  padding: 6px 14px 9px;
  background: transparent;
  color: #999;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.t2-mode-tab:hover {
  color: #444;
}

.t2-mode-tab.is-active {
  color: #304d6d;
  border-bottom-color: #304d6d;
}

.t2-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.t2-qual,
.t2-quant {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.t2-qual[hidden],
.t2-quant[hidden] {
  display: none;
}

/* Object viewers fill the available height (Three.js reads clientHeight). */
.t2-obj-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* NOCS comparison sliders (web component) don't respect height:100%, so they
   are sized by aspect-ratio and centred within the body. */
.t2-nocs-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.t2-obj-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t2-obj-card h4 {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.t2-viewer {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  background: #e4e8eb;
  overflow: hidden;
}

/* Constrain the Three.js canvas to the container; without this it lays out at
   its buffer pixel size and overflows, collapsing the 2-column object grid. */
.t2-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.t2-cap {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.t2-nocs-card {
  min-height: 0;
}

.t2-nocs-slider {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  border-radius: 12px;
  overflow: hidden;
}

.t2-nocs-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t2-grasp-viewer {
  position: relative;
}

.t2-qual-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.t2-qual-index {
  min-width: 42px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #8a8f96;
}

.t2-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: #32424b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.t2-nav-btn:hover {
  background: rgba(0, 0, 0, 0.14);
  color: #000;
}

.t2-quant .table-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
}

.t2-quant table {
  width: 100%;
  margin: 0 auto;
}

.t2-quant tbody tr.is-ours td {
  background: rgba(48, 77, 109, 0.07);
}

.t2-quant tbody tr.is-ours td:first-child {
  font-weight: 700;
  color: #304d6d;
}

.t2-carousel-controls {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .t2-slide[data-position="left"],
  .t2-slide[data-position="right"] {
    opacity: 0;
  }
  .t2-panel {
    width: 100%;
    aspect-ratio: auto;
  }
  .t2-body {
    min-height: 420px;
  }
  .t2-carousel-controls {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ======================== Specialists (RGB -> N outputs) ===================== */
/* A single wide RGB input banner on top, with all other modalities predicted
 * from it laid out below as a 4-column output grid (10 cells -> 4/4/2 rows
 * fall out naturally from grid auto-flow). Reuses `.a2a-cell--text` /
 * `.a2a-cell-text` from the any-to-any grid for Caption/Transcription cells —
 * `--a2a-frame-width` is redefined locally since this section sits outside
 * `.any-to-any-grid` where that custom property is normally scoped. */
.specialists-figure {
  --a2a-frame-width: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.specialists-input {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(135px, 100%);
}

.specialists-input-video {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgb(255, 125, 166);
  box-sizing: border-box;
}
.specialists-input-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.specialists-input-video.is-missing {
  background: #f7f7f7 !important;
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.12);
}
.specialists-input-video.is-missing video { visibility: hidden; }

.specialists-label {
  font-weight: 600;
  font-size: 0.95em;
  color: #353535;
  text-align: center;
  margin: 0;
  order: -1;
}

.specialists-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b8;
  font-size: 1.3em;
}

.specialists-outputs {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.specialists-output-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.specialists-output-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgb(255, 125, 166);
  box-sizing: border-box;
}
.specialists-output-cell video,
.specialists-output-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.specialists-output-cell.is-missing {
  background: #f7f7f7 !important;
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.12);
}
.specialists-output-cell.is-missing video,
.specialists-output-cell.is-missing img { visibility: hidden; }

.specialists-output-label {
  font-size: 0.8em;
  font-weight: 600;
  color: #353535;
  text-align: center;
  margin: 0;
}

/* At a handful of intermediate breakpoints "Surface Normals" wraps to two
 * lines while its row-mates stay on one, pushing just that cell down out of
 * line with the rest of the row. Reserve a fixed two-line-tall, bottom-
 * aligned label box (same fix used elsewhere on the page) so every cell in
 * a row starts at the same y position regardless of label line count. */
#specialists-outputs .specialists-output-label {
  min-height: 2.3em;
  line-height: 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (max-width: 900px) {
  .specialists-outputs {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

/* ======================== Chaining visualization (caption -> RGB) ===================== */
/* Each row: Input Caption -> [collapsible intermediate steps] -> Chained RGB
 * -> (divider) -> Direct RGB. Reuses `.specialists-output-item/-cell/-label`
 * for individual boxes (same label-above-box, is-missing, a2a-cell--text
 * treatment) so only the row/flex scaffolding here is new. */
.chain-viz-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
}

.chain-viz-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.chain-viz-wide-wrap {
  margin-left: -3vw;
  margin-right: -3vw;
}
@media screen and (min-width: 769px) {
  .chain-viz-wide-wrap { margin-left: -5vw; margin-right: -5vw; }
}
@media screen and (min-width: 992px) {
  .chain-viz-wide-wrap { margin-left: -7vw; margin-right: -7vw; }
}
@media screen and (min-width: 1200px) {
  .chain-viz-wide-wrap { margin-left: -18vw; margin-right: -18vw; }
}
@media screen and (min-width: 1600px) {
  .chain-viz-wide-wrap { margin-left: -19vw; margin-right: -19vw; }
}
@media screen and (min-width: 2000px) {
  .chain-viz-wide-wrap { margin-left: -20vw; margin-right: -20vw; }
}

.chain-viz-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.chain-viz-row .specialists-output-item {
  flex: 0 0 100px;
  width: 100px;
}

/* Reserve a fixed two-line-tall, bottom-aligned box for every item's label
 * (Input Caption / Transcription / SigLIP2 / BBox / Depth / RGB (Chained) /
 * RGB (Direct)) so the image/text cells directly beneath them all start at
 * the same y position, regardless of whether a given label wraps to one
 * line or two (e.g. "RGB (Chained)" wraps, "SigLIP2" doesn't). */
.chain-viz-row .specialists-output-label {
  font-size: 0.72em;
  min-height: 2.3em;
  line-height: 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.chain-viz-caption-item {
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-right: 20px;
}
.chain-viz-caption-item .specialists-output-label {
  justify-content: flex-start;
  text-align: left;
}


/* Transcription card stack: one card per second (4 total), fanned with a
 * small offset so each card's bottom-right corner peeks out from behind the
 * one in front. Hovering a card's exposed corner brings it fully to the
 * front (and enlarges it) to read that second's full sub-caption. */
.chain-viz-transcript-item {
  flex: 0 0 154px;
  width: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chain-viz-transcript-stack {
  position: relative;
  width: 100px;
  height: 100px;
  margin-right: 54px;
  margin-bottom: 54px;
}

.chain-viz-transcript-card {
  position: absolute;
  width: 100px;
  height: 100px;
  box-sizing: border-box;
  border: 2px solid rgb(255, 125, 166);
  border-radius: 8px;
  background: #fff;
  padding: 3px 5px;
  /* Matches the Any-to-Any figure's caption/transcription cells (~5.4px
   * there) for a consistent look across every grid on the page — was
   * `0.5em`, relative to the site's responsive base font (up to ~18px at
   * wide breakpoints), so it grew far bigger than intended at those widths. */
  font-size: 5.5px;
  line-height: 1.1;
  color: #1a1a1a;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chain-viz-transcript-card:nth-child(1) { top: 0; left: 0; z-index: 4; background: #fff; }
.chain-viz-transcript-card:nth-child(2) { top: 18px; left: 18px; z-index: 3; background: #f5f5f5; }
.chain-viz-transcript-card:nth-child(3) { top: 36px; left: 36px; z-index: 2; background: #ebebeb; }
.chain-viz-transcript-card:nth-child(4) { top: 54px; left: 54px; z-index: 1; background: #e0e0e0; }

.chain-viz-transcript-card:hover {
  z-index: 10;
  transform: scale(2.4);
  transform-origin: top left;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}

.chain-viz-transcript-sec {
  display: block;
  font-weight: 700;
  color: #b8b8b8;
  font-size: 0.85em;
  margin-bottom: 2px;
}

.chain-viz-transcript-stack.is-missing .chain-viz-transcript-card {
  background: #f7f7f7;
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.12);
}

.chain-viz-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #b8b8b8;
  font-size: 1.1em;
}

.chain-viz-divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.12);
  margin: 30px 4px 0;
}

.chain-viz-intermediates,
.chain-viz-direct-wrap,
.future-pred-rgb-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 10px;
  max-width: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-width 0.4s ease;
}

/* Future Prediction visualization: input (5-frame RGB context, held static
 * through frame 17 to match the prediction clips) + all 10 predicted
 * modalities (9 modalities + RGB), split into two rows (5 + 4, RGB behind
 * its own show/hide toggle) so the full set is easier to scan than one long
 * scrolling row. */
.future-pred-row {
  /* Overrides .chain-viz-row's flex-start: the input video + arrow should
   * sit centered against the combined two-row output block, not pinned to
   * the top row. */
  align-items: center;
}

/* The label is positioned absolutely above the cell (rather than stacked in
 * normal flow) so the item's own box height equals just the cell's 85px —
 * otherwise `.future-pred-row`'s `align-items: center` centers the whole
 * label+cell box against the two-row output block, which visibly pushes the
 * video cell itself below the true center (by roughly half the label's
 * height) instead of centering the cell. */
.future-pred-input-item {
  flex: 0 0 85px;
  width: 85px;
  position: relative;
}

/* "(5 Frames)" doesn't fit the 85px-wide label at the shared 0.72em size —
 * shrink just this label rather than the whole .specialists-output-label
 * (shared by every other item's label across the site). */
.future-pred-input-item .specialists-output-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin: 0 0 6px;
  font-size: 0.62em;
}

.future-pred-outputs-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.future-pred-outputs {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  /* `gap` is a floor; `space-between` spreads any remaining width evenly
   * between cells. Combined with the column above stretching every row to
   * match the widest one (the transcription-containing bottom row), this
   * keeps both rows the same total width — extra breathing room between
   * cells rather than the rows visually drifting out of alignment. */
  justify-content: space-between;
  gap: 5px;
}

/* Nine simultaneous output modalities need smaller cells than the
 * (fewer-item) Chained Generations row to still fit on one line. */
.future-pred-outputs .specialists-output-item,
.future-pred-rgb-wrap .specialists-output-item {
  flex: 0 0 85px;
  width: 85px;
}

.future-pred-outputs .chain-viz-transcript-item {
  flex: 0 0 130px;
  width: 130px;
}
.future-pred-outputs .chain-viz-transcript-stack {
  width: 85px;
  height: 85px;
  margin-right: 45px;
  margin-bottom: 45px;
}
.future-pred-outputs .chain-viz-transcript-card {
  width: 85px;
  height: 85px;
}
.future-pred-outputs .chain-viz-transcript-card:nth-child(1) { top: 0; left: 0; }
.future-pred-outputs .chain-viz-transcript-card:nth-child(2) { top: 15px; left: 15px; }
.future-pred-outputs .chain-viz-transcript-card:nth-child(3) { top: 30px; left: 30px; }
.future-pred-outputs .chain-viz-transcript-card:nth-child(4) { top: 45px; left: 45px; }

/* Modeling > Data: single static K600-MM example across all 12 modalities.
 * Flat wrapping grid (no input/arrow framing) that wraps to exactly 6 cells
 * per row; sizing mirrors the Future Prediction grid's scoped overrides so
 * the transcription card stack doesn't unbalance the two rows. */
.modelling-data-example-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 22px;
  max-width: 670px;
  margin: 2vh auto 0;
}
.modelling-data-example-grid .specialists-output-item {
  flex: 0 0 85px;
  width: 85px;
}
/* Reserve the same fixed two-line label height used elsewhere (.chain-viz-row
 * .specialists-output-label) so a two-line label like "Surface Normals"
 * doesn't push its own cell down relative to the single-line labels next to
 * it — every cell in the row still starts at the same y position. */
.modelling-data-example-grid .specialists-output-label {
  min-height: 2.3em;
  line-height: 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
.modelling-data-example-grid .chain-viz-transcript-item {
  flex: 0 0 130px;
  width: 130px;
}
.modelling-data-example-grid .chain-viz-transcript-stack {
  width: 85px;
  height: 85px;
  margin-right: 45px;
  margin-bottom: 45px;
}
.modelling-data-example-grid .chain-viz-transcript-card {
  width: 85px;
  height: 85px;
}
.modelling-data-example-grid .chain-viz-transcript-card:nth-child(1) { top: 0; left: 0; }
.modelling-data-example-grid .chain-viz-transcript-card:nth-child(2) { top: 15px; left: 15px; }
.modelling-data-example-grid .chain-viz-transcript-card:nth-child(3) { top: 30px; left: 30px; }
.modelling-data-example-grid .chain-viz-transcript-card:nth-child(4) { top: 45px; left: 45px; }

/* Class Category text renders at an inherited ~18px (the any-to-any grid's
 * own clamp() doesn't apply here — no --a2a-cell-size ancestor) — much too
 * large for an 85px cell; shrink it down. */
.modelling-data-example-grid .modelling-data-cell--class .a2a-cell-text {
  font-size: 10px;
}

/* Caption font size matches the Any-to-Any figure's caption/transcription
 * cells (~5.4px there) for a consistent look across every grid on the page.
 * Hover/click behavior (a separate popup with the full-size text, same as
 * the Any-to-Any figure) is handled by the generic `.a2a-cell--text` rules
 * below plus the shared cell-popup component (see `.a2a-cell-popup`). */
.modelling-data-example-grid .modelling-data-cell--caption .a2a-cell-text {
  font-size: 5.5px;
}

/* Same font-size fix for the other boxed-caption grids on the page (Chained
 * Generations' intermediate steps + Future Prediction share `.chain-viz-row`;
 * Specialists is its own grid) — everywhere EXCEPT the Any-to-Any figure,
 * which already has its own hover-preview/click-to-pin popup system and
 * isn't touched here. Caption is the only modality that renders as
 * `.a2a-cell--text` in these two grids (Transcription uses the separate
 * card-stack component instead), so no extra class hook is needed to scope
 * this to "just Caption". */
.chain-viz-row .a2a-cell--text .a2a-cell-text,
#specialists-outputs .a2a-cell--text .a2a-cell-text {
  font-size: 5.5px;
}

/* Hover/click treatment for every non-Any-to-Any boxed text cell (Caption /
 * Class Category / Specialists' Transcription): same "mild highlight on the
 * small cell + full text in a separate floating popup" interaction as the
 * Any-to-Any figure's own grid cells (`.a2a-cell:hover` / `.is-active`),
 * rather than scaling the tiny cell up in place. The popup itself is
 * `.a2a-cell-popup` (JS: cellPopup* functions in main.js). */
.chain-viz-row .a2a-cell--text,
#specialists-outputs .a2a-cell--text,
.modelling-data-example-grid .a2a-cell--text {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chain-viz-row .a2a-cell--text:hover,
.chain-viz-row .a2a-cell--text.is-active,
#specialists-outputs .a2a-cell--text:hover,
#specialists-outputs .a2a-cell--text.is-active,
.modelling-data-example-grid .a2a-cell--text:hover,
.modelling-data-example-grid .a2a-cell--text.is-active {
  transform: scale(1.15);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  z-index: 3;
}
.chain-viz-row .a2a-cell--text.is-pinned,
#specialists-outputs .a2a-cell--text.is-pinned,
.modelling-data-example-grid .a2a-cell--text.is-pinned {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
}

/* Shared floating popup used by all of the above cells — a lighter,
 * viewport-fixed sibling of `.any-to-any-popup` (same visual language: card
 * background, title, readable-size text) but reusable across sections
 * instead of being positioned relative to one figure's wrap. */
.a2a-cell-popup {
  position: fixed;
  width: 260px;
  max-width: calc(100vw - 16px);
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 0.1s ease, transform 0.1s ease;
  z-index: 50;
}
.a2a-cell-popup.is-visible {
  opacity: 1;
  transform: scale(1);
}
.a2a-cell-popup.is-pinned {
  pointer-events: auto;
  border-color: rgba(31, 111, 235, 0.4);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.18);
}
.a2a-cell-popup .a2a-popup-header {
  margin-bottom: 10px;
}
.a2a-cell-popup .a2a-popup-title {
  font-weight: 600;
  font-size: 0.95em;
  color: #111;
}
.a2a-cell-popup-body {
  max-height: 320px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.4;
  color: #1a1a1a;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}

/* Multimodal Generation: probing-caption case. Plain (non-boxed) caption
 * text between the input frame and the generated video. */
.mm-gen-caption-item {
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-left: 20px;
}
.mm-gen-caption-item .specialists-output-label {
  justify-content: flex-start;
  text-align: left;
}

.mm-gen-caption-text {
  margin: 0;
  font-size: 0.62em;
  line-height: 1.35;
  color: #1a1a1a;
  text-align: justify;
  text-align-last: left;
}

.mm-gen-caption-item.is-missing .mm-gen-caption-text,
.chain-viz-caption-item.is-missing .mm-gen-caption-text {
  color: rgba(0, 0, 0, 0.3);
}

/* Retrieval: the query item (whichever modality it is) is centered inside a
 * fixed-size slot sized for the largest case — the plain-text Caption box —
 * so that smaller items (the 100px video/det cell) just sit centered within
 * the same reserved footprint instead of the whole panel's width/height
 * changing whenever the query modality is switched. */
.retrieval-query-slot {
  flex: 0 0 340px;
  width: 340px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.retrieval-query-slot .mm-gen-caption-item {
  /* The multimodal-generation-probing case (this class's other usage)
   * follows an input frame and needs left margin to clear it; here the
   * caption is the query slot's only child, so no offset is needed. */
  margin-left: 0;
  width: 100%;
}
/* Reserve enough height for the longest query caption across all sets/
 * modalities so dragging the slider (which swaps in captions of different
 * lengths) doesn't change the row's height and shift the slider itself
 * up/down underneath the pointer. */
.retrieval-query-slot .mm-gen-caption-text {
  min-height: 8.5em;
}

/* Retrieval: the whole example (query + arrow + top-5 results) sits inside
 * one shaded panel, with a single heading over the results instead of
 * labelling each cell "Rank N". */
.retrieval-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  /* Explicitly cleared, not just omitted: an earlier, unrelated (dead-code)
   * `.retrieval-panel` rule higher up this file still sets a grey
   * background/border/radius, and CSS cascades per-property — simply not
   * re-declaring them here lets that earlier rule's values win again. */
  background: none;
  border: none;
  border-radius: 0;
}

.retrieval-results-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.retrieval-results-heading {
  margin: 0;
  font-size: 0.78em;
  font-weight: 600;
  color: #353535;
  text-align: center;
}

.retrieval-results-grid-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.retrieval-result-cell {
  position: relative;
  width: 100px;
  flex: 0 0 100px;
}

/* Pull-figure teaser video: plays once on load, then reveals a small
 * overlay button to replay it (the video itself does not loop). */
.pull-figure-static {
  position: relative;
}

.pull-figure-restart {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.pull-figure-restart[hidden] {
  display: none;
}
.pull-figure-restart:hover,
.pull-figure-restart:focus-visible {
  background: rgb(255, 90, 140);
  transform: scale(1.04);
}
.pull-figure-restart .tokenization-media-icon {
  width: 16px;
  height: 16px;
}

/* ======================== References list ===================== */
.references-list {
  list-style: none;
  padding: 0;
  margin: 1.5vh 0 0;
}
.references-list li {
  display: flex;
  gap: 10px;
  font-size: 0.88em;
  color: #353535;
  line-height: 1.5;
  padding: 0.6em 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  scroll-margin-top: 90px;
}
.references-list li:last-child {
  border-bottom: 0;
}
.references-list--extra[hidden] {
  display: none;
}
.references-list .ref-num {
  flex: 0 0 auto;
  color: #777;
  font-weight: 600;
}
.references-list .ref-body {
  flex: 1 1 auto;
}
.references-list li.is-highlighted {
  background-color: rgba(37, 99, 235, 0.08);
}
.references-toggle {
  margin-top: 1.5vh;
}

/* Inline [n] citation links sprinkled through the prose/table wherever a
 * paper is mentioned — jump down to its numbered entry in #references,
 * auto-expanding the list first if the target is currently collapsed. */
.ref-cite {
  font-size: 0.78em;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: super;
}
.ref-cite:hover,
.ref-cite:focus-visible {
  text-decoration: underline;
}
