/* ==========================================================================
   NAMIS 2026: Motion. One purposeful motion family: elements rise into
   place as they enter the viewport. Everything here is switched off for
   visitors who prefer reduced motion.
   ========================================================================== */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* hero entrance */
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: .08s; }
.hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .24s; }
.hero__copy > *:nth-child(5) { animation-delay: .32s; }
.hero__copy > *:nth-child(6) { animation-delay: .40s; }
.spec-plate { animation: rise .9s .35s var(--ease) both; }

/* scroll reveal (class added by main.js only when JS runs) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: none; }
/* `translate` (not transform) so hover lifts on cards keep working */
.js .reveal-group > * { opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .3s var(--ease), box-shadow .3s, border-color .3s, background-color .3s; }
.js .reveal-group.is-visible > * { opacity: 1; translate: none; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-group.is-visible > *:nth-child(6) { transition-delay: .35s; }
.js .reveal-group.is-visible > *:nth-child(7) { transition-delay: .42s; }
.js .reveal-group.is-visible > *:nth-child(8) { transition-delay: .49s; }
.js .reveal-group.is-visible > *:nth-child(n+9) { transition-delay: .55s; }

/* programme line draws as it enters */
.js .timeline::before { transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease); }
.js .timeline.is-visible::before { transform: scaleY(1); }

/* pillar art: strokes draw on hover */
.pillar__art .draw { stroke-dasharray: 260; stroke-dashoffset: 0; }
.pillar:hover .pillar__art .draw { stroke-dashoffset: 260; animation: draw 1.1s var(--ease) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > * { opacity: 1; translate: none; }
  .js .timeline::before { transform: none; }
  .marquee { mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .wa-float__btn::before { display: none; }
  .cta-band__gear { animation: none; }
}
