/*
 * JAYTRA - smooth in-page jumps and gentle reveals (owner request, 28 Nov 2026), on the website
 * and the dashboard. Loaded by includes/header.php and dashboard/layout.php; driven by
 * assets/js/scroll.js.
 *
 * - Links within a page glide instead of jumping, and land below the sticky header
 *   (--scroll-offset, measured by scroll.js).
 * - Parts of the page that start BELOW the first screen fade up softly the first time they come
 *   into view. Nothing visible on arrival is ever hidden (no effect on LCP), only opacity and
 *   transform change (no layout shift), and without JavaScript everything is simply shown.
 * - Visitors who ask for less motion (prefers-reduced-motion) get neither effect.
 */
html { scroll-padding-top: var(--scroll-offset, 80px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  html.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
}

@media print {
  html.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
