/* NADI public site motion. Master motion tokens live in nadi-site.css (120 / 200 / 320ms, one easing).
   Scope: scroll reveal, hero entrance, the chat simulation, and a few accents. All of it is off under prefers-reduced-motion. */
:root { --dur-reveal: 680ms; }

/* scroll reveal: classes come from site-motion.js; content stays visible if the script fails */
.ns-js .ns-reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); will-change: opacity, transform; }
.ns-js .ns-reveal.ns-in { opacity: 1; transform: none; will-change: auto; }
.ns-js .ns-reveal.ns-card-i.ns-in { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur-reveal) var(--ease); transition-delay: 0s; }
/* list rows slide in from the left, each with its own hairline drawing across */
.ns-js .ns-row.ns-reveal, .ns-js .ns-ind.ns-reveal, .ns-js .ns-ledger-row.ns-reveal, .ns-js .ns-faq.ns-reveal { transform: translateX(-14px); }
.ns-js .ns-row.ns-reveal.ns-in, .ns-js .ns-ind.ns-reveal.ns-in, .ns-js .ns-ledger-row.ns-reveal.ns-in, .ns-js .ns-faq.ns-reveal.ns-in { transform: none; }
.ns-js a.ns-row.ns-reveal.ns-in, .ns-js a.ns-ind.ns-reveal.ns-in { transition: padding-left var(--dur) var(--ease), background var(--dur), opacity var(--dur-reveal) var(--ease); transition-delay: 0s; }

/* hero entrance on load */
@keyframes ns-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ns-phone-in { from { opacity: 0; transform: translateY(34px) rotate(4deg); } to { opacity: 1; transform: rotate(1.2deg); } }
@keyframes ns-underline { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ns-js .ns-hero-copy > * { animation: ns-rise 760ms var(--ease) both; }
.ns-js .ns-hero-copy > :nth-child(1) { animation-delay: 80ms; }
.ns-js .ns-hero-copy > :nth-child(2) { animation-delay: 170ms; }
.ns-js .ns-hero-copy > :nth-child(3) { animation-delay: 280ms; }
.ns-js .ns-hero-copy > :nth-child(4) { animation-delay: 380ms; }
.ns-js .ns-hero-copy > :nth-child(5) { animation-delay: 470ms; }
.ns-js .ns-accent svg { animation: ns-underline 900ms var(--ease) 750ms both; }
.ns-js .ns-demo { animation: ns-rise 900ms var(--ease) 300ms both; }
.ns-js .ns-phone { animation: ns-phone-in 1000ms var(--ease) 420ms both; }
.ns-js .ns-strip { animation: ns-rise 800ms var(--ease) 650ms both; }

/* small accents */
.ns-pill i { animation: ns-pulse 2.6s ease-in-out infinite; }
@keyframes ns-pulse { 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(63,207,142,0); } }
.ns-btn-primary .ns-i { transition: transform var(--dur) var(--ease); }
.ns-btn-primary:hover .ns-i { transform: translateX(3px); }
.ns-core { animation: ns-core 5s ease-in-out infinite; }
@keyframes ns-core { 0%, 100% { box-shadow: 0 0 0 0 rgba(53,211,190,.22); } 50% { box-shadow: 0 0 0 18px rgba(53,211,190,0); } }
.ns-diag-item { transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ns-diag-item:hover { border-color: rgba(53,211,190,.5); background: var(--ink-3); transform: translateX(2px); }
.ns-wires path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ns-wires.ns-in path { animation: ns-wire 1.6s var(--ease) forwards; }
.ns-wires.ns-in path:nth-child(odd) { animation-delay: .1s; } .ns-wires.ns-in path:nth-child(even) { animation-delay: .35s; }
@keyframes ns-wire { to { stroke-dashoffset: 0; } }
.ns-bars i { transform-origin: bottom; }
.ns-js .ns-bars i { transform: scaleY(0); transition: transform 900ms var(--ease); }
.ns-js .ns-window.ns-in .ns-bars i { transform: none; }
.ns-js .ns-window.ns-in .ns-bars i:nth-child(2) { transition-delay: 60ms; } .ns-js .ns-window.ns-in .ns-bars i:nth-child(3) { transition-delay: 120ms; } .ns-js .ns-window.ns-in .ns-bars i:nth-child(4) { transition-delay: 180ms; }
.ns-js .ns-window.ns-in .ns-bars i:nth-child(5) { transition-delay: 240ms; } .ns-js .ns-window.ns-in .ns-bars i:nth-child(6) { transition-delay: 300ms; } .ns-js .ns-window.ns-in .ns-bars i:nth-child(7) { transition-delay: 360ms; }
/* timeline connector draws in */
.ns-js .ns-step::after { transition: transform 900ms var(--ease) calc(var(--i, 0) * 140ms + 300ms); }
@media (max-width: 1023px) { .ns-js .ns-step::after { transform-origin: top; transform: scaleY(0); } .ns-js .ns-step.ns-in::after { transform: none; } }
@media (min-width: 1024px) { .ns-js .ns-step::after { transform-origin: left; transform: scaleX(0); } .ns-js .ns-step.ns-in::after { transform: none; } }
.ns-faq[open] p { animation: ns-rise 360ms var(--ease) both; }
.ns-drawer:not([hidden]) { animation: ns-rise 240ms var(--ease) both; }
.ns-out b { transition: color var(--dur); }

@media (prefers-reduced-motion: reduce) {
  .ns-js .ns-reveal { opacity: 1 !important; transform: none !important; }
  .ns-wires path { stroke-dashoffset: 0 !important; }
  .ns-js .ns-bars i { transform: none !important; }
  .ns-js .ns-step::after { transform: none !important; }
}
