/* Put the decorative guide between the existing section backgrounds and copy. */
.home-owl-active #main-content > section > .section-shell,
.home-owl-active .site-footer > .section-shell {
  position: relative;
  z-index: 3;
}

.home-owl-active #main-content > :is(.about-agency, .knowledge-home) {
  isolation: auto;
}

.home-owl-active #main-content > .hero--reel {
  z-index: 3;
}

.home-owl {
  --home-owl-size: 53px;
  position: fixed;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 680px) {
  .home-owl { --home-owl-size: 83px; }
}

@media (min-width: 1025px) {
  .home-owl { --home-owl-size: 120px; }
}

@media (min-width: 1440px) {
  .home-owl { --home-owl-size: 128px; }
}

.home-owl[hidden],
.home-owl [hidden] {
  display: none !important;
}

.home-owl *,
.home-owl *::before,
.home-owl *::after {
  pointer-events: none;
}

.home-owl__trail {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.home-owl__puff,
.home-owl__motion {
  position: absolute;
  top: 50%;
  left: 0;
  /* Keep the viewport midpoint independent of the animated X transform. */
  translate: 0 -50%;
}

.home-owl__puff {
  width: calc(var(--home-owl-size) * .65);
  height: calc(var(--home-owl-size) * .46);
  border-radius: 45% 55% 50% 50%;
  background:
    radial-gradient(ellipse at 38% 48%, rgb(0 0 0 / 65%), rgb(0 0 0 / 26%) 40%, transparent 73%),
    radial-gradient(ellipse at 65% 57%, rgb(0 0 0 / 34%), transparent 68%);
  filter: blur(4px);
  opacity: 0;
  transform-origin: center;
}

.home-owl__motion {
  z-index: 1;
  width: var(--home-owl-size);
  aspect-ratio: 1120 / 1178;
  opacity: .62;
  line-height: 0;
  will-change: transform;
}

.home-owl__motion > sichtivo-owl {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: inherit;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 24%));
}

body:is(.intro-open, .contact-pull-open) .home-owl,
body:has([data-nav-toggle][aria-expanded="true"]) .home-owl,
body:has(dialog[open]) .home-owl {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .home-owl__trail { display: none; }
}

@media print {
  .home-owl { display: none !important; }
}
