.crimson-hero-atmosphere, .crimson-motion-control { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .crimson-hero-atmosphere {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }
  .crimson-hero-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0 0 0 74%;
    background: radial-gradient(ellipse at 85% 40%, #ffba633d, transparent 68%);
    mix-blend-mode: screen;
    animation: flame-glow 4.4s ease-in-out infinite;
  }
  .crimson-hero-atmosphere span {
    position: absolute;
    bottom: 16%;
    right: 9%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffca82;
    box-shadow: 0 0 7px 2px #ff9d56b3;
    animation: rising-ember 6s linear infinite;
  }
  .crimson-hero-atmosphere span:nth-child(2) { right: 13%; animation-delay: -2s; width: 3px; height: 3px; }
  .crimson-hero-atmosphere span:nth-child(3) { right: 6%; animation-delay: -3.7s; }
  .crimson-hero-atmosphere span:nth-child(4) { right: 11%; animation-delay: -4.8s; width: 2px; height: 2px; }
  .crimson-motion-control {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .75rem;
    color: #f5e6cc;
    font: .8rem/1.3 system-ui, sans-serif;
    cursor: pointer;
  }
  .crimson-motion-control input { accent-color: #dfb978; }
  .crimson-hero:has(.crimson-motion-control input:checked) .crimson-hero-atmosphere { display: none; }
}
@keyframes flame-glow {
  0%, 100% { opacity: .25; }
  38% { opacity: 1; }
  58% { opacity: .5; }
  72% { opacity: .87; }
}
@keyframes rising-ember {
  0% { opacity: 0; transform: translate(0, 0); }
  23% { opacity: .8; }
  76% { opacity: .4; }
  100% { opacity: 0; transform: translate(-1.15rem, -5rem); }
}
