@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("compass.svg") 16 16, auto;
  }

  :is(a, button, summary) {
    cursor: url("compass-link.svg") 16 16, pointer;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * {
    animation: enter 1.2s cubic-bezier(.2,.65,.25,1) both;
  }

  .hero .wrap > :nth-child(2) { animation-delay: .12s; }
  .hero .wrap > :nth-child(3) { animation-delay: .24s; }
  .hero .wrap > :nth-child(4) { animation-delay: .36s; }

  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 36%, #ffd2951a 54%, transparent 70%);
    animation: light-pass 2.2s ease-out both;
  }

  .section, .columns section {
    scroll-margin-block-start: 2rem;
  }

  .button {
    transition: transform .22s ease, box-shadow .22s ease;
  }

  .button:is(:hover, :focus-visible) {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px #0004;
  }

  @supports (animation-timeline: view()) {
    :is(.section, .columns section) > :is(h2, p, .grid, .actions, div, img) {
      animation: enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}

@keyframes enter {
  from { opacity: .15; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes light-pass {
  from { transform: translateX(-75%); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translateX(55%); opacity: 0; }
}
