/* Loaded with the group homepage. Text and links keep their final layout throughout. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .header-inner > .brand,
  .js .header-inner > .header-tools,
  .js .desktop-nav > a,
  .js .enquiry-choice > a {
    animation: nrg-interface-in 350ms cubic-bezier(.18,.78,.24,1) var(--entry-delay,0ms) backwards;
  }
  .desktop-nav > a:nth-child(2), .enquiry-choice > a:nth-child(2) { --entry-delay: 35ms }
  .desktop-nav > a:nth-child(3) { --entry-delay: 65ms }
  .desktop-nav > a:nth-child(4) { --entry-delay: 95ms }

  .js .white-selector h1 {
    animation: nrg-title-in 490ms cubic-bezier(.17,.8,.23,1) backwards;
  }
  .choice-heat { --entry-offset: -9px; --choice-delay: 0ms }
  .choice-consult { --entry-offset: 9px; --choice-delay: 65ms }
  .js .choice h2 {
    animation: nrg-label-in 360ms cubic-bezier(.22,.75,.22,1) calc(35ms + var(--choice-delay)) backwards;
  }
  .js .choice-art {
    animation: nrg-display-in 620ms cubic-bezier(.16,.8,.23,1) calc(45ms + var(--choice-delay)) backwards;
  }
  .js .choice-signature {
    animation: nrg-label-in 400ms cubic-bezier(.22,.75,.22,1) calc(155ms + var(--choice-delay)) backwards;
  }

  .group-entering {
    animation: nrg-section-in 300ms cubic-bezier(.2,.7,.3,1) backwards;
  }

  .js :is(.desktop-nav,.enquiry-choice) > a:is(:focus,:active),
  .js .header-inner > :is(.brand,.header-tools):focus-within,
  .js .white-selector:target h1,
  .group-entering:is(:target,:focus-within) { animation: none; }

  @keyframes nrg-interface-in {
    from { opacity:.55; translate:0 -5px }
    to { opacity:1; translate:0 0 }
  }
  @keyframes nrg-title-in {
    from { opacity:.58; translate:0 .13em }
    to { opacity:1; translate:0 0 }
  }
  @keyframes nrg-display-in {
    from { opacity:.17; translate:var(--entry-offset) 14px; scale:.977 }
    to { opacity:1; translate:0 0; scale:1 }
  }
  @keyframes nrg-label-in {
    from { opacity:.12; translate:0 5px; clip-path:inset(-15% 22% -15% -2em) }
    to { opacity:1; translate:0 0; clip-path:inset(-15% -2em -15% -2em) }
  }
  @keyframes nrg-section-in {
    from { opacity:.78; translate:0 8px }
    to { opacity:1; translate:0 0 }
  }
}

@media screen and (min-width:801px) and (prefers-reduced-motion:no-preference) {
  .js .choice-art { animation: none }
  .js .choice-art > :is(.wp-motif,.haus-motiv) {
    animation: nrg-display-in 620ms cubic-bezier(.16,.8,.23,1) calc(45ms + var(--choice-delay)) backwards;
  }
  .js .choice-art > .stage-plinth {
    animation: nrg-plinth-in 620ms ease-out calc(45ms + var(--choice-delay)) backwards;
  }
  @keyframes nrg-plinth-in { from { opacity: .17 } }
}

@media screen and (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .js .white-selector h1 { animation-duration:380ms }
  .js .choice-art { animation-duration:465ms }
  .js .choice-signature { animation-delay:calc(90ms + var(--choice-delay)) }
  .group-entering { animation-duration:250ms }
}
