@media (prefers-reduced-motion: no-preference) {
  main:not(.crimson-home main) h1 {
    animation: warm-heading-light 4.5s ease-in-out both;
  }

  .author-hero img,
  .raven-banner,
  .garden-hero,
  .journal-hero,
  .beyond-hero,
  .contact-hero {
    animation: warm-artwork-light 4.5s ease-in-out both;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.author-world-grid, .crimson-features, .garden-art, .raven-display figure) a img,
  :is(.crimson-features, .garden-art) > img {
    transition: transform 260ms ease-out;
  }

  :is(.author-world-grid, .crimson-features, .raven-display figure) a:hover img,
  .garden-art:hover > img {
    transform: translateY(-3px);
  }
}

@keyframes warm-heading-light {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  45% { text-shadow: 0 0 1.3rem #e6a05360; }
}

@keyframes warm-artwork-light {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  45% { filter: drop-shadow(0 0 .65rem #e6a05342); }
}

.site-hero-embers, .hero-motion-switch { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-with-embers { position: relative; isolation: isolate; }
  .site-hero-embers {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
  }
  .site-hero-embers span {
    position: absolute;
    bottom: 12%;
    right: 12%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffcf88;
    box-shadow: 0 0 8px 2px #ff8c4cbf;
    animation: site-ember-drift 6s linear infinite;
  }
  .site-hero-embers span:nth-child(2) { right: 19%; animation-delay: -1.2s; }
  .site-hero-embers span:nth-child(3) { right: 8%; animation-delay: -2.4s; width: 3px; height: 3px; }
  .site-hero-embers span:nth-child(4) { right: 24%; animation-delay: -3.6s; }
  .site-hero-embers span:nth-child(5) { right: 15%; animation-delay: -4.8s; width: 3px; height: 3px; }
  .hero-motion-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .35rem;
    min-height: 36px;
    padding: .25rem 5%;
    color: #e8dfce;
    background: #101010;
    font: .8rem/1.3 system-ui, sans-serif;
    cursor: pointer;
  }
  .hero-motion-switch input { accent-color: #dfb978; }
  .hero-with-embers:has(+ .hero-motion-switch input:checked) .site-hero-embers { display: none; }
}
@keyframes site-ember-drift {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .85; }
  75% { opacity: .5; }
  100% { opacity: 0; transform: translate(-2rem, -6rem); }
}
