.site-header {
  transition: background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.site-header.is-scrolled {
  background: rgba(246, 243, 238, .96);
  border-color: rgba(32, 35, 37, .1);
  box-shadow: 0 14px 38px rgba(32, 35, 37, .12);
}

.motion-card,
#products article,
#cases article,
#service article {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .45s ease, box-shadow .45s ease;
  will-change: transform;
}

.motion-img,
#products article > img,
#cases article img,
#service article > img {
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .8s ease, opacity .8s ease;
  will-change: transform;
}

#products article::after,
#cases article::after,
#service article::after,
.motion-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(232, 56, 16, .08), transparent 42%, rgba(32, 35, 37, .08));
  transition: opacity .45s ease;
}

#cases article,
#service article {
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .motion-card:hover,
  #products article:hover,
  #cases article:hover,
  #service article:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 56, 16, .42);
  }

  #products article:hover > img,
  #cases article:hover img,
  #service article:hover > img,
  .motion-img:hover,
  .motion-card:hover .motion-img {
    transform: scale(1.035);
    filter: contrast(1.04) saturate(.98);
  }

  #products article:hover::after,
  #cases article:hover::after,
  #service article:hover::after,
  .motion-mask:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .motion-card,
  .motion-img,
  #products article,
  #cases article,
  #service article,
  #products article > img,
  #cases article img,
  #service article > img,
  .reveal {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
  }
}
