/* Content is visible by default, including before the observer runs. */
.mast nav a {
  position: relative;
}
.mast nav a::after {
  content: '';
  position: absolute;
  inset: auto 10px 3px;
  height: 2px;
  background: #66806b;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}
.mast nav a[aria-current='location']::after,
.mast nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 740px) {
  .mast nav a::after {
    bottom: 3px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes chapter-arrive {
    from {
      opacity: 0.56;
      translate: 0 15px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  #restock .hero-intro,
  #restock .hero-actions,
  #restock .stage,
  .enter-chapter {
    animation: chapter-arrive 620ms cubic-bezier(0.2, 0.72, 0.24, 1) backwards;
  }
  #restock .hero-actions {
    animation-delay: 80ms;
  }
  #restock .stage,
  .about-copy.enter-chapter {
    animation-delay: 150ms;
  }
  .mast nav a::after {
    transition: transform 180ms ease-out;
  }
  [data-intent='pilot'] {
    --arrow-lift: 0px;
  }
  :is(.button, .nav-cta) > span[aria-hidden] {
    transition: translate 200ms ease-out;
  }
  :is(.button, .nav-cta):focus-visible > span[aria-hidden] {
    translate: 2px var(--arrow-lift, -2px);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  :is(.button, .nav-cta):hover > span[aria-hidden] {
    translate: 2px var(--arrow-lift, -2px);
  }
}
