/* Legacy inner pages used these opacity rules to stage their opening. */
body :is(#hero, #projects, .about-start, .start-image, .start-block, #energo-app) {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  body:not(:has(:target)) main > section:first-of-type {
    animation: internal-first-appear .6s cubic-bezier(.22, .65, .3, 1);
  }

  body:not(:has(:target)) main > section:first-of-type:focus-within {
    animation: none;
  }

  .internal-section-enter {
    animation: internal-section-appear .65s ease-out;
  }

  .internal-section-enter:focus-within {
    animation: none;
  }
}

@keyframes internal-section-appear {
  from { opacity: .58; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}


@keyframes internal-first-appear {
  from { opacity: .52; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
