html::before {
  content: "";
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.72);
}

html.is-navigating::before {
  opacity: 1;
  animation: navigation-progress 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

a[href],
button {
  -webkit-tap-highlight-color: transparent;
}

a[href]:active,
button:active {
  filter: brightness(0.82);
}

a[data-navigation-pending="true"] {
  opacity: 0.62;
}

@keyframes navigation-progress {
  0% {
    transform: scaleX(0.08);
  }

  45% {
    transform: scaleX(0.72);
  }

  100% {
    transform: scaleX(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-navigating::before {
    animation: none;
    transform: scaleX(0.85);
  }
}
