/* Only JavaScript-marked regions participate; content is visible by default. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    translate: 0 0;
    transition: opacity .7s cubic-bezier(.2, .65, .25, 1) var(--reveal-delay, 0ms),
      translate .7s cubic-bezier(.2, .65, .25, 1) var(--reveal-delay, 0ms);
  }

  .scroll-reveal.application-card {
    transition: background .2s ease 0s,
      opacity .7s cubic-bezier(.2, .65, .25, 1) var(--reveal-delay, 0ms),
      translate .7s cubic-bezier(.2, .65, .25, 1) var(--reveal-delay, 0ms);
  }

  .scroll-reveal.is-reveal-pending {
    opacity: 0;
    translate: 0 20px;
    pointer-events: none;
  }

  @media (max-width: 760px) {
    .scroll-reveal.is-reveal-pending { translate: 0 14px; }
  }

  @media (max-width: 540px) {
    .scroll-reveal.application-card { transition-delay: 0s; }
  }

  .scroll-reveal:focus-within {
    opacity: 1;
    translate: 0 0;
    pointer-events: auto;
    transition: none !important;
  }
}

.scroll-reveal.reveal-instant { transition: none !important; }

/* Accessibility and printed output must never depend on reveal state. */
@media (prefers-reduced-motion: reduce), print {
  .scroll-reveal {
    opacity: 1 !important;
    translate: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}
