/* IZON animated product icons (owner, 21 Nov: the icons "glow, shift colour and move").
   Same motion as the phone (CoreBaseLow/IconMotion92.swift): breathing glow 4 s, colour shift 12 s (at most 14 degrees), float 6 s
   (1.2% of the size), a glass sheen across the icon once every 7 s (1.2 s). prefers-reduced-motion shows the still icon.
   Markup:
     <span class="izon-icon" style="--izon-icon-size:64px; --izon-icon-src:url('icons/izon-icon-creator-512.png')">
       <img src="icons/izon-icon-creator-512.png" alt="IZON Creator" width="64" height="64">
     </span>
   The <img> is the icon (alt text, works without CSS); the glow and sheen are drawn from --izon-icon-src.
   Keep this file in the same folder as the pages that use it: a url() inside --izon-icon-src is resolved from this CSS file. */
.izon-icon {
  --izon-icon-size: 64px;
  position: relative;
  display: inline-block;
  width: var(--izon-icon-size);
  height: var(--izon-icon-size);
  flex: none;
  vertical-align: middle;
  animation: izon-icon-float 6s ease-in-out infinite, izon-icon-hue 12s ease-in-out infinite;
  will-change: transform, filter;
}
.izon-icon > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  animation: izon-icon-breath-scale 4s ease-in-out infinite;
}
.izon-icon::before {                     /* the breathing glow: a soft copy behind */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--izon-icon-src) center / contain no-repeat;
  filter: blur(calc(var(--izon-icon-size) * 0.07));
  transform: scale(1.05);
  opacity: 0.35;
  animation: izon-icon-glow 4s ease-in-out infinite;
  pointer-events: none;
}
.izon-icon::after {                      /* the shimmer: a glass sheen that sweeps across the icon face */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.30) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-mask: var(--izon-icon-src) center / contain no-repeat;
  mask: var(--izon-icon-src) center / contain no-repeat;
  mask-mode: alpha;
  mix-blend-mode: plus-lighter;
  animation: izon-icon-shimmer 7s linear infinite;
  pointer-events: none;
}
@keyframes izon-icon-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.75; } }
@keyframes izon-icon-breath-scale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes izon-icon-hue { 0%, 100% { filter: hue-rotate(0deg); } 25% { filter: hue-rotate(14deg); } 75% { filter: hue-rotate(-14deg); } }
@keyframes izon-icon-float { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-1.2%); } 75% { transform: translateY(1.2%); } }
@keyframes izon-icon-shimmer { 0% { background-position: 160% 0; } 17.14% { background-position: -60% 0; } 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) {
  .izon-icon, .izon-icon > img, .izon-icon::before, .izon-icon::after { animation: none; }
  .izon-icon::after { display: none; }
}
