.work-scrub-stage {
  --work-scrub-edge: #efeee8;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: #f7f6f1;
  cursor: ew-resize;
}

.work-scrub-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  background: #000;
  opacity: .86;
  pointer-events: none;
  transition: none !important;
}

.work-scrub-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .05) 34%, rgba(0, 0, 0, .05) 66%, rgba(0, 0, 0, .58));
}

.work-scrub-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-scrub-stage .work-heading {
  flex: 1 1 auto;
  padding-inline: 1.25rem !important;
  color: #f7f6f1 !important;
  border-color: rgba(255, 255, 255, .68) !important;
}

.work-scrub-stage .work-heading h2,
.work-scrub-stage .work-heading > p,
.work-scrub-stage .section-number {
  color: #f7f6f1 !important;
}

.work-scrub-stage .filters {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 1.25rem 1rem;
  border-color: rgba(255, 255, 255, .68) !important;
}

.work-scrub-stage .filter {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .5) !important;
  background: rgba(0, 0, 0, .36) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work-scrub-stage .filter:is(:hover, :focus-visible, .active) {
  color: #111 !important;
  border-color: #fff !important;
  background: #fff !important;
}

body.theme-dark .work-scrub-stage,
html.theme-dark-preload .work-scrub-stage {
  --work-scrub-edge: #161918;
  background: #000;
  color: #f7f6f1;
}

@media (min-width: 701px) {
  .work-scrub-stage .work-heading {
    padding-top: clamp(2.5rem, 3.4vw, 4rem) !important;
  }
}

@media (min-width: 1100px) {
  .work-scrub-stage .filters {
    width: 84%;
    margin-inline: auto !important;
    padding-inline: 0;
  }
}

@media (max-width: 700px) {
  .work {
    scroll-margin-top: 12.5rem;
  }

  .work-scrub-stage {
    height: 28rem;
    min-height: 28rem;
    aspect-ratio: auto;
  }

  .work-scrub-video {
    object-fit: cover;
    object-position: 50% 100%;
    transform: scale(1.18);
    transform-origin: 50% 100%;
  }

  .work-scrub-stage .work-heading {
    position: relative;
    padding-inline: 1rem !important;
  }

  .work-scrub-stage .work-heading h2 {
    position: absolute;
    top: 2rem;
    left: 1rem;
    margin: 0 !important;
  }

  .work-scrub-stage .work-heading > p:last-child {
    grid-column: 3;
    justify-self: end;
  }

  .work-scrub-stage .filters {
    padding: 0 1rem 3.2rem !important;
  }

  .work-scrub-stage::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .08) 38%, rgba(0, 0, 0, .08) 63%, rgba(0, 0, 0, .54));
  }

  .work-scrub-stage::before {
    content: "";
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3rem;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--work-scrub-edge));
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-scrub-stage {
    cursor: default;
  }
}
