html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans', sans-serif;
}

.column {
  min-width: 0;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.pointzero {
  font-variant: small-caps;
  font-weight: 700;
  color: #e0662a;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
  padding-bottom: 1.5rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  font-weight: bolder;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin-right: 0.3em;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.demo-video {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

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

.figure-caption {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.75rem;
  text-align: left;
}

.flow-figure {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1rem 1rem 0.75rem 1rem;
  margin-bottom: 1.75rem;
}

.results-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.results-table {
  margin: 0 auto;
  font-size: 0.88rem;
  border-collapse: collapse;
  min-width: 640px;
}

.results-table th,
.results-table td {
  padding: 0.35rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  white-space: nowrap;
}

.results-table thead th {
  border-bottom: 2px solid #363636;
  font-weight: 700;
}

.results-table td:first-child,
.results-table th:first-child {
  text-align: left;
}

.results-table .best {
  font-weight: 700;
}

.results-table .grp {
  border-left: 1px solid #dbdbdb;
}

.results-table .ours td {
  background: #fdf1ea;
}

.table-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
  text-align: left;
}

.bib-block {
  text-align: left;
  overflow-x: auto;
  border-radius: 8px;
}

.section-tagline {
  margin-top: 1rem;
}

.video-caption {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.75rem;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .publication-title {
    font-size: 1.75rem !important;
  }

  .hero-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---------- interactive hero ---------- */
#hero-viewer {
  max-width: 1100px;
  margin: 0 auto;
}

.pz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.pz-tab-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pz-tab-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8f98;
  margin-right: 0.2rem;
}

.pz-tab {
  border: 1px solid #d5d8dd;
  background: #fff;
  color: #363636;
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
  font-size: 0.88rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pz-tab:hover {
  border-color: #e0662a;
  color: #e0662a;
}

.pz-tab.is-active {
  background: #e0662a;
  border-color: #e0662a;
  color: #fff;
}

.pz-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #343a44 0%, #20242b 65%, #16181d 100%);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
  touch-action: none;
  cursor: grab;
}

.pz-stage:active { cursor: grabbing; }

.pz-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pz-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 13, 16, 0.55);
  z-index: 3;
}

.pz-spin {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e0662a;
  border-radius: 50%;
  animation: pzspin 0.9s linear infinite;
}

@keyframes pzspin { to { transform: rotate(360deg); } }

.pz-hint {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
  pointer-events: none;
}

.pz-legend {
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
  z-index: 2;
  pointer-events: none;
}

.pz-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: -1px;
}

.pz-dot-rgb {
  background: conic-gradient(#e57373, #ffd54f, #81c784, #64b5f6, #e57373);
}

.pz-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(transparent, rgba(10, 11, 13, 0.82));
  z-index: 2;
}

.pz-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #e0662a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.pz-scrub {
  flex: 1;
  accent-color: #e0662a;
  cursor: pointer;
}

.pz-time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  min-width: 4.2em;
}

.pz-gt-wrap {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  cursor: pointer;
}

.pz-gt-wrap input { accent-color: #e0662a; }

.pz-caption {
  font-size: 0.92rem;
  color: #666;
  text-align: center;
  margin-top: 0.8rem;
  min-height: 1.4em;
}

.pz-note {
  font-size: 0.78rem;
  color: #999;
  text-align: center;
  margin-top: 0.6rem;
}

@media screen and (max-width: 600px) {
  .pz-stage { aspect-ratio: 4 / 3; }
  .pz-hint { display: none; }
}

.pz-variant {
  background: rgba(255, 255, 255, 0.12);
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 0.76rem;
  padding: 0.15rem 0.3rem;
  max-width: 16em;
  flex: 0 0 auto;
}

.pz-variant option {
  color: #222;
}

/* ---------- mode toggle ---------- */
.pz-modes {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pz-mode {
  border: 2px solid #e0662a;
  background: #fff;
  color: #e0662a;
  border-radius: 14px;
  padding: 0.55rem 1.7rem;
  cursor: pointer;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 13rem;
}

.pz-mode:hover { background: #fdf1ea; }

.pz-mode.is-active {
  background: #e0662a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(224, 102, 42, 0.35);
}

.pz-mode-label {
  font-size: 1.15rem;
  font-weight: 700;
}

.pz-mode-sub {
  font-size: 0.76rem;
  opacity: 0.85;
}

@media screen and (max-width: 600px) {
  .pz-mode { min-width: 9rem; padding: 0.45rem 1rem; }
  .pz-mode-label { font-size: 0.95rem; }
}

.pz-rgb-wrap {
  position: absolute;
  top: 2.3rem;
  left: 0.9rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pz-rgb {
  width: 280px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  display: block;
}

.pz-rgb-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}

@media screen and (max-width: 600px) {
  .pz-rgb { width: 150px; }
}

/* ---------- interactive method figure ---------- */
#method-figure { max-width: 900px; margin: 0 auto; }

.mf-head {
  display: flex; align-items: center; justify-content: center;
  gap: 0.8rem; margin-bottom: 0.9rem; flex-wrap: wrap;
}

.mf-select {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.92rem; padding: 0.4rem 0.7rem;
  border: 1.5px solid #e0662a; border-radius: 999px;
  background: #fff; color: #e0662a; cursor: pointer;
}

.mf-hint { font-size: 0.78rem; color: #9aa0a6; }

.mf-stage {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 14px;
  padding: 0.9rem; overflow: hidden;
}

.mf-svg { width: 100%; height: auto; display: block; }

.mf-block { cursor: pointer; }
.mf-block:hover rect { fill-opacity: 0.34; }

text.mf-label {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 12.5px; font-weight: 600; fill: #2b3138;
}
text.mf-sub {
  font-family: 'Noto Sans', sans-serif; font-size: 10.5px; fill: #6b7280;
}
text.mf-xl {
  font-family: 'Google Sans', sans-serif; font-size: 13px; font-weight: 700; fill: #5b6472;
}

.mf-info {
  margin-top: 0.85rem; min-height: 3.2em;
  font-size: 0.9rem; color: #4b5563; text-align: left;
}
.mf-info-title {
  display: block; font-weight: 700; color: #e0662a; margin-bottom: 0.15rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.mf-attn-bar {
  display: flex; align-items: center; gap: 0.7rem; margin-top: 0.6rem; flex-wrap: wrap;
}
.mf-btn {
  border: 1px solid #d5d8dd; background: #fff; border-radius: 999px;
  padding: 0.3rem 0.9rem; font-size: 0.85rem; cursor: pointer;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}
.mf-btn:hover { border-color: #e0662a; color: #e0662a; }
.mf-attn-state { font-size: 0.82rem; color: #6b7280; font-variant-numeric: tabular-nums; }
.mf-scrub { flex: 1; accent-color: #e0662a; min-width: 180px; }
.mf-canvas { width: 100%; height: auto; display: block; border-radius: 10px; }

@media screen and (max-width: 600px) {
  .mf-info { font-size: 0.84rem; }
  text.mf-label { font-size: 15px; }
  text.mf-sub { font-size: 12px; }
}

/* ---------- interactive result charts ---------- */
.ch-wrap { margin: 0 auto 0.5rem; max-width: 820px; }

.ch-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem;
}
.ch-metrics { display: inline-flex; gap: 0.3rem; }
.ch-pill {
  border: 1px solid #d5d8dd; background: #fff; color: #4b5563;
  border-radius: 999px; padding: 0.22rem 0.72rem; font-size: 0.8rem; cursor: pointer;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}
.ch-pill.is-active { background: #e0662a; border-color: #e0662a; color: #fff; }
.ch-table-btn {
  border: 1px solid #d5d8dd; background: #fff; color: #6b7280;
  border-radius: 999px; padding: 0.22rem 0.72rem; font-size: 0.78rem; cursor: pointer;
}
.ch-table-btn:hover { border-color: #e0662a; color: #e0662a; }

.ch-legend {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1rem;
  font-size: 0.82rem; color: #4b5563; margin-bottom: 0.35rem;
}
.ch-leg { display: inline-flex; align-items: center; gap: 0.35rem; }
.ch-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.ch-plots { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.ch-facet { flex: 1 1 220px; min-width: 200px; }
.ch-facet-title {
  display: block; text-align: center; font-size: 0.82rem; font-weight: 600;
  color: #4b5563; margin-bottom: 0.1rem;
}
.ch-svg { width: 100%; height: auto; display: block; }
.ch-bar { transition: opacity 0.12s ease; }
.ch-bar:hover { opacity: 0.78; }

text.ch-axis { font-family: 'Noto Sans', sans-serif; font-size: 10px; fill: #9aa0a6; }
text.ch-glabel { font-family: 'Noto Sans', sans-serif; font-size: 11px; fill: #4b5563; }

.ch-note { font-size: 0.8rem; color: #8a8f98; text-align: left; margin-top: 0.4rem; }

.ch-tip {
  position: absolute; z-index: 50; pointer-events: none;
  background: rgba(22, 24, 29, 0.95); color: #fff;
  border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.78rem; line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.ch-tip-v { font-size: 1.05rem; font-weight: 700; }

/* ---------- 4D dataset gallery ---------- */
#dataset-gallery { max-width: 980px; margin: 1.6rem auto 0; }
.dg-filters { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.dg-pill {
  border: 1px solid #d5d8dd; background: #fff; color: #4b5563; border-radius: 999px;
  padding: 0.28rem 0.9rem; font-size: 0.85rem; cursor: pointer;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}
.dg-pill.is-active { background: #e0662a; border-color: #e0662a; color: #fff; }
.dg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.dg-item { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #11131a; }
.dg-item video { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.dg-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,11,13,0.8));
  color: #fff; font-size: 0.72rem; padding: 1.1rem 0.5rem 0.35rem;
  text-transform: capitalize;
}
.dg-item figcaption span { color: rgba(255,255,255,0.6); }
.dg-note { font-size: 0.82rem; color: #8a8f98; text-align: center; margin-top: 0.8rem; }
@media screen and (max-width: 900px) { .dg-grid { grid-template-columns: repeat(3, 1fr); } }
@media screen and (max-width: 600px) { .dg-grid { grid-template-columns: repeat(2, 1fr); } }

/* asset-capture mode */
#hero-viewer.pz-bare .pz-modes,
#hero-viewer.pz-bare .pz-tabs,
#hero-viewer.pz-bare .pz-bar,
#hero-viewer.pz-bare .pz-legend,
#hero-viewer.pz-bare .pz-hint,
#hero-viewer.pz-bare .pz-rgb-wrap,
#hero-viewer.pz-bare .pz-caption { display: none !important; }
#hero-viewer.pz-bare .pz-stage { box-shadow: none; }

/* ---------- method figure: real-imagery pipeline (concept A) ---------- */
.mf-pipe {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0.35rem; flex-wrap: nowrap;
}
.mf-col {
  display: flex; flex-direction: column; gap: 0.45rem;
  justify-content: center; flex: 1 1 0; min-width: 0;
}
.mf-col-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: #9aa0a6; text-align: center; font-weight: 600;
}
.mf-card {
  margin: 0; border: 1px solid #e2e5ea; border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; transition: border-color .15s, transform .15s;
}
.mf-card:hover { border-color: #e0662a; transform: translateY(-1px); }
.mf-card.is-optional { border-style: dashed; }
.mf-card img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.mf-card figcaption {
  padding: 0.28rem 0.4rem 0.34rem; font-size: 0.72rem; font-weight: 600; color: #2b3138;
  display: flex; flex-direction: column; line-height: 1.25;
}
.mf-card figcaption span { font-weight: 400; font-size: 0.66rem; color: #8a8f98; }
.mf-arrow {
  align-self: center; color: #c3c8cf; font-size: 1.7rem; line-height: 1; flex: 0 0 auto;
}
.mf-chip, .mf-dec {
  border: 1px solid #e2e5ea; border-radius: 10px; background: #fbfbfc;
  padding: 0.45rem 0.5rem; text-align: center; font-size: 0.75rem; color: #2b3138;
  cursor: pointer;
}
.mf-chip span { display: block; font-size: 0.65rem; color: #8a8f98; }
.mf-dec { display: flex; flex-direction: column; gap: 0.34rem; padding: 0.6rem 0.5rem; }
.mf-mem { font-size: 0.68rem; color: #5b6472; background: #eef0f3; border-radius: 6px; padding: 0.2rem; }
.mf-attn-chip { border-radius: 6px; padding: 0.3rem; font-size: 0.72rem; font-weight: 600; }
.mf-pa { background: rgba(63,127,191,0.16); color: #2c5f92; }
.mf-ga { background: rgba(138,99,196,0.16); color: #6a4a9e; }
.mf-xl-badge { font-size: 0.7rem; color: #8a8f98; font-weight: 700; }
.mf-noise { font-size: 0.66rem; color: #3f9e78; }

@media screen and (max-width: 760px) {
  .mf-pipe { flex-wrap: wrap; }
  .mf-arrow { transform: rotate(90deg); width: 100%; }
  .mf-col { flex: 1 1 45%; }
}

/* section-embedded viewers (post-training) */
.pz-section-viewer { max-width: 820px; margin: 0 auto 0.4rem; }
.pz-section-viewer .pz-stage { aspect-ratio: 16 / 9; }

/* ---------- method figure: live 3D widget flow ---------- */
.mf-flow { display: flex; align-items: stretch; justify-content: center; gap: 0.4rem; }
.mf-fcol { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 0; min-width: 0; justify-content: flex-start; }
.mf-w {
  margin: 0; border: 1px solid #e2e5ea; border-radius: 10px; overflow: hidden;
  background: #14161b; cursor: pointer; transition: border-color .15s, transform .15s;
}
.mf-w:hover { border-color: #e0662a; transform: translateY(-1px); }
.mf-w-canvas, .mf-w-img {
  width: 100%; display: block; aspect-ratio: 4 / 3; background: #14161b;
}
.mf-w-img { object-fit: cover; }
.mf-w figcaption {
  background: #fff; padding: 0.26rem 0.4rem 0.32rem;
  font-size: 0.72rem; font-weight: 600; color: #2b3138;
  display: flex; flex-direction: column; line-height: 1.25;
}
.mf-w figcaption span { font-weight: 400; font-size: 0.65rem; color: #8a8f98; }
.mf-dino-stack { display: flex; flex-direction: column; gap: 0.3rem; }
.mf-pio {
  border: 1px solid #e2e5ea; border-radius: 9px; background: #fbfbfc;
  padding: 0.2rem 0.3rem 0.3rem; text-align: center; cursor: pointer;
}
.mf-pio-svg { width: 100%; height: auto; display: block; }
.mf-pio span { font-size: 0.65rem; color: #6b7280; }
@media screen and (max-width: 760px) {
  .mf-flow { flex-wrap: wrap; }
  .mf-arrow { transform: rotate(90deg); width: 100%; }
  .mf-fcol { flex: 1 1 46%; }
}

/* DiT block spans the full height of the input column */
.mf-fcol-dit { justify-content: flex-start; }
.mf-fcol-dit .mf-w-tall { flex: 1 1 auto; display: flex; flex-direction: column; }


/* DiT: wider column, layer stack beside the denoising animation */
.mf-fcol-dit { flex: 2.35 1 0; justify-content: flex-start; }
.mf-dit-body { display: flex; flex: 1 1 auto; min-height: 0; }
.mf-dit-layers {
  flex: 0 0 108px; background: #fbfbfc; border-right: 1px solid #e6e8ec;
  display: flex; align-items: stretch; padding: 0.2rem 0;
}
.mf-layers-svg { width: 100%; height: 100%; display: block; }
text.mf-layer-txt { font-family: 'Noto Sans', sans-serif; font-size: 10px; fill: #4b5563; }
text.mf-layer-xl { font-family: 'Google Sans', sans-serif; font-size: 10px; font-weight: 700; fill: #8a8f98; }


/* DiT: 16:9 animation with the layer row underneath */
.mf-dit-canvas { aspect-ratio: 16 / 9 !important; flex: 0 0 auto !important; min-height: 0 !important; width: 100%; }
.mf-dit-layers-row {
  display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center;
  padding: 0.4rem 0.35rem 0.1rem; background: #fff;
}
.mf-chip-l {
  font-size: 0.58rem; padding: 0.14rem 0.32rem; border-radius: 5px; white-space: nowrap;
  border: 1px solid transparent; color: #4b5563; transition: all .18s ease;
}
.mf-chip-l.is-p { background: rgba(63,127,191,0.14); border-color: rgba(63,127,191,0.4); }
.mf-chip-l.is-g { background: rgba(138,99,196,0.14); border-color: rgba(138,99,196,0.4); }
.mf-chip-l.is-done { opacity: 0.5; }
.mf-chip-l.is-on { transform: translateY(-1px); }
.mf-chip-l.is-p.is-on { background: rgba(63,127,191,0.75); color: #fff; }
.mf-chip-l.is-g.is-on { background: rgba(138,99,196,0.75); color: #fff; }
.mf-chip-xl { font-size: 0.62rem; font-weight: 700; color: #8a8f98; margin-left: 0.2rem; }

/* DiT: 16:9 video on top, denoising steps filling the rest of the column height */
.mf-dit-steps {
  flex: 1 1 auto; background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 0.5rem 0.2rem;
}
.mf-steps-head { font-size: 0.66rem; color: #8a8f98; text-align: center; line-height: 1.3; }
.mf-steps-row { display: flex; align-items: center; justify-content: center; gap: 0.3rem; flex-wrap: nowrap; }
.mf-step-b {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  padding: 4px; border: 1px solid #e6e8ec; border-radius: 8px; transition: all .18s ease;
}
.mf-step-b.is-done { opacity: 0.45; }
.mf-step-b.is-on { border-color: #e0662a; box-shadow: 0 2px 10px rgba(224,102,42,0.18); }
.mf-bar {
  font-size: 0.53rem; padding: 0.14rem 0.28rem; border-radius: 4px; text-align: center;
  color: #4b5563; white-space: nowrap;
}
.mf-bar.is-p { background: rgba(63,127,191,0.16); }
.mf-bar.is-g { background: rgba(138,99,196,0.16); }
.mf-step-b.is-on .mf-bar.is-p { background: rgba(63,127,191,0.7); color: #fff; }
.mf-step-b.is-on .mf-bar.is-g { background: rgba(138,99,196,0.7); color: #fff; }
.mf-step-lab { font-size: 0.55rem; color: #9aa0a6; text-align: center; }

/* hero phase badge — large, centred, states the regime */
.pz-phase {
  position: absolute; top: 2.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; pointer-events: none; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.12rem;
}
.pz-phase-main {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.45rem; font-weight: 700; letter-spacing: 0.045em;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.65);
  background: rgba(30,34,42,0.55); border-radius: 999px; padding: 0.2rem 1.1rem;
  transition: background .25s ease;
}
.pz-phase.is-input .pz-phase-main { background: rgba(224,102,42,0.92); }
.pz-phase-sub {
  font-size: 0.8rem; color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}
@media screen and (max-width: 600px) {
  .pz-phase-main { font-size: 1rem; padding: 0.15rem 0.7rem; }
  .pz-phase-sub { font-size: 0.68rem; }
}
#hero-viewer.pz-bare .pz-phase { display: none !important; }

/* DINOv2 card with Perceiver-IO inside it */
.mf-dino-card .mf-pio-inline {
  background: #fbfbfc; border-top: 1px solid #eceef1; padding: 0.25rem 0.3rem 0.3rem;
  text-align: center;
}
.mf-dino-card .mf-pio-inline span { font-size: 0.6rem; color: #6b7280; display: block; }
.mf-dino-card .mf-pio-svg { width: 100%; height: auto; display: block; }
.mf-w-vid { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; background: #14161b; }

/* a denoising step = a whole stack of alternating layers */
.mf-step-stack { display: flex; gap: 2px; justify-content: center; align-items: flex-end; height: 20px; }
.mf-step-stack i { width: 4px; height: 100%; border-radius: 2px; display: block; }
.mf-step-stack i.is-p { background: rgba(63,127,191,0.45); }
.mf-step-stack i.is-g { background: rgba(138,99,196,0.45); }
.mf-step-b.is-on .mf-step-stack i.is-p { background: rgba(63,127,191,0.95); }
.mf-step-b.is-on .mf-step-stack i.is-g { background: rgba(138,99,196,0.95); }
.mf-step-sub { font-size: 0.5rem; color: #9aa0a6; text-align: center; }

/* ---- policy rollout videos (replaces the 3D sim viewer) ---- */
.policy-videos { margin-top: 1.25rem; }
.policy-group-label {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8a8f98; margin: 1.1rem 0 0.5rem; font-weight: 600;
}
.policy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.policy-grid.is-2x2 {
  grid-template-columns: repeat(2, 1fr); max-width: 620px; margin: 0 auto;
}
.policy-item { margin: 0; }
.policy-item video {
  width: 100%; display: block; border-radius: 10px; background: #eef1f5;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.policy-item figcaption {
  font-size: 0.85rem; color: #555; margin-top: 0.35rem; text-align: center;
}
@media screen and (max-width: 600px) {
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- multi-sample (multimodality) widget ---- */
.mm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1rem;
}
.mm-cell { margin: 0; }
.mm-cell canvas {
  width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 10px;
  background: linear-gradient(#ffffff, #e9edf4);
}
.mm-cell.is-unc canvas { box-shadow: 0 0 0 2px #e0662a inset; }
.mm-cell figcaption {
  font-size: 0.82rem; color: #666; text-align: center; margin-top: 0.3rem;
}
.mm-cell.is-unc figcaption { color: #c2521f; font-weight: 600; }
.mm-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  justify-content: center; margin-top: 0.9rem; font-size: 0.85rem; color: #666;
}
.mm-key { display: inline-flex; align-items: center; gap: 0.4rem; }
.mm-sw { width: 15px; height: 15px; border-radius: 50%; display: inline-block; }
.mm-sw-lo { background: #265aa0; }
.mm-sw-hi { background: #d23c28; }
.mm-note-i { font-style: italic; color: #8a8f98; }
@media screen and (max-width: 700px) {
  .mm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* two even rows of scene pills (column count set from the tab count in hero.js) */
.pz-tabs.is-grid {
  display: grid;
  justify-content: center;
  justify-items: stretch;
  gap: 0.45rem 0.6rem;
}
.pz-tabs.is-grid .pz-tab { width: 100%; }
@media screen and (max-width: 700px) {
  .pz-tabs.is-grid { display: flex; flex-wrap: wrap; }
  .pz-tabs.is-grid .pz-tab { width: auto; }
}
