/**
 * AJVESTOR homepage: let the architectural video / HD fallback image read
 * clearly, with only a feathered local scrim behind the centered hero copy.
 * Applied exclusively to the English and Swedish homepages.
 */
body:is(.page-id-5550,.page-id-8758) .ajv-home-hero > .ajv-home-hero-shade {
  /* The original hero uses a uniform ~67% black layer over its static image. */
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body:is(.page-id-5550,.page-id-8758) .ajv-home-hero .ajv-home-hero-copy {
  position: relative;
  isolation: isolate;
}
body:is(.page-id-5550,.page-id-8758) .ajv-home-hero .ajv-home-hero-copy::before {
  /* No visible box or hard edge, just enough local contrast for white text.
     The same scrim remains present above a moving video or the fallback image. */
  content: "" !important;
  position: absolute;
  inset: -46px -76px -46px -76px !important;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(4,7,11,.61) 0%,
    rgba(4,7,11,.45) 35%,
    rgba(4,7,11,.22) 60%,
    rgba(4,7,11,.05) 84%,
    rgba(4,7,11,0) 100%
  ) !important;
  filter: blur(13px);
}
body:is(.page-id-5550,.page-id-8758) .ajv-home-hero .ajv-home-hero-copy :is(h1,.ajv-home-hero-intro) {
  text-shadow: 0 2px 10px rgba(0,0,0,.30);
}

@media (max-width: 767px) {
  body:is(.page-id-5550,.page-id-8758) .ajv-home-hero .ajv-home-hero-copy::before {
    inset: -38px -24px -38px -24px !important;
    background: radial-gradient(ellipse at center,
      rgba(4,7,11,.65) 0%,
      rgba(4,7,11,.47) 38%,
      rgba(4,7,11,.20) 72%,
      rgba(4,7,11,0) 100%
    ) !important;
    filter: blur(11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Contrast remains static even when video/autoplay is suppressed. */
  body:is(.page-id-5550,.page-id-8758) .ajv-home-hero .ajv-home-hero-copy::before {
    transition: none !important;
    animation: none !important;
  }
}
