/* Staging presentation layer: stable media, progressive blocks, quiet motion. */
:root {
  --apiac-skeleton: #e9eef2;
  --apiac-focus: #0799b7;
}

html {
  scroll-behavior: smooth;
}

.performance-picture {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--apiac-skeleton);
}

.performance-picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.u-banner .i > .performance-picture {
  aspect-ratio: 144 / 70;
  max-height: 710px;
}

.u-banner.site .i > .performance-picture {
  height: 700px;
  max-height: none;
}

.performance-media {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(110deg, #edf1f4 8%, #f7f9fa 18%, #edf1f4 33%);
  background-size: 200% 100%;
  animation: apiac-skeleton 1.2s linear infinite;
}

/* Keep the original card geometry: the featured news image is wider than 5:3. */
.performance-media > .performance-picture {
  height: 100%;
}

.performance-media.is-ready {
  animation: none;
  background: #e9eef2;
}

.performance-media img {
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1), opacity 220ms ease;
}

.performance-media:hover img {
  transform: scale(1.025) translateZ(0);
}

[data-performance-block] {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

@keyframes apiac-skeleton {
  to { background-position-x: -200%; }
}

@media (max-width: 768px) {
  .u-banner .i > .performance-picture,
  .u-banner.site .i > .performance-picture {
    height: 250px;
    max-height: 250px;
    aspect-ratio: auto;
  }

  [data-performance-block] {
    contain-intrinsic-size: auto 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .performance-media { animation: none; }
  .performance-media img { transition: none; }
}
