/* Airflow is decorative and applies only to the real Apricity AC-H product image.
   The existing image crop, placement, transforms and captions stay unchanged. */
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])){
  --ap-air-top:64%;
  --ap-air-bottom:8%;
  position:relative;
  isolation:isolate;
}
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::before,
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::after{
  content:"";
  position:absolute;
  z-index:1;
  top:var(--ap-air-top);
  bottom:var(--ap-air-bottom);
  left:20%;
  right:20%;
  pointer-events:none;
  border:0;
}
/* A quiet pool of warm light anchors the moving, hairline streams. */
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::before{
  background:radial-gradient(ellipse at 50% 82%,#ffb66c2e 0%,#ffd8aa15 38%,transparent 73%);
  opacity:.8;
  transform-origin:center top;
  animation:ap-product-air-glow 6s ease-in-out infinite;
}
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::after{
  background-image:
    linear-gradient(transparent,#c78b4e80 30%,#dfa46138 68%,transparent),
    linear-gradient(transparent,#c78b4e6b 35%,#dfa4612b 70%,transparent),
    linear-gradient(transparent,#d29a588c 30%,#dfa46138 72%,transparent),
    linear-gradient(transparent,#c78b4e70 32%,#dfa46130 69%,transparent),
    linear-gradient(transparent,#d29a588c 30%,#dfa46138 72%,transparent),
    linear-gradient(transparent,#c78b4e6b 35%,#dfa4612b 70%,transparent),
    linear-gradient(transparent,#c78b4e80 30%,#dfa46138 68%,transparent);
  background-size:1.5px 76px;
  background-repeat:repeat-y;
  background-position:5% 0,20% -28px,35% -46px,50% -12px,65% -38px,80% -58px,95% -20px;
  mask-image:linear-gradient(transparent,#000 14%,#000 66%,transparent);
  -webkit-mask-image:linear-gradient(transparent,#000 14%,#000 66%,transparent);
  opacity:.88;
  animation:ap-product-air-stream 3.8s linear infinite;
}
/* These two frames contain a shorter image; keep the effect above their caption. */
.apd-hero-visual:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])){--ap-air-top:65%;--ap-air-bottom:19%}
.apd-card-image:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])){--ap-air-top:64%;--ap-air-bottom:6%}
.apd-hero-visual:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])) figcaption{position:absolute;bottom:16px;left:20px;right:20px;margin:0;z-index:2}

/* Emphasize the link without changing any image or card transform. */
.ah-product-image-link:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])){transition:border-color .25s ease,box-shadow .25s ease}
@media(hover:hover){
  .ah-product-image-link:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])):hover,
  .ah-product-image-link:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])):focus-visible{border-color:#dca76d;box-shadow:0 8px 28px #a9672114}
  :is(.ah-product-image-link,.apd-product-card):hover :is(.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::after,
  .ah-product-image-link:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])):hover::after{opacity:1}
}
@keyframes ap-product-air-stream{
  to{background-position:5% 76px,20% 48px,35% 30px,50% 64px,65% 38px,80% 18px,95% 56px}
}
@keyframes ap-product-air-glow{
  0%,100%{opacity:.65;transform:scaleX(.94)}
  50%{opacity:.95;transform:scaleX(1.06)}
}
/* The homepage hero leaving the viewport must not stop a visible product panel. */
.ah-home:is(.ah-motion-user-paused,.ah-motion-reduced) :is(.ah-product-image-link,.ap-download-cover):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::before,
.ah-home:is(.ah-motion-user-paused,.ah-motion-reduced) :is(.ah-product-image-link,.ap-download-cover):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::after{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
  :is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::before,
  :is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"]))::after{animation:none!important;display:none!important}
  .ah-product-image-link:has(img:is([src$="/apricity-ac-h-standard.webp"],[data-product-render="standard"])){transition:none!important}
}
/* Product outlet coordinates are measured after the image loads and on resize. */
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="apricity-ac-h-standard.webp"],[data-product-render="standard"]))::before,
:is(.ah-product-image-link,.ap-download-cover,.apd-hero-visual,.apd-card-image):has(img:is([src$="apricity-ac-h-standard.webp"],[data-product-render="standard"]))::after{
  top:var(--ap-air-top);bottom:auto;left:var(--ap-air-left,20%);right:var(--ap-air-right,20%);height:var(--ap-air-height,0);visibility:hidden;
}
[data-ap-air-aligned="true"]::before,[data-ap-air-aligned="true"]::after{visibility:visible!important}
@keyframes ap-product-air-glow{0%,100%{opacity:.8;transform:scaleX(.98)}50%{opacity:.9;transform:scaleX(1.02)}}
