:root {
  --motion-hero-y: 0px;
  --motion-image-y: 0px;
}

.motion-test-ready .hero {
  overflow: hidden;
}

.motion-test-ready .heroMedia {
  transform: translate3d(0, var(--motion-hero-y), 0);
  will-change: transform;
}

.motion-test-ready .motionDepthSurface > .motionDepthLayer {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--motion-image-y), 0) scale(1.016);
  transform-origin: center;
  will-change: transform;
}

.motion-test-ready .motionPhotoReveal > .motionDepthLayer {
  filter:
    brightness(var(--motion-photo-brightness, .54))
    saturate(var(--motion-photo-saturation, .7))
    contrast(var(--motion-photo-contrast, .89));
  transition: none;
  will-change: transform, filter;
}

.motion-test-ready .motionPhotoReveal.motionPhotoRevealHero > .motionDepthLayer {
  filter:
    brightness(var(--motion-photo-brightness, .396))
    saturate(var(--motion-photo-saturation, .66))
    contrast(var(--motion-photo-contrast, .87));
}

.motion-test-ready .motionPhotoReveal.motionPhotoRevealLower > .motionDepthLayer {
  filter:
    brightness(var(--motion-photo-brightness, .53))
    saturate(var(--motion-photo-saturation, .69))
    contrast(var(--motion-photo-contrast, .89));
}

.motion-test-ready .motionPhotoRevealHero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: calc(1 - var(--motion-photo-light, 0));
  background: radial-gradient(circle at 8% 2%, transparent 0 22%, rgba(0, 0, 0, .04) 43%, rgba(0, 0, 0, .16) 78%, rgba(0, 0, 0, .2) 100%);
  transition: none;
}

.motion-test-ready .liveFoh .motionDepthLayer > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.motion-test-ready .motionRevealUnit {
  opacity: .975;
  transform: translate3d(0, 15px, 0);
  transition:
    opacity 420ms cubic-bezier(.22, .68, .28, 1),
    transform 420ms cubic-bezier(.22, .68, .28, 1);
}

.motion-test-ready .motionRevealUnit.motionRevealSettled {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motionPianoGoldPresence img {
  filter: brightness(.88) saturate(.84);
  transition:
    filter 780ms cubic-bezier(.22, .68, .28, 1),
    transform .7s cubic-bezier(.2, .7, .2, 1);
}

.motionPianoGoldPresence.motionPianoGoldPresent img {
  filter: brightness(1) saturate(1);
}

.motionPianoGoldPresence::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    rgba(255, 255, 255, .07) 31%,
    rgba(255, 255, 255, .21) 41%,
    rgba(255, 255, 255, .74) 48%,
    rgba(255, 255, 255, .58) 51%,
    rgba(255, 255, 255, .23) 59%,
    rgba(255, 255, 255, .08) 72%,
    transparent 84%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 46% 100%;
  background-position: -85% 0;
  clip-path: inset(52% 0 0 0);
  mask-image: url('../images/kevin-forbes-pianogold-logo.jpeg');
  mask-mode: luminance;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  transform: none;
}

.motionPianoGoldPresence.motionPianoGoldReflecting::after {
  animation: pianoGoldKeyReflection 9000ms cubic-bezier(.45, .05, .55, .95) 1 both;
}

.motionPianoGoldPresence.motionPianoGoldReflectingReverse::after {
  animation-direction: reverse;
}

.motionPianoGoldPresence.motionPianoGoldReflectionPaused::after {
  animation-play-state: paused;
}

.motionPianoGoldCta {
  position: relative;
}

.motionPianoGoldCta::after {
  content: attr(data-shimmer-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  white-space: nowrap;
  opacity: 0;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 43%,
    rgba(255, 255, 255, .98) 50%,
    transparent 57%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 230% 100%;
  background-position: 145% 0;
  -webkit-background-clip: text;
  background-clip: text;
}

.motionPianoGoldCta.motionPianoGoldCtaReflecting::after {
  animation: pianoGoldCtaReflection 1200ms linear 1 both;
}

@keyframes pianoGoldCtaReflection {
  0% {
    opacity: 0;
    background-position: 145% 0;
  }

  14% { opacity: 1; }
  86% { opacity: 1; }

  100% {
    opacity: 0;
    background-position: -45% 0;
  }
}

@keyframes pianoGoldKeyReflection {
  0% {
    opacity: 0;
    background-position: -85% 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    background-position: 185% 0;
  }
}

@media (max-width: 820px) {
  .motion-test-ready .motionRevealUnit {
    transform: translate3d(0, 12px, 0);
  }

  .motion-test-ready .motionRevealUnit.motionRevealSettled {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-test-ready .heroMedia,
  .motion-test-ready .motionDepthSurface > .motionDepthLayer,
  .motion-test-ready .motionPhotoReveal > .motionDepthLayer,
  .motion-test-ready .motionPhotoReveal.motionPhotoRevealPresent > .motionDepthLayer,
  .motion-test-ready .motionPhotoRevealHero::after,
  .motion-test-ready .motionPhotoRevealHero.motionPhotoRevealPresent::after,
  .motion-test-ready .motionRevealUnit,
  .motion-test-ready .motionRevealUnit.motionRevealSettled,
  .motionPianoGoldPresence img,
  .motionPianoGoldPresence.motionPianoGoldPresent img,
  .motionPianoGoldPresence::after,
  .motionPianoGoldPresence.motionPianoGoldReflecting::after,
  .motionPianoGoldPresence.motionPianoGoldReflectionPaused::after,
  .motionPianoGoldCta::after,
  .motionPianoGoldCta.motionPianoGoldCtaReflecting::after {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    animation: none;
    will-change: auto;
  }

  .motion-test-ready .motionPhotoRevealHero::after,
  .motion-test-ready .motionPhotoRevealHero.motionPhotoRevealPresent::after {
    display: none;
  }

  .motionPianoGoldPresence::after,
  .motionPianoGoldPresence.motionPianoGoldReflecting::after,
  .motionPianoGoldPresence.motionPianoGoldReflectionPaused::after,
  .motionPianoGoldCta::after,
  .motionPianoGoldCta.motionPianoGoldCtaReflecting::after {
    display: none;
  }
}
