.visual-intro {
  background: #050507 url("assets/visual_intro/video_wall_loop_poster.jpg?v=d7159e1c") center / cover no-repeat;
  cursor: pointer;
  height: 100vh;
  height: 100svh;
  min-height: 32rem;
  overscroll-behavior-y: contain;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.visual-intro-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.visual-intro-shade {
  background:
    linear-gradient(180deg, transparent 72%, rgba(3, 4, 8, 0.22) 100%),
    radial-gradient(ellipse at center, rgba(5, 5, 7, 0.86) 0%, rgba(5, 5, 7, 0.76) 58%, rgba(5, 5, 7, 0.68) 100%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.visual-intro-brand {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  inset: 0;
  padding-top: clamp(2.7rem, 9.4vh, 6.4rem);
  pointer-events: none;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.visual-intro-logo {
  display: block;
  height: auto;
  width: clamp(7.5rem, 13.333vw, 16rem);
}

.visual-intro-copy p {
  margin: 0;
  text-shadow: 0 0.12em 0.18em rgba(0, 0, 0, 0.62);
}

.visual-intro-name {
  font-family: "Google Sans", "Noto Sans", system-ui, sans-serif;
  font-size: clamp(3.5rem, 5.833vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-top: clamp(0.7rem, 2.7vh, 1.85rem) !important;
}

.visual-intro-tagline {
  font-family: "Google Sans", "Noto Sans", system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.021vw, 3.625rem);
  font-weight: 700;
  line-height: 1;
  margin-top: clamp(0.65rem, 1.9vh, 1.3rem) !important;
}

.visual-intro-subline {
  color: #dee8f4;
  font-family: "Google Sans", "Noto Sans", system-ui, sans-serif;
  font-size: clamp(1.12rem, 2.031vw, 2.4375rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: clamp(0.45rem, 1.35vh, 0.9rem) !important;
}

.visual-intro-metric {
  font-family: "Google Sans", "Noto Sans", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.344vw, 2.8125rem);
  font-weight: 700;
  line-height: 1;
  margin-top: clamp(0.85rem, 2.4vh, 1.55rem) !important;
}

.visual-intro-hardware {
  color: #dee8f4;
  font-family: "Google Sans", "Noto Sans", system-ui, sans-serif;
  font-size: clamp(1.12rem, 2.031vw, 2.4375rem);
  font-weight: 400;
  line-height: 1;
  margin-top: clamp(0.45rem, 1.25vh, 0.82rem) !important;
}

.visual-intro-enter {
  align-items: center;
  background: rgba(10, 12, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 3.25rem;
  justify-content: center;
  left: 50%;
  line-height: 0;
  padding: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  width: 3.25rem;
  z-index: 3;
}

.visual-intro-enter svg {
  display: block;
  height: 1.05rem;
  overflow: visible;
  width: 1.9rem;
}

.visual-intro-enter path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.visual-intro-enter:hover,
.visual-intro-enter:focus-visible {
  background: rgba(17, 24, 39, 0.74);
  border-color: #fff;
  outline: none;
  transform: translateX(-50%) translateY(0.16rem);
}

.demo-button {
  background: linear-gradient(135deg, #111827 0%, #312e81 48%, #6d28d9 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0.5rem 1.3rem rgba(67, 56, 202, 0.24);
  color: #fff;
  cursor: pointer;
  gap: 0.28rem;
  padding-left: 1.15rem;
  padding-right: 0.72rem;
}

.demo-button:hover,
.demo-button:focus {
  color: #fff;
}

.demo-button .icon {
  color: #ddd6fe;
}

.gallery-section {
  background: #f7f9fc;
}

.benchmark-gallery-section {
  background: #fff;
}

.gallery-section .comparison-heading p {
  color: #667085;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  margin: -0.5rem 0 1.4rem;
  text-transform: uppercase;
}

.video-gallery-thumbnails {
  display: flex;
  gap: 0.72rem;
  padding: 0.35rem 0;
  width: max-content;
}

.video-gallery-preview-carousel {
  margin-bottom: 1rem;
  padding: 0 2.85rem;
  position: relative;
}

.video-gallery-preview-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.video-gallery-preview-viewport::-webkit-scrollbar {
  display: none;
}

.video-gallery-preview-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d8dee9;
  border-radius: 999px;
  box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.12);
  color: #344054;
  cursor: pointer;
  display: flex;
  font-size: 1.8rem;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 0.13rem;
  position: absolute;
  top: calc(50% - 1.45rem);
  transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
  width: 2.35rem;
  z-index: 3;
}

.video-gallery-preview-arrow:hover,
.video-gallery-preview-arrow:focus-visible {
  border-color: #8b5cf6;
  box-shadow: 0 0.45rem 1.1rem rgba(76, 29, 149, 0.2);
  color: #6d28d9;
  outline: none;
  transform: scale(1.05);
}

.video-gallery-preview-arrow.is-previous {
  left: 0;
}

.video-gallery-preview-arrow.is-next {
  right: 0;
}

.video-gallery-preview-dots {
  align-items: center;
  display: flex;
  gap: 0.42rem;
  justify-content: center;
  min-height: 1rem;
  padding-top: 0.42rem;
}

.video-gallery-preview-dot {
  background: #cbd5e1;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 0.43rem;
  padding: 0;
  transition: background 160ms ease, transform 160ms ease, width 160ms ease;
  width: 0.43rem;
}

.video-gallery-preview-dot.is-active {
  background: #6d28d9;
  width: 1.15rem;
}

.video-gallery-thumbnail {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: 0 0.25rem 0.85rem rgba(15, 23, 42, 0.07);
  color: #344054;
  cursor: pointer;
  flex: 0 0 clamp(9.2rem, 18vw, 12.5rem);
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 100%;
}

.video-gallery-thumbnail:hover,
.video-gallery-thumbnail:focus-visible {
  border-color: #c4b5fd;
  box-shadow: 0 0.45rem 1.2rem rgba(76, 29, 149, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.video-gallery-thumbnail.is-active {
  border-color: #6d28d9;
  box-shadow: 0 0.45rem 1.25rem rgba(76, 29, 149, 0.18);
}

.video-gallery-thumbnail img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.video-gallery-stage {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 0.8rem 2.4rem rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.video-gallery-heading {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1.1rem 0.8rem;
}

.video-gallery-heading .title {
  margin: 0;
}

.video-gallery-heading p {
  color: #667085;
  font-size: 0.82rem;
  margin: 0;
  text-align: right;
}

.video-gallery-player {
  background: #eef1f5;
  border-top: 1px solid #eaecf0;
  display: block;
  height: auto;
  width: 100%;
}

.self-captured-detector-note {
  color: #667085;
  font-size: 0.76rem;
  margin: 0;
  padding: 0.55rem 1rem 0.75rem;
  text-align: center;
}

.next-results-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.next-results-section .results-card {
  margin-top: 1.4rem;
}

.next-results-section .results-card-subtitle {
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.next-results-section .speed-accuracy-card {
  order: initial;
}

.next-results-section .hand-metrics-card {
  order: initial;
}

.next-results-section .hand-metrics-card .table-container {
  max-height: none;
}

.next-results-section .hand-metrics-card .results-table tbody th:first-child,
.next-results-section .hand-metrics-card .results-table thead tr:first-child > th:first-child {
  box-shadow: none;
  left: auto;
  min-width: 0;
  position: static;
}

.next-results-section .results-footnote.split-warning {
  margin-top: 1rem;
}

.next-results-section .results-table tbody th {
  white-space: nowrap;
}

.method-swatch.is-mint {
  background: #34d399;
}

.method-swatch.is-ace {
  background: #60a5fa;
}

.next-results-section .dataset-divider > * {
  border-top: 2px solid #d5deea;
}

.next-results-section .compact-table-container {
  margin: 0 auto;
  max-width: 52rem;
}

.xperience-results-card {
  container-name: xperience-results;
  container-type: inline-size;
}

.xperience-results-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 19rem minmax(0, 1fr);
}

.xperience-table-panel {
  border-right: 1px solid #e4eaf2;
  padding-right: 0.85rem;
}

.xperience-table-panel .results-table th,
.xperience-table-panel .results-table td {
  padding-left: 0.45em;
  padding-right: 0.45em;
}

.xperience-rpe-figure {
  min-width: 0;
  width: 100%;
}

.xperience-rpe-figure img {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  width: 100%;
}

@container xperience-results (max-width: 60rem) {
  .xperience-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .xperience-table-panel {
    border-bottom: 1px solid #e4eaf2;
    border-right: 0;
    margin-bottom: 0.25rem;
    padding-bottom: 1.1rem;
    padding-right: 0;
  }

  .xperience-table-panel .compact-table-container {
    max-width: 48rem;
  }
}

@supports not (container-type: inline-size) {
  @media screen and (max-width: 1200px) {
    .xperience-results-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .xperience-table-panel {
      border-bottom: 1px solid #e4eaf2;
      border-right: 0;
      margin-bottom: 0.25rem;
      padding-bottom: 1.1rem;
      padding-right: 0;
    }
  }
}

.next-results-section .efficiency-scaling-card .results-figure img {
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.next-results-section .results-plot-stack .results-figure img {
  border: 1px solid #e4eaf2;
  border-radius: 8px;
}

@media screen and (max-width: 768px) {
  .visual-intro {
    min-height: 28rem;
  }

  .visual-intro-brand {
    justify-content: center;
    padding-bottom: 4.5rem;
    padding-top: 0;
  }

  .video-gallery-preview-carousel {
    padding: 0 2.25rem;
  }

  .video-gallery-preview-arrow {
    height: 2rem;
    top: calc(50% - 1.3rem);
    width: 2rem;
  }

  .video-gallery-thumbnail {
    flex-basis: min(68vw, 15rem);
  }

  .video-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .video-gallery-heading p {
    text-align: left;
  }

  .next-results-section .results-table {
    font-size: 0.78rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .visual-intro-video {
    display: none;
  }
}
