.hlat-ease {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.hlat-grain {
  background-image: radial-gradient(70% 60% at 15% 10%, rgb(232 181 58 / 0.18), transparent 60%), radial-gradient(60% 50% at 90% 90%, rgb(36 64 122 / 0.55), transparent 70%);
}

.hlat-puzzle-outline {
  position: absolute;
  inset: 1.5rem;
  z-index: 1;
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  color: #f3d68a;
  opacity: 0.58;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgb(15 31 61 / 0.45));
}

.hlat-puzzle-outline path {
  vector-effect: non-scaling-stroke;
}

.hlat-pre {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hlat-pre.is-visible {
  opacity: 1;
  transform: none;
}

.hlat-tilt-wrap {
  perspective: 1400px;
}

.hlat-marquee-track {
  width: max-content;
}

@keyframes hlat-grow {
  from {
    clip-path: inset(0 4% 0 4% round 2rem);
  }
  to {
    clip-path: inset(0 0 0 0 round 0);
  }
}

@keyframes hlat-mask {
  from {
    clip-path: inset(14% 10% 14% 10% round 1.25rem);
    filter: saturate(0.6);
  }
  to {
    clip-path: inset(0 0 0 0 round 0);
    filter: saturate(1);
  }
}

@keyframes hlat-straighten {
  from {
    transform: rotateX(18deg) scale(0.93);
    opacity: 0.6;
  }
  to {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes hlat-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hlat-marquee-track {
    animation: hlat-marquee 40s linear infinite;
  }
  .hlat-marquee:hover .hlat-marquee-track,
  .hlat-marquee:focus-within .hlat-marquee-track {
    animation-play-state: paused;
  }
}

@media (max-width: 640px) {
  .hlat-puzzle-outline {
    inset: 0.75rem;
    width: calc(100% - 1.5rem);
    height: calc(100% - 1.5rem);
    opacity: 0.46;
  }
}

@media (forced-colors: active) {
  .hlat-puzzle-outline {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hlat-hero-frame {
      animation: hlat-grow linear both;
      animation-timeline: scroll(root);
      animation-range: 0 60vh;
    }
    .hlat-mask {
      animation: hlat-mask linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .hlat-straighten {
      transform-origin: 50% 100%;
      animation: hlat-straighten linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

