/* Modern Web Guidance — visible visitor polish (MPA). */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

.site-scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--color-link, #2563eb);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes site-grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    .site-scroll-progress {
      animation: site-grow-progress auto linear;
      animation-timeline: scroll();
    }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes site-reveal-in {
      from {
        opacity: 0.4;
        transform: translateY(1rem);
      }
    }

    .landing .panel,
    .landing__shelf,
    .landing__cta,
    .site-reveal {
      animation: site-reveal-in auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

.landing .panel,
.landing__shelf {
  content-visibility: auto;
  contain-intrinsic-size: auto 24rem;
}

html {
  scroll-padding-top: 4.5rem;
}
