/* Scoped to #viz. No additional scene motion, filters or loop timers. */
.homepage-flow #viz.sp-viz-reel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  min-height: max(620px, 56.25vw);
  padding: clamp(72px, 6vw, 110px) var(--stage-gutter);
  gap: 0;
  overflow: hidden;
  background: #0d1113;
}
.homepage-flow #viz.sp-viz-reel .sp-feature__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  width: 47%;
  max-width: 620px;
  padding: 0;
  text-align: right;
}
.homepage-flow #viz.sp-viz-reel .sp-feature__text { color: #dbe1e2; margin-left: auto; }
.homepage-flow #viz.sp-viz-reel .sp-feature__title { width: 100%; }
.homepage-flow #viz.sp-viz-reel .sp-kicker { justify-content: flex-end; }
.sp-viz-reel__media { position: absolute; inset: 0; background: #000; }
.sp-viz-reel__poster, .sp-viz-reel__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  border: 0;
  border-radius: 0;
  transform: none;
  filter: none;
}
.sp-viz-reel__video { opacity: 0; }
.sp-viz-reel.is-frame-ready .sp-viz-reel__video { opacity: 1; }
.sp-viz-reel__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(270deg, #080e12df 0%, #080e12c7 22%, #080e1280 43%, transparent 76%),
    linear-gradient(180deg, #0d111340, transparent 16%, transparent 84%, #0d111370);
}
.sp-viz-reel__toggle {
  position: absolute;
  z-index: 2;
  left: var(--stage-gutter);
  bottom: 22px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #e7eaea55;
  border-radius: 24px;
  background: #080e12b3;
  color: #e7eaea;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
}
.sp-viz-reel__toggle:focus-visible { outline: 2px solid #b9eef3; outline-offset: 4px; }
.sp-viz-reel__toggle[hidden] { display: none; }
.sp-viz-reel__status {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
/* Tablet: right-hand overlay remains, without magnifying a tall container. */
@media (max-width: 1100px) {
  .homepage-flow #viz.sp-viz-reel { min-height: max(540px, 56.25vw); padding: 56px var(--stage-gutter); }
  .homepage-flow #viz.sp-viz-reel .sp-feature__body {
    width: 58%; max-width: 560px;
  }
  .sp-viz-reel__toggle { left: 16px; bottom: 12px; }
}
/* Narrow portrait: retain the entire wide scene. The right-aligned copy
   starts over its lower fade and continues on the same dark background. */
@media (max-width: 700px) {
  .homepage-flow #viz.sp-viz-reel {
    min-height: 0;
    padding: max(140px, calc(56.25vw - 58px)) var(--stage-gutter) 76px;
    align-items: flex-end;
  }
  .homepage-flow #viz.sp-viz-reel .sp-feature__body { width: 100%; max-width: 560px; }
  .sp-viz-reel__poster, .sp-viz-reel__video {
    height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  }
  .sp-viz-reel__media { background: #0d1113; }
  .sp-viz-reel__media::after {
    background:
      linear-gradient(180deg, transparent 0, #0d111300 max(45px, calc(56.25vw - 120px)), #0d1113 calc(56.25vw + 36px)),
      linear-gradient(270deg, #080e1270, transparent 70%);
  }
  .homepage-flow #viz.sp-viz-reel .sp-kicker { margin-bottom: 14px; }
  .homepage-flow #viz.sp-viz-reel .sp-badge { margin-bottom: 14px; }
  .homepage-flow #viz.sp-viz-reel .sp-feature__text { font-size: 16px; line-height: 1.55; }
}
