.detail-back-control {
  --detail-back-left: -12px;
  --detail-back-surface: rgba(252, 249, 247, 0.85);
  position: relative;
  z-index: 0;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Release both opacity animation layers after entry so the backdrop can
   sample page content. Keep the same animations and final button position. */
.case-study-page:has(.detail-back-control) {
  animation-fill-mode: backwards;
}

.detail-back-control.case-reveal {
  opacity: 1;
  transform: translate(var(--case-offset-x, 0), 0);
  animation-fill-mode: backwards;
}

.case-study-page--aily .aily-case-nav:has(.detail-back-control) {
  background: transparent;
}

.detail-back-control > :is(svg, span) {
  position: relative;
  z-index: 1;
}

.detail-back-control--padded {
  --detail-back-left: 0px;
}

.detail-back-control--white {
  --detail-back-surface: rgba(255, 255, 255, 0.85);
}

.detail-back-control--cool {
  --detail-back-surface: rgba(247, 248, 249, 0.85);
}

.detail-back-control--security {
  --detail-back-surface: rgba(250, 248, 243, 0.85);
}

.detail-back-control::before {
  content: none !important;
}

.detail-back-control::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: var(--detail-back-left);
  width: 110px;
  height: 46px;
  border-radius: 999px;
  background: var(--detail-back-surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateY(-50%);
  pointer-events: none;
}
