/* Home page motion graphics (motion.js). Decoration only: the page reads and works without any of it.
   Everything is switched off for people who ask their device to reduce motion. */

/* 1. "Mind network" canvas behind the hero text */
.mz-net{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;
  -webkit-mask-image:radial-gradient(130% 100% at 25% 45%,#000 45%,transparent 88%);mask-image:radial-gradient(130% 100% at 25% 45%,#000 45%,transparent 88%);
  opacity:0;transition:opacity 1.2s ease}
.mz-net.on{opacity:1}

/* 2. Headline: words rise into place one after another */
.mz-h1 .mz-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.mz-h1 .mz-w>span{display:inline-block;transform:translateY(105%);opacity:0;will-change:transform}
.mz-h1.go .mz-w>span{animation:mzRise .9s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(var(--i) * 55ms + 120ms)}
@keyframes mzRise{to{transform:none;opacity:1}}
.hero h1 em .mz-w>span{background:linear-gradient(90deg,#2f8a73,#6a5bd6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;padding-right:.04em}
@media (forced-colors:active){.hero h1 em .mz-w>span{background:none;-webkit-text-fill-color:Highlight;color:Highlight}}

/* 3. Subject ribbon */
.mz-ribbon{position:relative;z-index:3;overflow:hidden;padding:40px 0;margin:-28px 0 -12px;pointer-events:auto}
.mz-band{display:flex;width:max-content;gap:0;transform:rotate(-1.2deg);margin-left:-40px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));box-shadow:0 10px 30px color-mix(in srgb,var(--accent-2) 25%,transparent)}
.mz-track{display:flex;flex-shrink:0;gap:0;animation:mzMarquee 38s linear infinite}
.mz-ribbon:hover .mz-track{animation-play-state:paused}
.mz-item{display:flex;align-items:center;gap:10px;padding:12px 26px;white-space:nowrap;color:#fff;font-weight:700;font-size:15px;letter-spacing:.01em}
.mz-item i{font-style:normal;font-size:18px;line-height:1}
.mz-item b{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);margin-left:26px}
@keyframes mzMarquee{to{transform:translateX(-100%)}}
@media (max-width:700px){.mz-item{font-size:13.5px;padding:10px 18px}.mz-item b{margin-left:18px}.mz-track{animation-duration:30s}}

/* 4. Main button leans towards the cursor (desktop) */
.mz-magnet{transition:transform .25s cubic-bezier(.2,.8,.2,1)}

@media (prefers-reduced-motion:reduce){
  .mz-net{display:none}
  .mz-h1 .mz-w>span{transform:none!important;opacity:1!important;animation:none!important}
  .mz-track{animation:none!important}
  .mz-magnet{transform:none!important}
}
