/* The head script marks only the first document after a successful sign-in. */
html[data-authentication-arrival] body {
  animation: authentication-page-in 1200ms cubic-bezier(.22, .61, .36, 1) both;
}
html[data-authentication-arrival] [data-authentication-region="navigation"] {
  --authentication-rise: 48px;
  animation: authentication-rise-in 1000ms 100ms cubic-bezier(.22, .61, .36, 1) both;
}
html[data-authentication-arrival] [data-authentication-region="content"],
html[data-authentication-arrival] .orientation-page .orientation-copy {
  animation: authentication-rise-in 1100ms 200ms cubic-bezier(.22, .61, .36, 1) both;
}
html[data-authentication-arrival] .orientation-page :is(.orientation-visual, .orientation-terms-scene) {
  animation: authentication-rise-in 1200ms 300ms cubic-bezier(.22, .61, .36, 1) both;
}
/* Avoid replaying nested chapter entrances during the initial page entrance. */
html[data-authentication-arrival] .orientation-page :is(.orientation-description, .orientation-payoff, .orientation-actions, .orientation-photo, .orientation-float-note) {
  animation: none;
}

@keyframes authentication-page-in {
  from { opacity: 0; transform: translateY(72px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes authentication-rise-in {
  from { opacity: 0; transform: translateY(var(--authentication-rise, clamp(96px, 16vh, 160px))); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-authentication-arrival] body,
  html[data-authentication-arrival] body * { animation: none !important; }
}
