/* Elements keep their natural position and remain readable until their first entrance. */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-nrg-arrival="hero"] {
    transform-origin: left bottom;
    animation: nrg-hero-enter 650ms cubic-bezier(.16,.78,.26,1);
  }
  .group-hero h1[data-nrg-arrival="hero"] > span {
    animation: nrg-ink-enter 620ms cubic-bezier(.16,.78,.26,1);
  }
  [data-nrg-arrival="heading"] {
    transform-origin: left bottom;
    animation: nrg-heading-enter 590ms cubic-bezier(.17,.78,.23,1);
  }
  [data-nrg-arrival="card"] {
    transform-origin: center bottom;
    animation: nrg-card-enter 590ms cubic-bezier(.18,.76,.25,1) var(--nrg-entry-delay, 0ms) backwards;
  }
  .eyebrow[data-nrg-arrival="accent"]::before {
    transform-origin: left center;
    animation: nrg-accent-enter 490ms cubic-bezier(.22,.68,.28,1);
  }
  [data-nrg-arrival]:is(:focus-within, :target),
  :target [data-nrg-arrival] { animation: none; }

  @keyframes nrg-hero-enter {
    from { translate: 0 .16em; rotate: x -7deg; }
    to { translate: 0 0; rotate: x 0deg; }
  }
  @keyframes nrg-ink-enter {
    from { translate: -.17em 0; }
    to { translate: 0 0; }
  }
  @keyframes nrg-heading-enter {
    from { opacity: .74; translate: 0 .38em; rotate: x -13deg; }
    to { opacity: 1; translate: 0 0; rotate: x 0deg; }
  }
  @keyframes nrg-card-enter {
    from { opacity: .72; translate: 0 var(--nrg-card-lift, 26px); scale: .968; }
    74% { opacity: 1; translate: 0 -1px; scale: 1.002; }
    to { opacity: 1; translate: 0 0; scale: 1; }
  }
  @keyframes nrg-accent-enter {
    from { scale: .18 1; }
    to { scale: 1 1; }
  }
}
@media screen and (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  [data-nrg-arrival="card"] { --nrg-card-lift: 14px; animation-duration: 440ms; }
  [data-nrg-arrival="heading"], [data-nrg-arrival="hero"],
  .group-hero h1[data-nrg-arrival="hero"] > span { animation-duration: 440ms; }
}
