/* Progressive enhancement: every element is visible without the opt-in script. */
.has-reveal-motion [data-motion-state="pending"] {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .has-page-motion .hero-nav {
    animation: tripkos-hero-fade 650ms cubic-bezier(.25, .1, .25, 1) both;
  }
  .has-page-motion .header30_intro h1 {
    animation: tripkos-hero-rise 950ms 180ms cubic-bezier(.25, .1, .25, 1) both;
  }
  .has-page-motion .header30_intro p {
    animation: tripkos-hero-rise 1050ms 340ms cubic-bezier(.25, .1, .25, 1) both;
  }
  .has-page-motion .header30_intro .button-group {
    animation: tripkos-hero-rise 1050ms 500ms cubic-bezier(.25, .1, .25, 1) both;
  }
  .has-page-motion .header30_background-image-wrapper {
    overflow: hidden;
  }
  .has-page-motion .header30_background-image {
    animation: tripkos-hero-landscape 1600ms cubic-bezier(.25, .1, .25, 1) both;
  }
  .has-page-motion .hero-nav:focus-within,
  .has-page-motion .header30_intro:focus-within :is(h1, p, .button-group) {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal-motion [data-motion-state="pending"] { opacity: 1; }
}

@keyframes tripkos-hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tripkos-hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes tripkos-hero-landscape {
  from { opacity: .65; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
