/* =========================================================
   Subtle page and scroll reveals
   ========================================================= */

html.reveal-enabled :where(
  [data-reveal],
  .hero-copy,
  .hero-media,
  .logos-section > .wrap,
  body > .section > .wrap,
  main > section > .wrap,
  .legal-card,
  .blog-article-header > .blog-article-shell,
  .blog-article-header > .blog-article-media,
  .blog-article-body > .blog-article-shell,
  .blog-related > .blog-article-shell
) {
  opacity: 0;
  transition: opacity 0.68s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity;
}

html.reveal-enabled :where(
  [data-reveal],
  .hero-copy,
  .hero-media,
  .logos-section > .wrap,
  body > .section > .wrap,
  main > section > .wrap,
  .legal-card,
  .blog-article-header > .blog-article-shell,
  .blog-article-header > .blog-article-media,
  .blog-article-body > .blog-article-shell,
  .blog-related > .blog-article-shell
).is-revealed {
  opacity: 1;
  will-change: auto;
}

@media (max-width: 620px) {
  html.reveal-enabled :where(
    [data-reveal],
    .hero-copy,
    .hero-media,
    .logos-section > .wrap,
    body > .section > .wrap,
    main > section > .wrap,
    .legal-card,
    .blog-article-header > .blog-article-shell,
    .blog-article-header > .blog-article-media,
    .blog-article-body > .blog-article-shell,
    .blog-related > .blog-article-shell
  ) {
    transition-duration: 0.58s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-enabled :where(
    [data-reveal],
    .hero-copy,
    .hero-media,
    .logos-section > .wrap,
    body > .section > .wrap,
    main > section > .wrap,
    .legal-card,
    .blog-article-header > .blog-article-shell,
    .blog-article-header > .blog-article-media,
    .blog-article-body > .blog-article-shell,
    .blog-related > .blog-article-shell
  ) {
    opacity: 1;
    transition: none;
  }
}
