/* A separate cutout and street scene, confined to the Cases opening. */
.cases-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 36px;
}
.cases-hero::before,
.cases-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.cases-hero::before {
  inset: -5px;
  background: url("assets/cases-street-sketch.webp") center bottom / cover no-repeat;
  opacity: .22;
  filter: grayscale(1) invert(1) blur(1.3px);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.cases-hero::after {
  inset: 0;
  background: url("assets/noise.png") repeat;
  mix-blend-mode: soft-light;
  opacity: .08;
}
.cases-hero .page-hero { position: relative; min-height: 580px; }
.cases-hero .page-hero-copy { position: relative; z-index: 1; }
.cases-vehicle {
  --vehicle-offset: clamp(36px, 3.5vw, 56px);
  position: relative;
  min-width: 0;
  pointer-events: none;
  transform: translate3d(var(--vehicle-x, 0px), calc(var(--vehicle-offset) + var(--vehicle-y, 0px)), 0) rotate(var(--vehicle-angle, 0deg));
}
.cases-vehicle img {
  display: block;
  width: 122%;
  max-width: none;
  height: auto;
  margin-left: -18%;
}
:root[data-theme="light"] .cases-hero::before {
  opacity: .3;
  filter: grayscale(1) blur(1.3px);
  mix-blend-mode: multiply;
}
:root[data-theme="light"] .cases-hero::after { mix-blend-mode: multiply; opacity: .035; }
@media (max-width: 1050px) {
  .cases-hero .page-hero { min-height: 470px; }
  .cases-vehicle img { width: 125%; margin-left: -12%; }
}
@media (max-width: 680px) {
  .cases-hero { margin-bottom: 16px; }
  .cases-hero::before { background-size: auto 600px; background-position: 58% bottom; }
  .cases-hero .page-hero { min-height: 0; gap: 28px; padding-bottom: 42px; }
  .cases-vehicle { --vehicle-offset: 0px; width: 100%; justify-self: center; transform: none; }
  .cases-vehicle img { width: 110%; margin-left: -5%; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cases-vehicle { transform: translateY(var(--vehicle-offset)); }
}
