/* Static About-page counterpart of src/components/BrandMotion.css. */
.brand-motion {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: middle;
}

.brand-motion > img {
  display: block;
}

.brand-motion > .brand-motion-glint {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  pointer-events: none;
  background-image: linear-gradient(
    112deg,
    transparent 35%,
    rgb(255 255 255 / 0.12) 43%,
    rgb(255 255 255 / 0.7) 49%,
    rgb(255 255 255 / 0.16) 55%,
    transparent 63%
  );
  background-size: 250% 100%;
  background-position: 160% 0;
  background-repeat: no-repeat;
  mask-image: var(--brand-motion-image);
  mask-mode: alpha;
  mask-size: var(--brand-motion-fit, contain);
  mask-position: var(--brand-motion-position, center);
  mask-repeat: no-repeat;
  opacity: 0;
}

.brand-motion[data-brand-mask="ink"] > .brand-motion-glint {
  mask-image: var(--brand-motion-image), var(--brand-motion-image);
  mask-mode: alpha, luminance;
  mask-composite: subtract;
}

@media screen {
  .brand-motion > .brand-motion-glint {
    animation: brand-motion-glint 5.3s ease-in-out infinite;
    animation-delay: var(--brand-motion-phase, 0s);
    animation-play-state: paused;
  }

  .brand-motion[data-pgm-motion="playing"] > .brand-motion-glint {
    animation-play-state: running;
  }
}

@keyframes brand-motion-glint {
  0%,
  10% {
    opacity: 0;
    background-position: 160% 0;
  }
  20% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    background-position: -60% 0;
  }
  70%,
  100% {
    opacity: 0;
    background-position: -60% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(html:not([data-site-motion="playing"])) .brand-motion > .brand-motion-glint {
    display: none;
    animation: none;
  }
}

@media print {
  .brand-motion > .brand-motion-glint {
    display: none;
  }
}

@media screen {
  .ambient-ready[data-motion="playing"]
    .brand-motion[data-ambient="visible"]
    > .brand-motion-glint {
    animation-play-state: running;
  }
}
.nav-brand-art .brand-motion {
  --brand-motion-position: left center;
}
