/* Homepage services sequence. ScrollTrigger owns pinning; this must not be sticky. */
.agency-sequence {
  position: relative;
  isolation: isolate;
  width: 100%;
  color: var(--rr-common-white, #fff);
  background: var(--rr-heading-primary, #080808);
  border-radius: inherit;
}

.agency-sequence__sticky {
  position: relative;
  z-index: 1;
  width: 100%;
}

.h1-about2__thumb--sequence {
  isolation: isolate;
  background: var(--rr-heading-primary, #080808);
}

.h1-about2__thumb--sequence.pin-spacer,
.h1-about2__thumb--sequence .pin-spacer {
  overflow: visible !important;
}

.agency-sequence__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 707;
  overflow: hidden;
  background: var(--rr-heading-primary, #080808);
  border-radius: inherit;
}

.h1-about2__thumb .agency-sequence :is(.agency-sequence__poster, .agency-sequence__canvas, .agency-sequence__fallback) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: contain;
}

.agency-sequence__poster {
  z-index: 1;
  visibility: visible;
}

.agency-sequence__canvas {
  z-index: 2;
  opacity: 0;
}

.agency-sequence__fallback {
  z-index: 3;
  display: none !important;
}

.h1-about > .agency-sequence + .banner-4__capsol__content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.h1-about > .agency-sequence.is-animating + .banner-4__capsol__content,
.h1-about > .agency-sequence.is-static + .banner-4__capsol__content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.agency-sequence.is-ready .agency-sequence__poster {
  visibility: hidden;
}

.agency-sequence.is-ready .agency-sequence__canvas {
  opacity: 1;
}

.agency-sequence.is-static :is(.agency-sequence__poster, .agency-sequence__canvas) {
  display: none;
}

.h1-about2__thumb .agency-sequence.is-static .agency-sequence__fallback {
  display: block !important;
}

/* Keep the existing draggable service labels and meeting card over the sequence. */
.h1-about2__thumb--sequence .h1-about > .banner-4__capsol__content {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  margin: 0;
}

.h1-about2__thumb--sequence > .h1-about2__thumb-text {
  z-index: 5;
}

@media (max-height: 640px) and (min-width: 768px) {
  .agency-sequence__stage {
    max-height: 100svh;
  }
}

@media (max-width: 767px) {
  .h1-about2__thumb--sequence > .h1-about2__thumb-text {
    position: absolute !important;
    top: -4px !important;
    left: 0 !important;
    width: min(100%, 430px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-sequence :is(.agency-sequence__poster, .agency-sequence__canvas) {
    display: none;
  }

  .h1-about2__thumb .agency-sequence .agency-sequence__fallback {
    display: block !important;
  }
}
