/* Nuclias: gentle motion. Switched off for people who ask their device for less motion. */
@keyframes nx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-glow { 0%, 100% { opacity: .9; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }

/* first screen: title, sub-line and cards come in one after another */
.hero .eyebrow, .hero h1, .hero .lead { animation: nx-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .06s; }
.hero .lead { animation-delay: .14s; }
.sec-grid .sec { animation: nx-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.sec-grid .sec:nth-child(1) { animation-delay: .2s; }
.sec-grid .sec:nth-child(2) { animation-delay: .27s; }
.sec-grid .sec:nth-child(3) { animation-delay: .34s; }
.sec-grid .sec:nth-child(4) { animation-delay: .41s; }
.hero-glow { animation: nx-glow 9s ease-in-out infinite; }

/* everything further down fades up when it scrolls into view (only when JavaScript is on) */
.nx-js .nx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--nx-d, 0s); }
.nx-js .nx-reveal.nx-in { opacity: 1; transform: none; }
.nx-js .shot.nx-reveal { transform: translateY(26px) scale(.985); }
.nx-js .shot.nx-reveal.nx-in { transform: none; }

/* hovers */
.f, .s { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.f:hover, .s:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(79, 24, 180, .10); }
.f .f-ico, .sec .ico { transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.f:hover .f-ico, .sec:hover .ico { transform: scale(1.08) rotate(-4deg); }
.sec-go span, .btn span[aria-hidden] { display: inline-block; transition: transform .2s ease; }
.sec:hover .sec-go span, .btn:hover span[aria-hidden] { transform: translateX(3px); }

/* login pages */
.login-form:not([hidden]) { animation: nx-up .5s cubic-bezier(.2, .7, .2, 1) both; }
.login-brand .brand-mid > * { animation: nx-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.login-brand .brand-mid > :nth-child(2) { animation-delay: .08s; }
.login-brand .brand-mid > :nth-child(3) { animation-delay: .16s; }
.login-brand .brand-mid > :nth-child(4) { animation-delay: .24s; }

/* legal pages */
.legal .doc { animation: nx-up .55s cubic-bezier(.2, .7, .2, 1) both; }
.legal .toc { animation: nx-fade .6s ease .15s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .nx-js .nx-reveal { opacity: 1 !important; transform: none !important; }
}
