/* HM78: local main video only. Small service video is deliberately untouched. */
.works-section .hm78-local-media {
  min-width: 0;
  align-self: center;
}
.works-section .hm78-local-media .hm78-works-video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
  border-radius: inherit;
  background: #06151c;
}
.works-section .hm78-local-media .hm78-works-video:focus-visible {
  outline: 3px solid #d7b36a;
  outline-offset: -3px;
}
.works-section .hm78-local-media .hm78-video-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid #d7b36a;
  border-radius: 999px;
  color: #071e34;
  background: linear-gradient(125deg, #e5c786, #d7b36a 60%, #c29a4c);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 5px 18px rgba(215,179,106,.16);
  transition: box-shadow .3s ease;
}
.works-section .hm78-video-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.24) 50%, transparent 70%);
  animation: hm78VideoLinkSheen 16s ease-in-out infinite;
}
.works-section .hm78-video-link:hover {
  transform: none;
  box-shadow: 0 5px 22px rgba(215,179,106,.28);
}
.works-section .hm78-video-link:focus-visible {
  outline: 3px solid #071e34;
  outline-offset: 4px;
}
@keyframes hm78VideoLinkSheen {
  0%, 55% { transform: translateX(-110%); opacity: 0; }
  60% { opacity: 1; }
  85%, 100% { transform: translateX(110%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .works-section .hm78-video-link,
  .works-section .hm78-video-link::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .works-section .hm78-video-link::before { opacity: 0; }
}
