/* ========================================================
  Motion Tuning Overrides
  Purpose:
  - Reduce "antigravity" motion site-wide by ~75%
  - Reduce motion further on Blog + Platform pages by ~95%
  Notes:
  - Scoped to no-preference so prefers-reduced-motion remains fully respected.
  - Loaded last (see functions.php) so it can override defaults safely.
  ======================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Reading focus: reduce ambient canvas intensity on Blog + Platform pages. */
  body.page-blog,
  body.page-platform,
  body.page-template-page-blog,
  body.page-template-page-platform,
  body.page-template-page-blog-php,
  body.page-template-page-platform-php {
    --aiwp-ambient-canvas-opacity: 0.28;
    --aiwp-ambient-canvas-opacity-light: 0.22;
    --aiwp-ambient-canvas-opacity-dark: 0.28;
  }

  /* Global tuning: original translate was 20px → 5px (75% reduction). */
  .animate-me {
    transform: translateY(5px);
  }

  .animate-on-scroll {
    transform: translateY(5px);
  }

  /* Ensure visible state always lands at rest. */
  .animate-on-scroll.is-visible {
    transform: translateY(0);
  }

  /* Blog + Platform pages: 20px → 1px (95% reduction). */
  body.page-blog .animate-me,
  body.page-blog .animate-on-scroll,
  body.page-platform .animate-me,
  body.page-platform .animate-on-scroll,
  body.page-template-page-blog .animate-me,
  body.page-template-page-blog .animate-on-scroll,
  body.page-template-page-platform .animate-me,
  body.page-template-page-platform .animate-on-scroll,
  body.page-template-page-blog-php .animate-me,
  body.page-template-page-blog-php .animate-on-scroll,
  body.page-template-page-platform-php .animate-me,
  body.page-template-page-platform-php .animate-on-scroll {
    transform: translateY(1px);
  }
}
