/* NovaRock motion layer — progressive enhancement. Transform/opacity only.
   Everything animated is gated behind .motion-on (added by motion.js), so with no
   JS, or with reduced-motion on, the site is fully visible and static.
   To turn the whole layer off: remove the motion.css <link> and motion.js <script> from the pages. */

/* Brand glow behind the hero: static, so it shows even without JS; JS only adds drift + cursor light */
.hero::before {
  content: ""; position: absolute; right: -180px; top: -260px; width: 780px; height: 780px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at center, rgba(139, 21, 56, .17), rgba(139, 21, 56, .06) 45%, transparent 66%);
}
.hero.page::before { width: 620px; height: 620px; top: -300px; right: -120px; }
.motion-on .hero::before { animation: m-drift 20s ease-in-out infinite alternate; }
@keyframes m-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-70px, 50px, 0) scale(1.12); } }

/* Cursor-following light (desktop, fine pointers) */
.m-light { position: absolute; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(139, 21, 56, .13), transparent 65%); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: opacity .4s; will-change: transform; }
.hero.m-hover .m-light { opacity: 1; }

/* Staged hero entrance */
.motion-on .hero .eyebrow:not(.reveal), .motion-on .hero .eyebrow-line:not(.reveal),
.motion-on .hero h1:not(.reveal), .motion-on .hero .lede:not(.reveal),
.motion-on .hero form:not(.reveal), .motion-on .hero .actions:not(.reveal), .motion-on .hero .hero-actions:not(.reveal),
.motion-on .hero .note-card:not(.reveal), .motion-on .hero .byline:not(.reveal) { animation: m-rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.motion-on .hero h1:not(.reveal) { animation-delay: .08s; }
.motion-on .hero .lede:not(.reveal) { animation-delay: .18s; }
.motion-on .hero form:not(.reveal), .motion-on .hero .actions:not(.reveal), .motion-on .hero .hero-actions:not(.reveal), .motion-on .hero .byline:not(.reveal) { animation-delay: .28s; }
.motion-on .hero .note-card:not(.reveal) { animation-delay: .22s; }
@keyframes m-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

/* Staggered reveal (classes are added by JS, then removed after the animation) */
.m-hide { opacity: 0; transform: translate3d(0, 18px, 0); }
.m-show { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--md, 0ms); }

/* Cards: lift, brand edge, spotlight */
.m-card { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.m-card:hover { transform: translate3d(0, -3px, 0); border-color: rgba(139, 21, 56, .5); }
.m-card::after { content: ""; position: absolute; left: 0; top: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(139, 21, 56, .09), transparent 66%); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: opacity .3s; }
.m-card:hover::after { opacity: 1; }
.tier.highlight.m-card::after { background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 66%); }
.f-stats { position: relative; z-index: 1; }

/* Buttons and links */
.btn:active, .sub-row button:active, .filter-row button:active, .seg button:active, #cookie-banner button:active { transform: scale(.97); }
.m-arrow { display: inline-block; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
a:hover > .m-arrow, a:hover .m-arrow, .btn:hover .m-arrow { transform: translate3d(4px, 0, 0); }
.motion-on .featured:hover .f-link { text-decoration: none; }
.motion-on .f-link, .motion-on .dl-link { position: relative; display: inline-block; text-decoration: none; }
.motion-on .f-link::after, .motion-on .dl-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.motion-on .featured:hover .f-link::after, .motion-on .dl-link:hover::after, .motion-on .f-link:hover::after { transform: scaleX(1); }

/* Nav compacts on scroll */
.motion-on header.site .wordmark { transform-origin: left center; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.motion-on header.site.scrolled .wordmark { transform: scale(.92); }

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .m-light, .m-card::after { display: none; }
  .m-hide { opacity: 1; transform: none; }
  .m-card:hover { transform: none; }
}

/* ---------- "Alive" additions ---------- */
/* chart lines draw themselves once */
.motion-on .hero-lines .hl { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: m-draw 3.2s cubic-bezier(.3, .6, .2, 1) .3s forwards; }
.motion-on .hero-lines .b { animation-delay: .55s; } .motion-on .hero-lines .c { animation-delay: .8s; }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
.hero-lines { transform: translate3d(0, var(--py2, 0px), 0); will-change: transform; }
.motion-on .hero .note-card:not(.reveal) { transform: translate3d(0, var(--py, 0px), 0); }

/* bars grow when they scroll into view (JS adds .m-go) */
.motion-on .cov-bar i, .motion-on .vbar { transform: scaleX(0); }
.motion-on .vbar { transform-origin: left center; }
.motion-on .cov-bar.m-go i, .motion-on .vtrack.m-go .vbar { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--bd, 0ms); }

/* magnetic primary buttons */
@media (hover: hover) and (pointer: fine) {
  .motion-on .btn.solid, .motion-on .btn.brass { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .2s ease-out, background .2s, box-shadow .2s; }
  .motion-on .btn.solid:active, .motion-on .btn.brass:active { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(.97); }
}
@media (prefers-reduced-motion: reduce) { .hero-lines .hl { stroke-dashoffset: 0 !important; animation: none !important; } }

/* Smooth page-to-page fades (browsers without support just navigate normally) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Art band animation (classes added by motion.js when it scrolls into view) ---------- */
.motion-on .art-band .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion-on .art-band.m-go .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s cubic-bezier(.3, .6, .2, 1) .15s; }
.motion-on .art-band .bar { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; }
.motion-on .art-band.m-go .bar { transform: scaleY(1); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 22ms); }
.motion-on .art-band .ab-area, .motion-on .art-band .ab-ribbon { opacity: 0; }
.motion-on .art-band.m-go .ab-area, .motion-on .art-band.m-go .ab-ribbon { opacity: 1; transition: opacity 1.6s ease .9s; }
.art-band .ping { transform-box: fill-box; transform-origin: center; animation: m-ping 2.6s ease-out infinite; }
@keyframes m-ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .art-band .ping { animation: none; } }
