.flicker {
  animation: heroFlicker 5.5s infinite;
}

.hero__title.is-flickering {
  animation: textJitter 0.18s linear 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes heroFlicker {
  0%, 18%, 22%, 24%, 52%, 57%, 100% {
    opacity: 1;
  }
  20%, 23%, 54% {
    opacity: 0.86;
  }
}

@keyframes textJitter {
  0% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  75% { transform: translateX(-0.5px); }
  100% { transform: translateX(0); }
}

@keyframes navSweep {
  0% {
    transform: translate3d(-18%, -12%, 0);
  }
  50% {
    transform: translate3d(8%, 4%, 0);
  }
  100% {
    transform: translate3d(-18%, -12%, 0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1100px) {
  .hero__content,
  .tracks,
  .timeline,
  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__content {
    min-height: auto;
    padding-top: 30px;
  }
}

@media (max-width: 720px) {
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    width: calc(100% - 32px);
    border-radius: 24px;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav__links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 10px;
    gap: 10px;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    min-height: 40px;
  }

  .hero__banner {
    min-height: 180px;
    padding: 12px;
  }

  .hero__banner img {
    min-height: 156px;
  }
}
