:root {
  --featured-media-max-width: 1120px;
  --interiorgs-accent: #10b981;
  --marble-accent: #a78bfa;
}

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

/* Unified font setup */
.title,
.subtitle,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Google Sans', sans-serif;
}

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

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

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

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

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

.dnerf {
  font-variant: small-caps;
}


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

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


.publication-title {}

.publication-banner {
  max-height: parent;

}

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

.publication-header .hero-body {}

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

.publication-title--hero {
  margin-bottom: 2.65rem;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .publication-title--hero {
    font-size: 4.8rem !important;
  }

  .publication-title--hero .publication-title__lead {
    white-space: nowrap;
  }
}

@media (min-width: 1024px) and (max-width: 1400px) {
  .publication-title--hero {
    font-size: clamp(3.8rem, 4.5vw, 4.8rem) !important;
  }
}

@media (max-width: 1023px) {
  .publication-title--hero {
    font-size: clamp(3.0rem, 8vw, 4rem) !important;
    margin-bottom: 1.5rem;
  }
}

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

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

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

.publication-authors {}

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

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

.author-block {
  display: inline-block;
}

.publication-banner img {}

.publication-authors {
  /*color: #4286f4;*/
}

.affiliation-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.affiliation-item {
  white-space: nowrap;
}

.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%;
}

.publication-body img {}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}


.has-bg-img {
  background: url('/static/images/toss.jpeg')center center;
  background-size: cover;
}



.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  /* 40% opacity black */
  z-index: 1;
  /* Make sure it's behind the text */
  transition: opacity 1.0s;
}

.hero-body,
.hero-head,
.hero-foot {
  z-index: 2;
  /* Ensure text is above the overlay */
  transition: opacity 1.0s;
}

/* Jump-to tabs (hero footer) */
.jump-nav {
  padding: 0.75rem 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

.jump-nav .jump-tabs ul {
  border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.jump-nav .jump-tabs li {
  margin: 0;
}

.jump-nav .jump-tabs li+li {
  margin-left: 0;
}

.jump-nav .jump-tabs li a {
  border-radius: 999px !important;
}

.jump-nav .jump-tabs a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.jump-nav .jump-tabs a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.jump-nav .jump-tabs a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* Interactive Viewer Section */
.viser-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.comparison-scene-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.comparison-scene-button.button {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-media-controls {
  max-width: var(--featured-media-max-width);
}

.featured-media-shell {
  width: 100%;
  max-width: var(--featured-media-max-width);
  margin: 0 auto;
}

.gs-minimap {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.gs-minimap.is-ready {
  opacity: 1;
  transform: scale(1);
}

.gs-minimap__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gs-minimap__mesh {
  fill: #ababab;
}

.gs-minimap__agent-dot {
  fill: #4f72c6;
  stroke: #ffffff;
  stroke-width: 1.6;
}

.gs-minimap__agent-arrow {
  fill: #4f72c6;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.section-content-wide {
  width: min(100%, var(--featured-media-max-width));
  margin: 0 auto;
}

.scene-source-button.button {
  border-width: 2px;
  background-color: #fff !important;
}

.scene-source-button--interiorgs.button {
  border-color: rgba(16, 185, 129, 0.72) !important;
  color: #047857 !important;
}

.scene-source-button--marble.button {
  border-color: rgba(167, 139, 250, 0.78) !important;
  color: #7e22ce !important;
}

.scene-source-button.button.is-primary {
  background-color: #00d1b2 !important;
  color: #fff !important;
  border-color: #00d1b2 !important;
}

.scene-source-button.button.is-primary-purple {
  background-color: #8b5cf6 !important;
  color: #fff !important;
  border-color: var(--marble-accent) !important;
}

.toi-video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.toi-video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.toi-video-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.toi-video-shell.is-loading .toi-video-status {
  opacity: 1;
}

.toi-video-shell.is-loading video {
  opacity: 0.08;
}

body.agent-demo-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.agent-demo-preview-shell {
  position: relative;
  border: 1px solid rgba(94, 234, 255, 0.18);
  box-shadow: 0 28px 70px rgba(3, 7, 18, 0.28);
  isolation: isolate;
}

.agent-demo-preview-shell::before,
.agent-demo-preview-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.agent-demo-preview-shell::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.22), transparent 30%),
    radial-gradient(circle at 84% 80%, rgba(99, 102, 241, 0.18), transparent 34%);
}

.agent-demo-preview-shell::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.38;
}

.agent-demo-preview-shell video {
  position: relative;
  z-index: 1;
}

.agent-demo-expand {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  padding: 0;
  z-index: 3;
  cursor: pointer;
  background:
    radial-gradient(circle at center, transparent 46%, rgba(2, 6, 23, 0.06) 100%),
    linear-gradient(135deg, rgba(8, 47, 73, 0.16), rgba(15, 23, 42, 0.02));
  transition: background 180ms ease;
}

.agent-demo-expand:hover,
.agent-demo-expand:focus-visible {
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.02), rgba(8, 47, 73, 0.18)),
    linear-gradient(135deg, rgba(8, 47, 73, 0.28), rgba(15, 23, 42, 0.06));
}

.agent-demo-expand:focus-visible {
  outline: 2px solid rgba(94, 234, 255, 0.55);
  outline-offset: -6px;
}

.agent-demo-expand__corner {
  position: absolute;
  width: 52px;
  height: 52px;
  border-color: rgba(94, 234, 255, 0.92);
  border-style: solid;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.42));
  transition: transform 180ms ease, opacity 180ms ease;
}

.agent-demo-expand:hover .agent-demo-expand__corner,
.agent-demo-expand:focus-visible .agent-demo-expand__corner {
  transform: scale(1.08);
}

.agent-demo-expand__corner--tl {
  top: 18px;
  left: 18px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 14px;
}

.agent-demo-expand__corner--tr {
  top: 18px;
  right: 18px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 14px;
}

.agent-demo-expand__corner--br {
  right: 18px;
  bottom: 18px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 14px;
}

.agent-demo-expand__corner--bl {
  left: 18px;
  bottom: 18px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 14px;
}

.agent-demo-preview-note {
  margin: 0.8rem auto 0;
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  color: #64748b;
}

.agent-demo-modal {
  position: fixed;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 70;
  overscroll-behavior: contain;
}

.agent-demo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.agent-demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.16), transparent 36%),
    rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.agent-demo-modal__panel {
  position: relative;
  width: min(1640px, calc(100vw - 1rem));
  height: min(900px, calc(100vh - 1rem));
  max-height: calc(100vh - 1rem);
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 42px 120px rgba(2, 6, 23, 0.55);
}

.agent-demo-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), transparent 22%, transparent 78%, rgba(56, 189, 248, 0.16)),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 24%);
}

.agent-demo-modal__shell {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  max-height: calc(100vh - 1rem);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background:
    radial-gradient(circle at top left, rgba(8, 47, 73, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94));
}

.agent-demo-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.agent-demo-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
}

.agent-demo-modal__title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  color: #f8fafc;
}

.agent-demo-modal__close {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.agent-demo-modal__close:hover,
.agent-demo-modal__close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 255, 0.4);
  background: rgba(8, 47, 73, 0.9);
}

.agent-demo-modal__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.85fr);
  align-items: stretch;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.agent-demo-sidebar {
  display: grid;
  grid-template-rows: var(--agent-demo-sidebar-top-height, auto) minmax(0, 1fr);
  gap: 1rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.agent-demo-sidebar__panel,
.agent-demo-player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96)),
    rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.agent-demo-sidebar__panel::before,
.agent-demo-player-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 72%);
}

.agent-demo-sidebar__panel {
  padding: 1.2rem 1.2rem 1.3rem;
  min-height: 0;
  overflow: hidden;
}

.agent-demo-sidebar__panel--showcase {
  padding: 1rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.agent-demo-sidebar__panel--showcase .agent-showcase {
  gap: 0.8rem;
}

.agent-demo-sidebar__panel--showcase .agent-flow-step,
.agent-demo-sidebar__panel--showcase .agent-mini-card {
  padding: 0.9rem;
}

.agent-demo-sidebar__panel--showcase .agent-chip {
  margin-bottom: 0.58rem;
  font-size: 0.68rem;
}

.agent-demo-sidebar__panel--showcase .agent-flow-step strong,
.agent-demo-sidebar__panel--showcase .agent-mini-card__header {
  font-size: 0.92rem;
}

.agent-demo-sidebar__panel--showcase .agent-flow-step p,
.agent-demo-sidebar__panel--showcase .agent-mini-card p,
.agent-demo-sidebar__panel--showcase .agent-observation-pill,
.agent-demo-sidebar__panel--showcase .agent-chat-message {
  font-size: 0.8rem;
  line-height: 1.45;
}

.agent-demo-sidebar__panel--showcase .agent-terminal-window__body {
  font-size: 0.74rem;
}

.agent-demo-sidebar__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
}

.agent-demo-sidebar__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.12;
  color: #f8fafc;
}

.agent-demo-sidebar__summary {
  margin: 0.95rem 0 0;
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.68;
  color: #cbd5e1;
}

.agent-demo-sidebar__bullets {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.agent-demo-sidebar__bullets li {
  position: relative;
  padding-left: 1rem;
  color: #d8e4f2;
  font-size: 0.92rem;
  line-height: 1.5;
}

.agent-demo-sidebar__bullets li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}

.agent-demo-player-shell {
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  height: 100%;
  min-height: 0;
}

.agent-demo-player__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.agent-demo-player__label-group,
.agent-demo-player__status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.agent-demo-player__label {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.74);
}

.agent-demo-player__label {
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-demo-player__status {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.agent-demo-player__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
  animation: agentPulse 1.8s ease-in-out infinite;
}

.agent-demo-player {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: min(52vh, 620px);
  aspect-ratio: auto;
  border-radius: 20px;
  border: 1px solid rgba(94, 234, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.14), transparent 28%),
    linear-gradient(160deg, #020617, #0f172a);
}

.agent-demo-player video {
  object-fit: contain;
  background: transparent;
}

.agent-demo-player__progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.94);
  overflow: hidden;
}

.agent-demo-player__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
}

.agent-demo-player__stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.agent-demo-player__stage {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  padding: 0.8rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.agent-demo-player__stage:hover,
.agent-demo-player__stage:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 255, 0.34);
}

.agent-demo-player__stage.is-active {
  border-color: rgba(94, 234, 255, 0.42);
  background: rgba(8, 47, 73, 0.74);
  color: #f8fafc;
}

.agent-demo-player__stage-index {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-demo-player__stage-index {
  color: #67e8f9;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.agent-demo-player__stage-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.agent-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
  height: auto;
  align-content: start;
}

.agent-showcase--flow-vertical {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.55rem;
}

.agent-flow-step,
.agent-mini-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96)),
    rgba(15, 23, 42, 0.96);
  padding: 1rem;
}

.agent-flow-step strong,
.agent-mini-card__header {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.agent-flow-step p,
.agent-mini-card p {
  margin: 0.5rem 0 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(94, 234, 255, 0.22);
  background: rgba(8, 145, 178, 0.14);
  color: #67e8f9;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-observation-list {
  margin-top: 0.75rem;
}

.agent-terminal-window {
  margin-top: 0.8rem;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(94, 234, 255, 0.16);
  background: rgba(2, 6, 23, 0.82);
  overflow: hidden;
}

.agent-terminal-window__bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  background: rgba(15, 23, 42, 0.92);
}

.agent-terminal-window__bar span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.5);
}

.agent-terminal-window__bar span:nth-child(1) {
  background: #ff5f57;
}

.agent-terminal-window__bar span:nth-child(2) {
  background: #febc2e;
}

.agent-terminal-window__bar span:nth-child(3) {
  background: #28c840;
}

.agent-terminal-window__body {
  padding: 0.9rem 0.95rem 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  color: #d5f8ff;
  display: grid;
  gap: 0.45rem;
  overflow: hidden;
}

.agent-terminal-line {
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.agent-terminal-line--typing {
  display: inline-block;
  width: auto;
  max-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  animation: agentTypingClip 4.8s steps(22, end) infinite;
}

.agent-prompt {
  color: #67e8f9;
  margin-right: 0.35rem;
}

.agent-observation-list {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.agent-observation-pill {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #d8e4f2;
}

.agent-chat-thread {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.agent-chat-message {
  max-width: 92%;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  line-height: 1.55;
}

.agent-chat-message--incoming {
  justify-self: start;
  background: rgba(30, 41, 59, 0.94);
  color: #e2e8f0;
}

.agent-chat-message--outgoing {
  justify-self: end;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.74), rgba(37, 99, 235, 0.72));
  color: #f8fafc;
}

.agent-chat-message--glow {
  box-shadow: 0 0 0 1px rgba(94, 234, 255, 0.16), 0 0 24px rgba(34, 211, 238, 0.14);
}

.agent-mini-card--viz {
  gap: 0.8rem;
}

.agent-mini-card--viz .agent-mini-card__header {
  line-height: 1.18;
  margin-bottom: 0;
}

.agent-viz-panel {
  margin-top: 0.85rem;
  min-height: 190px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.9));
  overflow: hidden;
}

.agent-scene-viz {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.8rem;
}

.agent-scene-viz__query {
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(94, 234, 255, 0.16);
  background: rgba(8, 47, 73, 0.34);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.agent-scene-viz__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.agent-scene-list {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.agent-scene-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.58rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.76);
}

.agent-scene-row--target {
  border-color: rgba(250, 204, 21, 0.28);
  background: linear-gradient(135deg, rgba(133, 77, 14, 0.24), rgba(15, 23, 42, 0.88));
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.12);
}

.agent-scene-row__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.66);
  color: #7dd3fc;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-scene-row--target .agent-scene-row__step {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.agent-scene-row__body {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.agent-scene-row__body strong {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agent-scene-row__body span {
  color: #cbd5e1;
  font-size: 0.7rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agent-demo-sidebar__panel--showcase .agent-scene-viz__query,
.agent-demo-sidebar__panel--showcase .agent-scene-row__body strong {
  font-size: 0.74rem;
}

.agent-demo-sidebar__panel--showcase .agent-scene-row__step {
  font-size: 0.58rem;
}

.agent-demo-sidebar__panel--showcase .agent-scene-row__body span {
  font-size: 0.68rem;
}

@keyframes agentPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes agentTypingClip {
  0%,
  14% {
    max-width: 0;
  }

  50%,
  78% {
    max-width: 100%;
  }

  100% {
    max-width: 100%;
  }
}

@media (max-width: 1200px) {
  .agent-demo-modal__shell {
    overflow: auto;
  }

  .agent-demo-modal__grid {
    overflow: visible;
  }

  .agent-demo-modal__grid {
    grid-template-columns: 1fr;
  }

  .agent-demo-sidebar {
    grid-template-rows: auto auto;
    height: auto;
  }

  .agent-demo-player {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .agent-demo-modal {
    padding: 0.5rem;
  }

  .agent-demo-modal__panel {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .agent-demo-modal__shell {
    padding: 1rem;
  }

  .agent-demo-player__stages {
    grid-template-columns: 1fr;
  }

  .agent-scene-viz__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agent-demo-preview-note {
    margin-top: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .agent-demo-expand__corner {
    width: 40px;
    height: 40px;
  }

  .agent-demo-modal__header {
    flex-direction: column;
  }

  .agent-demo-modal__close {
    align-self: stretch;
  }

  .agent-demo-player {
    min-height: 280px;
  }
}

.comparison-scene-prompt {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #4a4a4a;
}

.three-viewer {
  width: 100%;
  height: 640px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  background: #f0f0f0;
  overflow: hidden;
  margin-top: 1.5rem;
  position: relative;
}

.three-viewer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.three-viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.viewer-illustration {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: #4a4a4a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.viewer-illustration__label {
  font-weight: 600;
}

.viewer-illustration__tip {
  font-style: italic;
}

.viewer-illustration__divider {
  opacity: 0.6;
}

/* Robot Manipulation Section */
.robot-manipulation-section .comparison-scene-buttons {
  margin-top: 1rem;
}

.robot-video-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.robot-video-wrapper video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Comparison Section */
.comparison-section {
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.comparison-category {
  margin-top: 2rem;
}

.comparison-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.comparison-grid-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.comparison-grid {
  display: grid;
  gap: 1.5rem 1rem;
  min-width: 680px;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
}

.comparison-view-label {
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  height: 100%;
}

.comparison-video-wrapper {
  text-align: center;
  display: flex;
  justify-content: center;
}

.comparison-video {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  background: #000;
}

.comparison-method-label {
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .comparison-grid {
    min-width: 540px;
  }
}

/* Gallery showcase */
.gallery-showcase-band {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  transition: padding 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-showcase-band.is-expanded {
  padding: 0;
}

.gallery-showcase {
  position: relative;
  width: min(100%, var(--featured-media-max-width));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  transition:
    width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width, transform;
}

.gallery-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 48px rgba(2, 6, 23, 0.34);
  opacity: 0.9;
  transition: opacity 0.42s ease, box-shadow 0.42s ease;
}

.gallery-showcase.is-expanded {
  width: 100%;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  transform: translateY(-2px);
}

.gallery-showcase.is-expanded::after {
  opacity: 0.55;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 42px rgba(2, 6, 23, 0.26);
}

.gallery-showcase.is-video-loading::after {
  opacity: 0.88;
  box-shadow:
    inset 0 0 0 1.2px rgba(15, 23, 42, 0.16),
    inset 0 0 72px rgba(2, 6, 23, 0.52);
}

.gallery-showcase.is-expanded.is-video-loading::after {
  opacity: 0.88;
  box-shadow:
    inset 0 0 0 1.2px rgba(15, 23, 42, 0.12),
    inset 0 0 64px rgba(2, 6, 23, 0.44);
}

.gallery-showcase-media,
.gallery-showcase-preview,
.gallery-showcase-video,
.gallery-showcase-loading,
.gallery-showcase-gradient {
  position: absolute;
  inset: 0;
}

.gallery-showcase-preview,
.gallery-showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-showcase-preview {
  transform: scale(1);
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.gallery-showcase.is-video-loading .gallery-showcase-preview {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.gallery-showcase-loading {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  transition: opacity 0.24s ease;
}

.gallery-showcase-loading.is-visible {
  opacity: 1;
}

.gallery-showcase-loading__icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.gallery-showcase-video {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.42s ease,
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-showcase.is-video-loading .gallery-showcase-video {
  opacity: 0;
}

.gallery-showcase-gradient {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.02) 30%, rgba(2, 6, 23, 0.4) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0) 32%, rgba(2, 6, 23, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
}

.gallery-showcase.is-expanded .gallery-showcase-gradient {
  opacity: 0.78;
}

.gallery-showcase.is-video-loading .gallery-showcase-gradient {
  opacity: 0;
}

.gallery-showcase-toggle {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-showcase-toggle:hover {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

.gallery-showcase-toggle__icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.gallery-showcase-toggle__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gallery-showcase-controls {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.32s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-showcase-controls--right {
  right: 26px;
  align-items: flex-end;
  transform: translateY(-50%) translateX(0);
}

.gallery-showcase-controls--left {
  left: 26px;
  align-items: flex-start;
  transform: translateY(-50%) translateX(0);
}

.gallery-showcase-dot {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  padding: 0;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.gallery-showcase-dot:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: scale(1.02);
}

.gallery-showcase-dot.is-active {
  width: 20px;
  height: 62px;
  background: #fff;
}

.gallery-showcase:not(.is-expanded) .gallery-showcase-dot {
  width: 17px;
  height: 17px;
}

.gallery-showcase:not(.is-expanded) .gallery-showcase-dot.is-active {
  width: 17px;
  height: 48px;
}

.gallery-showcase-caption {
  position: absolute;
  left: 28px;
  right: 134px;
  bottom: 24px;
  z-index: 3;
  color: #fff;
  font-size: 1.98rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.32s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-showcase.is-expanded .gallery-showcase-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Intro Video Carousel - Peek Style */
.intro-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 20px 0;
  overflow: hidden;
}

.intro-carousel {
  overflow: visible;
  flex: 1;
  position: relative;
  height: 0;
  padding-bottom: min(calc((100vw - 160px) * 0.5625), calc(var(--featured-media-max-width) * 0.5625));
}

.intro-carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-carousel-slide {
  position: absolute;
  width: min(calc(100vw - 160px), var(--featured-media-max-width));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  border-radius: 16px;
  overflow: hidden;
}

.intro-carousel-slide.active {
  opacity: 1;
  z-index: 2;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.intro-carousel-slide.prev {
  opacity: 0.5;
  z-index: 1;
  transform: translateX(-92%) scale(0.74);
  pointer-events: auto;
}

.intro-carousel-slide.next {
  opacity: 0.5;
  z-index: 1;
  transform: translateX(92%) scale(0.74);
  pointer-events: auto;
}

.intro-carousel-slide video {
  width: 100%;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  border: none;
  font-size: 1.85rem;
  font-weight: 700;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.carousel-nav:hover {
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.34);
}

.carousel-nav--prev {
  left: 5%;
}

.carousel-nav--next {
  right: 5%;
}

@media (max-width: 768px) {
  .gs-minimap {
    top: 10px;
    left: 10px;
    width: 96px;
    height: 96px;
  }

  .gallery-showcase-band {
    padding: 0 16px;
  }

  .gallery-showcase-toggle {
    top: 14px;
    left: 14px;
    padding: 0.62rem 0.85rem;
    gap: 0.5rem;
  }

  .gallery-showcase-toggle__label {
    font-size: 0.88rem;
  }

  .gallery-showcase-controls {
    gap: 12px;
  }

  .gallery-showcase-controls--right {
    right: 16px;
  }

  .gallery-showcase-controls--left {
    left: 16px;
  }

  .gallery-showcase-dot {
    width: 16px;
    height: 16px;
  }

  .gallery-showcase-dot.is-active {
    width: 16px;
    height: 44px;
  }

  .gallery-showcase:not(.is-expanded) .gallery-showcase-dot {
    width: 14px;
    height: 14px;
  }

  .gallery-showcase:not(.is-expanded) .gallery-showcase-dot.is-active {
    width: 14px;
    height: 38px;
  }

  .gallery-showcase-caption {
    left: 16px;
    right: 88px;
    bottom: 16px;
    font-size: 1.44rem;
    line-height: 1.45;
  }

  .intro-carousel {
    padding-bottom: calc((100vw - 96px) * 0.5625);
  }

  .intro-carousel-slide {
    width: calc(100vw - 96px);
  }

  .carousel-nav--prev {
    left: 2%;
  }

  .carousel-nav--next {
    right: 2%;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: #9ca3af;
}

.carousel-dot.active {
  width: 24px;
  background: #374151;
}

/* Navigation Episode per-slide description */
.nav-episode-description {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  min-height: 2.5em;
  pointer-events: none;
}

.nav-episode-desc-item {
  display: none;
  font-size: 1.05rem;
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.6;
  padding: 0 2rem;
  animation: fadeInDesc 0.4s ease;
}

.nav-episode-desc-item.active {
  display: block;
}

@keyframes fadeInDesc {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button.is-light.comparison-scene-button.is-primary-purple {
  background-color: #8b5cf6 !important;
  color: #fff !important;
  border-color: #8b5cf6 !important;
}

.button.is-light.comparison-scene-button.is-primary-blue {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: transparent !important;
}

/* ── Mesh vs GS Side-by-Side Comparison ── */
.video-comparison {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 20px 20px;
  box-sizing: border-box;
}

.video-comparison-item {
  flex: 1;
  max-width: 50%;
  position: relative;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-comparison-item.active {
  flex: 1.2;
  transform: scale(1.03);
  z-index: 2;
}

.video-comparison-item:not(.active) {
  flex: 0.85;
  transform: scale(0.97);
}

/* When no item is active (initial state), both share equally */
.video-comparison:not(.has-active) .video-comparison-item {
  flex: 1;
  transform: scale(1);
}

.video-comparison-label {
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.video-comparison-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-comparison-item.active .video-comparison-media {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.video-comparison-item.is-paused .video-comparison-media {
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.24);
}

.video-comparison-media video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* Magnifier canvas */
.magnifier-canvas {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  display: none;
  z-index: 10;
  /* Glass-like border */
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.7),
    0 0 0 5px rgba(100, 100, 100, 0.25),
    0 0 16px 4px rgba(0, 0, 0, 0.18),
    inset 0 0 8px 2px rgba(255, 255, 255, 0.10);
}

@media (max-width: 768px) {
  .video-comparison {
    flex-direction: column;
    gap: 16px;
    padding: 10px;
  }

  .video-comparison-item {
    max-width: 100%;
  }
}
