/* ==========================================================================
   VIDZORAX — motion.css
   --------------------------------------------------------------------------
   The cinematic motion layer. Sits on top of styles.css and never replaces
   it: delete this file and its <link> and the site falls back to the
   original design untouched.

   Rules this file follows
   · Only transform / opacity / clip-path / filter are animated.
   · Looping animations are paused until their element is on screen
     (motion.js toggles .is-live), so off-screen work costs nothing.
   · prefers-reduced-motion and .mx-reduce switch everything to static.

   01. Tokens & helpers          08. Motion graphics showcase
   02. Page intro                09. AI creative pipeline
   03. Scroll progress & rules   10. Global studio art
   04. Cinematic hero            11. Final CTA
   05. Scroll reveals            12. Custom cursor & magnetic
   06. Service cards             13. Responsive
   07. Portfolio cards           14. Reduced motion
   ========================================================================== */

/* 01. TOKENS & HELPERS ================================================== */
:root {
  --mx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mx-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --mx-slow: 1.1s;
  --mx-glow-c: rgba(25, 227, 255, 0.35);
  --mx-glow-b: rgba(43, 107, 255, 0.35);
  --mx-glow-m: rgba(168, 85, 247, 0.32);
}

/* Anything with a looping animation waits for .is-live */
.mx-loop, .mx-loop *, .mx-loop *::before, .mx-loop *::after { animation-play-state: paused; }
.mx-loop.is-live, .mx-loop.is-live *, .mx-loop.is-live *::before, .mx-loop.is-live *::after { animation-play-state: running; }

/* Parallax uses the independent "translate" property so it stacks with any
   transform an element already has (tilt, reveal, centring). */
[data-parallax] { translate: 0 var(--par, 0px); }


/* 02. PAGE INTRO ======================================================== */
.mx-intro { display: none; }
.mx-intro-on .mx-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.mx-intro i {
  position: absolute;
  inset-inline: 0;
  height: 50.5%;
  background: #04060f;
  transition: transform 0.95s var(--mx-ease-io);
}
.mx-intro i:first-child { top: 0; }
.mx-intro i:last-of-type { bottom: 0; }
.mx-intro b {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--text);
  clip-path: inset(0 100% 0 0);
  animation: mxIntroWord 0.7s var(--mx-ease) 0.05s forwards;
}
.mx-intro b::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.5rem;
  height: 2px;
  background: var(--grad-brand);
  transform-origin: left;
  transform: scaleX(0);
  animation: mxIntroBar 0.6s var(--mx-ease) 0.35s forwards;
}
.mx-intro.is-out i:first-child { transform: translateY(-101%); }
.mx-intro.is-out i:last-of-type { transform: translateY(101%); }
.mx-intro.is-out b { opacity: 0; transition: opacity 0.25s ease; }
@keyframes mxIntroWord { to { clip-path: inset(0 0 0 0); } }
@keyframes mxIntroBar  { to { transform: scaleX(1); } }


/* 03. SCROLL PROGRESS & SECTION RULES =================================== */
.mx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: var(--grad-brand);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

hr.rule.mx-rule {
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 1.4s var(--mx-ease);
}
hr.rule.mx-rule.is-in { transform: scaleX(1); }


/* 04. CINEMATIC HERO ==================================================== */
.mx-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mx-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Slow drifting light — the "atmosphere" of the hero */
.mx-aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  animation: mxDrift 22s ease-in-out infinite alternate;
}
.mx-aurora i:nth-child(1) {
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(43, 107, 255, 0.55), transparent 65%);
}
.mx-aurora i:nth-child(2) {
  width: 38vw; height: 38vw; max-width: 600px; max-height: 600px;
  right: -8vw; top: 6vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 65%);
  animation-duration: 26s;
  animation-delay: -6s;
}
.mx-aurora i:nth-child(3) {
  width: 30vw; height: 30vw; max-width: 480px; max-height: 480px;
  left: 34vw; bottom: -16vw;
  background: radial-gradient(circle, rgba(25, 227, 255, 0.35), transparent 65%);
  animation-duration: 30s;
  animation-delay: -12s;
}
@keyframes mxDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 5vw, 0) scale(0.95); }
}

/* Thin anamorphic light streaks that cross the frame now and then */
.mx-streaks i {
  position: absolute;
  height: 1px;
  width: 42vw;
  left: -45vw;
  background: linear-gradient(90deg, transparent, rgba(122, 240, 255, 0.85), transparent);
  opacity: 0;
  transform: rotate(-14deg);
  animation: mxStreak 9s var(--mx-ease-io) infinite;
}
.mx-streaks i:nth-child(1) { top: 22%; animation-delay: 1.2s; }
.mx-streaks i:nth-child(2) { top: 48%; animation-delay: 4.1s; width: 30vw; }
.mx-streaks i:nth-child(3) { top: 66%; animation-delay: 6.6s; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent); }
.mx-streaks i:nth-child(4) { top: 34%; animation-delay: 7.9s; width: 22vw; }
@keyframes mxStreak {
  0%   { transform: translate3d(0, 0, 0) rotate(-14deg); opacity: 0; }
  8%   { opacity: 1; }
  30%  { transform: translate3d(190vw, -18vw, 0) rotate(-14deg); opacity: 0; }
  100% { transform: translate3d(190vw, -18vw, 0) rotate(-14deg); opacity: 0; }
}

/* Floating "footage" frames — reads instantly as video production */
.mx-frames { position: absolute; inset: 0; }
.mx-frame {
  position: absolute;
  margin: 0;
  padding: 6px 6px 22px;
  border-radius: 14px;
  background: rgba(10, 14, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--rot, 0deg)) scale(0.92);
  transition: opacity 1.2s var(--mx-ease), transform 1.2s var(--mx-ease);
}
.mx-ready .mx-frame { opacity: 0.78; transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--rot, 0deg)) scale(1); }
.mx-frame figcaption {
  position: absolute;
  left: 9px; bottom: 5px;
  font: 600 0.52rem/1 var(--font-display);
  letter-spacing: 0.22em;
  color: var(--text-dim);
}
.mx-frame figcaption::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 5px;
  background: #ff4d6d;
  vertical-align: 1px;
  animation: mxRec 1.4s steps(1) infinite;
}
@keyframes mxRec { 50% { opacity: 0.15; } }

.mx-frame.f1 { width: 150px; top: 13%; left: 47%; --rot: -6deg; transition-delay: 0.6s; }
.mx-frame.f2 { width: 190px; bottom: 9%; right: 2%; --rot: 5deg; transition-delay: 0.8s; }
.mx-frame.f3 { width: 128px; bottom: 15%; left: 40%; --rot: 4deg; transition-delay: 1s; }
.mx-frame.f4 { width: 96px; top: 16%; right: 2.5%; --rot: 7deg; transition-delay: 1.2s; }

.mx-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
}
.mx-frame.f4 .mx-shot { aspect-ratio: 9 / 16; }

/* Each shot is a tiny looping "clip" built from gradients */
.s-product { background: radial-gradient(circle at 50% 120%, #ffb347 0%, #e049c3 35%, #170b2c 70%); }
.s-product::before {                 /* bottle silhouette */
  content: "";
  position: absolute;
  left: 50%; bottom: 10%;
  width: 22%; height: 66%;
  border-radius: 40% 40% 12% 12% / 20% 20% 8% 8%;
  background: linear-gradient(90deg, #0b0718, #3a1d55 45%, #0b0718);
  transform: translateX(-50%);
  box-shadow: inset 2px 0 0 rgba(255, 210, 160, 0.6);
}
.s-product::after {                  /* rim light sweep */
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  animation: mxSweep 3.6s var(--mx-ease-io) infinite;
}
.s-city {
  background:
    linear-gradient(to top, rgba(4, 6, 15, 0.95) 0 22%, transparent 22%),
    linear-gradient(180deg, #0c1b4a, #2b6bff 70%, #19e3ff);
  background-size: 100% 100%;
}
.s-city::before {                    /* skyline that slowly pans */
  content: "";
  position: absolute;
  left: 0; bottom: 20%;
  width: 200%; height: 46%;
  background:
    linear-gradient(90deg,
      #050a1d 0 6%, transparent 6% 8%, #050a1d 8% 13%, transparent 13% 15%,
      #050a1d 15% 19%, transparent 19% 22%, #050a1d 22% 30%, transparent 30% 33%,
      #050a1d 33% 37%, transparent 37% 40%, #050a1d 40% 50%,
      #050a1d 50% 56%, transparent 56% 58%, #050a1d 58% 63%, transparent 63% 65%,
      #050a1d 65% 69%, transparent 69% 72%, #050a1d 72% 80%, transparent 80% 83%,
      #050a1d 83% 87%, transparent 87% 90%, #050a1d 90% 100%);
  clip-path: polygon(0 40%, 4% 40%, 4% 10%, 9% 10%, 9% 55%, 14% 55%, 14% 0, 19% 0, 19% 35%, 25% 35%, 25% 20%, 32% 20%, 32% 50%, 38% 50%, 38% 5%, 44% 5%, 44% 45%,
                     50% 40%, 54% 40%, 54% 10%, 59% 10%, 59% 55%, 64% 55%, 64% 0, 69% 0, 69% 35%, 75% 35%, 75% 20%, 82% 20%, 82% 50%, 88% 50%, 88% 5%, 94% 5%, 94% 45%, 100% 45%, 100% 100%, 0 100%);
  animation: mxPan 14s linear infinite;
}
.s-city::after {                     /* sun flare */
  content: "";
  position: absolute;
  right: 18%; top: 22%;
  width: 22%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6 0%, #19e3ff55 40%, transparent 70%);
  animation: mxBreath 4s ease-in-out infinite;
}
@keyframes mxPan { to { transform: translateX(-50%); } }

.s-type {
  display: grid;
  place-items: center;
  background: #0a0e1e;
}
.s-type span {
  font: 800 1.35rem/1 var(--font-display);
  letter-spacing: 0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mxTypePop 2.4s var(--mx-ease) infinite;
}
@keyframes mxTypePop {
  0%   { transform: translateY(60%) scaleY(1.4); opacity: 0; letter-spacing: 0.4em; }
  30%  { transform: none; opacity: 1; letter-spacing: 0.04em; }
  75%  { transform: none; opacity: 1; }
  100% { transform: translateY(-60%); opacity: 0; }
}

.s-wave { background: linear-gradient(180deg, #1b0f3a, #2b6bff 60%, #19e3ff); }
.s-wave::before {
  content: "";
  position: absolute;
  inset: auto -50% 20% -50%;
  height: 40%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: mxWave 3.2s ease-in-out infinite;
}
@keyframes mxWave { 50% { transform: translateY(-30%) scaleX(0.8); } }
@keyframes mxSweep { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
@keyframes mxBreath { 50% { transform: scale(1.25); opacity: 0.7; } }

.mx-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 6, 15, 0.85) 100%),
    linear-gradient(to bottom, transparent 75%, var(--ink-950, #04060f) 100%);
}

/* Hero content sits above the effects */
.hero .hero-in, .hero .platforms { position: relative; z-index: 2; }

/* Kinetic headline — words rise out of a mask on load */
.mx-kinetic { perspective: 900px; }
.mx-line { display: inline-block; overflow: hidden; padding-bottom: 0.06em; vertical-align: top; }
.mx-word {
  display: inline-block;
  transform-origin: 50% 100%;
  transition: transform 1.05s var(--mx-ease), opacity 0.6s ease;
}
/* Hidden start state only applies once JS has confirmed it is running
   (html.mx-js is set inline in <head>), so a script failure never hides copy. */
.mx-js .mx-word { transform: translate3d(0, 108%, 0) rotateX(-40deg); opacity: 0; }
.mx-ready .mx-word { transform: none; opacity: 1; }
.mx-ready .mx-line:nth-of-type(1) .mx-word:nth-child(1) { transition-delay: 0.15s; }
.mx-ready .mx-line:nth-of-type(1) .mx-word:nth-child(2) { transition-delay: 0.25s; }
.mx-ready .mx-line:nth-of-type(2) .mx-word:nth-child(1) { transition-delay: 0.38s; }
.mx-ready .mx-line:nth-of-type(2) .mx-word:nth-child(2) { transition-delay: 0.5s; }

.mx-move {
  background-size: 220% 100% !important;
  animation: mxGradShift 7s ease-in-out infinite;
}
@keyframes mxGradShift { 50% { background-position: 100% 0; } }

/* The rest of the hero copy follows the headline in */
.hero-copy > .badge-locale,
.hero-copy > .hero-sub,
.hero-copy > .mx-equation,
.hero-copy > .btn-row,
.hero-copy > .hero-stats {
  transition: opacity 1s var(--mx-ease), transform 1s var(--mx-ease), filter 1s var(--mx-ease);
}
.mx-js .hero-copy > .badge-locale,
.mx-js .hero-copy > .hero-sub,
.mx-js .hero-copy > .mx-equation,
.mx-js .hero-copy > .btn-row,
.mx-js .hero-copy > .hero-stats {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(6px);
}
.mx-ready .hero-copy > .badge-locale { opacity: 1; transform: none; filter: none; transition-delay: 0.05s; }
.mx-ready .hero-copy > .hero-sub     { opacity: 1; transform: none; filter: none; transition-delay: 0.65s; }
.mx-ready .hero-copy > .mx-equation  { opacity: 1; transform: none; filter: none; transition-delay: 0.78s; }
.mx-ready .hero-copy > .btn-row      { opacity: 1; transform: none; filter: none; transition-delay: 0.9s; }
.mx-ready .hero-copy > .hero-stats   { opacity: 1; transform: none; filter: none; transition-delay: 1.02s; }

/* AI + VIDEO + CREATIVITY */
.mx-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 2rem;
  font: 600 0.72rem/1 var(--font-display);
  letter-spacing: 0.24em;
}
.mx-equation span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.mx-equation span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(122, 240, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: mxChipSweep 5.4s var(--mx-ease-io) infinite;
}
.mx-equation span:nth-of-type(2)::after { animation-delay: 0.35s; }
.mx-equation span:nth-of-type(3)::after { animation-delay: 0.7s; }
.mx-equation i { font-style: normal; color: var(--cyan); opacity: 0.8; }
@keyframes mxChipSweep { 0%, 55% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }

/* Showreel: depth, tilt and a cinematic light pass */
.reel[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform 0.6s var(--mx-ease); }
.reel .reel-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reel:hover .reel-inner::after { opacity: 1; }


/* 05. SCROLL REVEALS ==================================================== */
/* Section headings wipe up through a mask; leads come into focus */
.section-head.rv h2 {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 0.4em, 0);
  transition: clip-path 1.1s var(--mx-ease), transform 1.1s var(--mx-ease);
}
.section-head.rv.is-in h2 { clip-path: inset(0 0 -10% 0); transform: none; }

.section-head.rv .lead,
.section-head.rv .eyebrow {
  filter: blur(8px);
  opacity: 0;
  transition: filter 1s var(--mx-ease) 0.2s, opacity 1s var(--mx-ease) 0.2s;
}
.section-head.rv.is-in .lead,
.section-head.rv.is-in .eyebrow { filter: none; opacity: 1; }
.section-head.rv.is-in .eyebrow { transition-delay: 0s; }

/* Cards scale up out of a soft blur */
.glass.rv {
  transform: translate3d(0, 34px, 0) scale(0.965);
  transition: opacity 0.9s var(--mx-ease), transform 0.9s var(--mx-ease);
}
.glass.rv.is-in { transform: none; }

/* Generic parallax target */
[data-parallax] { will-change: transform; }

/* Count-up numbers keep their width steady */
[data-count] { font-variant-numeric: tabular-nums; }


/* 06. SERVICE CARDS ===================================================== */
.svc.mx-svc {
  --svc-pad: 1.5rem;
  position: relative;
  padding-top: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--mx-ease), border-color 0.4s ease, box-shadow 0.6s var(--mx-ease);
}
.svc.mx-svc:hover {
  box-shadow: 0 40px 80px -40px rgba(43, 107, 255, 0.55);
}
.svc.mx-svc .svc-ico { margin-top: -26px; position: relative; z-index: 2; background: rgba(8, 12, 28, 0.92); }
.svc.mx-svc > h3, .svc.mx-svc > p { position: relative; z-index: 2; }

/* Mouse-follow light */
.svc.mx-svc::before,
.pf.mx-pf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(122, 160, 255, 0.13), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.svc.mx-svc:hover::before,
.pf.mx-pf:hover::before { opacity: 1; }

/* The mini "footage" preview at the top of each card */
.mx-svc-vis {
  position: relative;
  aspect-ratio: 16 / 8;
  margin: 0 calc(-1 * var(--svc-pad, 1.6rem)) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.mx-svc-vis > * { position: absolute; }
.mx-svc-vis::after {                       /* light pass on hover */
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 5;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0s;
}
.svc.mx-svc:hover .mx-svc-vis::after { transform: translateX(110%); transition: transform 1.1s var(--mx-ease-io); }
.mx-inner > * { position: absolute; }
.mx-svc-vis .mx-inner {
  inset: 0;
  transition: transform 1.2s var(--mx-ease), filter 1.2s var(--mx-ease);
  filter: saturate(0.75) brightness(0.85);
}
.svc.mx-svc:hover .mx-svc-vis .mx-inner { transform: scale(1.08); filter: saturate(1.1) brightness(1); }

/* The preview loops only while hovered (desktop) or on screen (touch) */
.mx-svc-vis *, .mx-svc-vis *::before, .mx-svc-vis *::after { animation-play-state: paused !important; }
.svc.mx-svc:hover .mx-svc-vis *,
.svc.mx-svc:hover .mx-svc-vis *::before,
.svc.mx-svc:hover .mx-svc-vis *::after,
.mx-touch .svc.mx-svc.is-live .mx-svc-vis *,
.mx-touch .svc.mx-svc.is-live .mx-svc-vis *::before,
.mx-touch .svc.mx-svc.is-live .mx-svc-vis *::after { animation-play-state: running !important; }

/* --- 12 preview styles ------------------------------------------------- */
/* v0 · AI advertisement: beam across a stage */
.vis-0 .mx-inner { background: radial-gradient(120% 120% at 20% 0%, #2b6bff 0%, #10124a 50%, #05070f 80%); }
.vis-0 .beam { inset: -30% 40% -30% 40%; background: linear-gradient(90deg, transparent, rgba(122, 240, 255, 0.7), transparent); transform: rotate(18deg); animation: mxBeam 3.2s var(--mx-ease-io) infinite alternate; }
.vis-0 .word { left: 8%; bottom: 14%; font: 800 1.15rem/1 var(--font-display); letter-spacing: 0.18em; color: #fff; text-shadow: 0 0 20px rgba(25, 227, 255, 0.6); }
@keyframes mxBeam { from { transform: translateX(-160%) rotate(18deg); } to { transform: translateX(160%) rotate(18deg); } }

/* v1 · Product: turntable with rim light */
.vis-1 .mx-inner { background: radial-gradient(circle at 50% 110%, #ffb347, #c81e5b 40%, #1b0b2e 75%); }
.vis-1 .obj { left: 50%; bottom: 14%; width: 15%; height: 66%; margin-left: -7.5%; border-radius: 40% 40% 12% 12% / 22% 22% 8% 8%; background: linear-gradient(90deg, #0c0716, #4a2266 50%, #0c0716); animation: mxSpin 4s ease-in-out infinite; }
.vis-1 .disc { left: 30%; right: 30%; bottom: 8%; height: 12%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 210, 160, 0.55), transparent 70%); }
@keyframes mxSpin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.55); } }

/* v2 · Reels: vertical clips scrolling */
.vis-2 .mx-inner { background: #0a0f24; }
.vis-2 .col { top: 0; width: 20%; height: 200%; background: repeating-linear-gradient(180deg, #2b6bff 0 22%, transparent 22% 26%, #a855f7 26% 48%, transparent 48% 52%, #19e3ff 52% 74%, transparent 74% 78%, #e049c3 78% 100%); border-radius: 8px; opacity: 0.8; animation: mxScrollY 5s linear infinite; }
.vis-2 .col:nth-child(1) { left: 14%; }
.vis-2 .col:nth-child(2) { left: 40%; animation-direction: reverse; animation-duration: 6s; }
.vis-2 .col:nth-child(3) { left: 66%; animation-duration: 4.4s; }
@keyframes mxScrollY { to { transform: translateY(-50%); } }

/* v3 · Food: steam rising over a plate */
.vis-3 .mx-inner { background: radial-gradient(circle at 50% 80%, #ff8a3d, #6b1b2a 50%, #120612 80%); }
.vis-3 .plate { left: 28%; right: 28%; bottom: 10%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse, #f6e7d8 30%, #c9b29a 60%, transparent 62%); }
.vis-3 .steam { bottom: 30%; width: 10%; height: 50%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5), transparent 70%); filter: blur(6px); animation: mxSteam 3s ease-in infinite; }
.vis-3 .steam:nth-of-type(2) { left: 40%; }
.vis-3 .steam:nth-of-type(3) { left: 50%; animation-delay: 1s; }
.vis-3 .steam:nth-of-type(4) { left: 58%; animation-delay: 2s; }
@keyframes mxSteam { 0% { transform: translateY(20%) scale(0.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-70%) scale(1.3); opacity: 0; } }

/* v4 · Real estate: towers with windows lighting up, slow dolly */
.vis-4 .mx-inner { background: linear-gradient(180deg, #0c1b4a, #ff8a3d 140%); }
.vis-4 .tower { bottom: 0; background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 210, 140, 0.0) 6px 9px), #071028; border-top: 2px solid rgba(255, 255, 255, 0.08); }
.vis-4 .tower::after { content: ""; position: absolute; inset: 10% 18%; background: repeating-linear-gradient(180deg, rgba(255, 210, 140, 0.85) 0 3px, transparent 3px 9px); background-size: 100% 200%; animation: mxWindows 4s steps(6) infinite; opacity: 0.7; mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px); -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px); }
.vis-4 .tower:nth-child(1) { left: 12%; width: 18%; height: 70%; }
.vis-4 .tower:nth-child(2) { left: 36%; width: 24%; height: 92%; }
.vis-4 .tower:nth-child(3) { left: 66%; width: 16%; height: 58%; }
.vis-4 .mx-inner { animation: mxDolly 8s ease-in-out infinite alternate; }
@keyframes mxWindows { to { background-position: 0 -100%; } }
@keyframes mxDolly { to { transform: scale(1.12) translateY(-3%); } }

/* v5 · Corporate: data bars rising */
.vis-5 .mx-inner { background: linear-gradient(160deg, #0b1a3c, #05070f); }
.vis-5 .bar { bottom: 14%; width: 9%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, #2b6bff, #19e3ff); transform-origin: bottom; animation: mxBar 2.8s var(--mx-ease) infinite alternate; }
.vis-5 .bar:nth-child(1) { left: 18%; height: 30%; }
.vis-5 .bar:nth-child(2) { left: 32%; height: 48%; animation-delay: 0.2s; }
.vis-5 .bar:nth-child(3) { left: 46%; height: 40%; animation-delay: 0.4s; }
.vis-5 .bar:nth-child(4) { left: 60%; height: 62%; animation-delay: 0.6s; }
.vis-5 .bar:nth-child(5) { left: 74%; height: 76%; animation-delay: 0.8s; background: linear-gradient(to top, #a855f7, #e049c3); }
@keyframes mxBar { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* v6 · Events: countdown */
.vis-6 .mx-inner { background: radial-gradient(circle at 50% 50%, #3b1055, #05070f 70%); display: grid; place-items: center; }
.vis-6 .num { inset: 0; display: grid; place-items: center; font: 800 2.2rem/1 var(--font-display); color: #fff; opacity: 0; animation: mxCount 4s steps(1) infinite; }
.vis-6 .num:nth-child(1) { animation-delay: 0s; }
.vis-6 .num:nth-child(2) { animation-delay: 1s; }
.vis-6 .num:nth-child(3) { animation-delay: 2s; }
.vis-6 .num:nth-child(4) { animation-delay: 3s; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.3rem; letter-spacing: 0.2em; }
.vis-6 .ring { left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--cyan); animation: mxRot 1s linear infinite; }
@keyframes mxCount { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes mxRot { to { transform: rotate(360deg); } }

/* v7 · Launch: rising streak */
.vis-7 .mx-inner { background: linear-gradient(180deg, #05070f, #1a0f3d 70%, #ff8a3d 140%); }
.vis-7 .trail { left: 50%; bottom: -10%; width: 3px; height: 70%; margin-left: -1.5px; background: linear-gradient(to top, transparent, #ffb347, #fff); filter: drop-shadow(0 0 8px #ffb347); animation: mxLaunch 2.6s var(--mx-ease) infinite; }
.vis-7 .star { width: 2px; height: 2px; background: #fff; border-radius: 50%; opacity: 0.6; animation: mxTwinkle 2s ease-in-out infinite; }
.vis-7 .star:nth-of-type(2) { left: 20%; top: 20%; }
.vis-7 .star:nth-of-type(3) { left: 76%; top: 30%; animation-delay: 0.7s; }
.vis-7 .star:nth-of-type(4) { left: 64%; top: 12%; animation-delay: 1.3s; }
@keyframes mxLaunch { 0% { transform: translateY(80%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-120%); opacity: 0; } }
@keyframes mxTwinkle { 50% { opacity: 0.1; } }

/* v8 · Short-form: timeline of clips */
.vis-8 .mx-inner { background: #080c1c; }
.vis-8 .strip { left: 0; top: 30%; height: 40%; width: 300%; background: repeating-linear-gradient(90deg, #2b6bff 0 9%, transparent 9% 10%, #19e3ff 10% 16%, transparent 16% 17%, #a855f7 17% 28%, transparent 28% 29%, #ffb347 29% 33.33%); border-radius: 6px; opacity: 0.85; animation: mxScrollX 7s linear infinite; }
.vis-8 .head { left: 48%; top: 18%; bottom: 18%; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; }
@keyframes mxScrollX { to { transform: translateX(-33.33%); } }

/* v9 · Product animation: exploded 3D cube */
.vis-9 .mx-inner { background: radial-gradient(circle, #10285a, #05070f 70%); perspective: 300px; }
.vis-9 .cube { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; margin: -13% 0 0 -13%; transform-style: preserve-3d; animation: mxCube 6s linear infinite; }
.vis-9 .cube i { position: absolute; inset: 0; border: 1px solid rgba(122, 240, 255, 0.8); background: rgba(43, 107, 255, 0.12); }
.vis-9 .cube i:nth-child(1) { transform: translateZ(18px); }
.vis-9 .cube i:nth-child(2) { transform: rotateY(90deg) translateZ(18px); }
.vis-9 .cube i:nth-child(3) { transform: rotateY(180deg) translateZ(18px); }
.vis-9 .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(18px); }
.vis-9 .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(18px); }
.vis-9 .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(18px); }
@keyframes mxCube { to { transform: rotateX(-24deg) rotateY(360deg); } from { transform: rotateX(-24deg) rotateY(0); } }

/* v10 · Brand story: film strip */
.vis-10 .mx-inner { background: #0a0a12; }
.vis-10 .film { left: 0; top: 16%; bottom: 16%; width: 300%; background:
  linear-gradient(#0a0a12 0 0) top/100% 12% no-repeat,
  linear-gradient(#0a0a12 0 0) bottom/100% 12% no-repeat,
  repeating-linear-gradient(90deg, #ffb347 0 15%, #0a0a12 15% 16.66%);
  animation: mxScrollX 9s linear infinite; filter: sepia(0.4) saturate(1.4); }
.vis-10 .film::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 2%, rgba(255, 255, 255, 0.5) 2% 3%, transparent 3% 5.55%); mask-image: linear-gradient(#000 0 9%, transparent 9% 91%, #000 91%); -webkit-mask-image: linear-gradient(#000 0 9%, transparent 9% 91%, #000 91%); }

/* v11 · Messaging: chat bubbles pop */
.vis-11 .mx-inner { background: linear-gradient(160deg, #06281c, #05070f 70%); }
.vis-11 .msg { height: 16%; border-radius: 12px; opacity: 0; animation: mxMsg 4.5s var(--mx-ease) infinite; }
.vis-11 .msg:nth-child(1) { left: 10%; top: 14%; width: 46%; background: rgba(255, 255, 255, 0.14); }
.vis-11 .msg:nth-child(2) { right: 10%; top: 40%; width: 52%; background: #25d366; animation-delay: 0.6s; }
.vis-11 .msg:nth-child(3) { left: 10%; top: 66%; width: 34%; background: rgba(255, 255, 255, 0.14); animation-delay: 1.2s; }
@keyframes mxMsg { 0% { opacity: 0; transform: translateY(10px) scale(0.9); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }


/* 07. PORTFOLIO CARDS =================================================== */
.pf.mx-pf { position: relative; transform-style: preserve-3d; transition: transform 0.6s var(--mx-ease), box-shadow 0.6s var(--mx-ease); }
.pf.mx-pf:hover { box-shadow: 0 50px 90px -45px rgba(43, 107, 255, 0.6); }
.pf-poster span { opacity: 0; }  /* "Your Video Here" stays in the HTML as a hint, hidden visually */

.mx-scene { position: absolute; inset: 0; overflow: hidden; transition: transform 1.4s var(--mx-ease); }
.pf.mx-pf:hover .mx-scene { transform: scale(1.12); }
.mx-scene i {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: mxOrbit 9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.mx-scene i:nth-child(1) { width: 60%; height: 90%; left: -10%; top: -20%; background: rgba(255, 255, 255, 0.35); }
.mx-scene i:nth-child(2) { width: 45%; height: 70%; right: -6%; bottom: -20%; background: rgba(25, 227, 255, 0.45); animation-duration: 7s; }
.mx-scene i:nth-child(3) { width: 30%; height: 50%; left: 40%; top: 20%; background: rgba(168, 85, 247, 0.5); animation-duration: 11s; }
.pf.mx-pf:hover .mx-scene i,
.mx-touch .pf.mx-pf.is-live .mx-scene i { animation-play-state: running; }
@keyframes mxOrbit { 50% { transform: translate(18%, 12%) scale(1.15); } 100% { transform: translate(-10%, 20%) scale(0.9); } }

.mx-scene .mx-scan {                       /* faint scanlines = "footage" texture */
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.mx-scene .mx-tc {                         /* timecode */
  position: absolute; right: 12px; bottom: 10px;
  font: 600 0.6rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pf.mx-pf:hover .mx-tc { opacity: 1; }

.mx-pf-sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-120%);
}
.pf.mx-pf:hover .mx-pf-sweep { transform: translateX(120%); transition: transform 1.1s var(--mx-ease-io); }

.pf.mx-pf .pf-play i { position: relative; }
.pf.mx-pf .pf-play i::before,
.pf.mx-pf .pf-play i::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
}
.pf.mx-pf:hover .pf-play i::before { animation: mxRipple 1.6s var(--mx-ease) infinite; }
.pf.mx-pf:hover .pf-play i::after  { animation: mxRipple 1.6s var(--mx-ease) 0.5s infinite; }
@keyframes mxRipple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }

.pf.mx-pf .pf-body h3,
.pf.mx-pf .pf-body .kind { transition: transform 0.6s var(--mx-ease), color 0.4s ease; }
.pf.mx-pf:hover .pf-body h3 { transform: translateX(6px); }
.pf.mx-pf:hover .pf-body .kind { transform: translateX(3px); }

/* The grid glows faintly where the cursor is */
.pf-grid.mx-glowfield { position: relative; }
.pf-grid.mx-glowfield::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(43, 107, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pf-grid.mx-glowfield:hover::before { opacity: 1; }


/* 08. MOTION GRAPHICS SHOWCASE ========================================== */
.mx-show-sec { padding-bottom: clamp(2rem, 5vw, 4rem); }

.mx-rail {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 2rem;
}
.mx-rail::-webkit-scrollbar { display: none; }

.mx-rail-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-inline: max(var(--pad-x), calc((100vw - var(--wrap)) / 2 + var(--pad-x)));
  width: max-content;
}

/* Desktop: the rail is pinned and scroll drives it sideways */
.mx-rail.is-pinned {
  overflow: visible;
  height: var(--rail-h, 300vh);
  scroll-snap-type: none;
  padding: 0;
}
.mx-rail.is-pinned .mx-rail-track {
  position: sticky;
  top: 0;
  height: 100vh;
  align-items: center;
  will-change: transform;
}
.mx-show-sec { overflow-x: clip; }

.mx-tile {
  position: relative;
  flex: none;
  width: clamp(260px, 28vw, 380px);
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform 0.6s var(--mx-ease), border-color 0.4s ease;
}
.mx-tile:hover { transform: translateY(-8px); border-color: var(--line-bright); }
.mx-stage-box {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #0f1a3d, #05070f 70%);
  isolation: isolate;
}
.mx-stage-box > * { position: absolute; }
.mx-tile-cap {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1.05rem 1.2rem 1.15rem;
  border-top: 1px solid var(--line);
}
.mx-tile-cap span { font: 600 0.7rem/1 var(--font-display); letter-spacing: 0.2em; color: var(--cyan); }
.mx-tile-cap b { font: 700 1rem/1.2 var(--font-display); }

/* Each tile only animates while it is visible */
.mx-tile .mx-stage-box * { animation-play-state: paused; }
.mx-tile.is-live .mx-stage-box * { animation-play-state: running; }

/* 01 · Logo animation — mark assembles, wordmark tracks in */
.t-logo .lg { left: 50%; top: 40%; width: 42%; aspect-ratio: 1.6; transform: translate(-50%, -50%); }
.t-logo .lg span { position: absolute; top: 0; bottom: 0; width: 55%; }
.t-logo .lg-v { left: 0; background: linear-gradient(160deg, #00d1ff, #3b82f6); clip-path: polygon(0 0, 34% 0, 58% 62%, 72% 0, 100% 0, 66% 100%, 46% 100%); animation: mxLgV 3.6s var(--mx-ease) infinite; }
.t-logo .lg-z { right: 0; background: linear-gradient(200deg, #f59e0b, #ec4899 55%, #a855f7); clip-path: polygon(14% 0, 100% 0, 46% 74%, 100% 74%, 100% 100%, 0 100%, 54% 26%, 0 26%); animation: mxLgZ 3.6s var(--mx-ease) infinite; }
.t-logo .lg-word { left: 0; right: 0; top: 68%; text-align: center; font: 800 1.05rem/1 var(--font-display); letter-spacing: 0.5em; color: #fff; animation: mxLgWord 3.6s var(--mx-ease) infinite; }
@keyframes mxLgV { 0% { transform: translateX(-60%) skewX(-12deg); opacity: 0; } 22%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes mxLgZ { 0%, 8% { transform: translateX(60%) skewX(12deg); opacity: 0; } 30%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes mxLgWord { 0%, 30% { letter-spacing: 1.4em; opacity: 0; filter: blur(6px); } 50%, 85% { letter-spacing: 0.32em; opacity: 1; filter: none; } 100% { opacity: 0; } }

/* 02 · Kinetic typography */
.t-kinetic .kt { inset: 0; display: grid; align-content: center; justify-items: center; gap: 0.1rem; }
.t-kinetic .kt span { font: 800 2.4rem/0.95 var(--font-display); letter-spacing: -0.02em; color: #fff; opacity: 0; animation: mxKt 3.2s var(--mx-ease) infinite; }
.t-kinetic .kt span:nth-child(2) { animation-delay: 0.18s; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8); }
.t-kinetic .kt span:nth-child(3) { animation-delay: 0.36s; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes mxKt {
  0%   { transform: translateY(80%) scaleY(1.6); opacity: 0; }
  18%  { transform: none; opacity: 1; }
  70%  { transform: none; opacity: 1; }
  85%  { transform: translateX(-40%) skewX(-20deg); opacity: 0; }
  100% { opacity: 0; }
}

/* 03 · Product reveal — spotlight sweeps across a hero product */
.t-product .mx-stage-box { background: #07060d; }
.t-product .pr-light { inset: -20%; background: radial-gradient(28% 40% at 50% 50%, rgba(255, 220, 180, 0.55), transparent 70%); animation: mxSpot 4s var(--mx-ease-io) infinite; }
.t-product .pr-bottle { left: 50%; bottom: 22%; width: 22%; height: 52%; margin-left: -11%; border-radius: 40% 40% 12% 12% / 18% 18% 8% 8%; background: linear-gradient(90deg, #1a0e22, #6d2c5f 40%, #ffb347 52%, #6d2c5f 60%, #1a0e22); background-size: 300% 100%; animation: mxRim 4s var(--mx-ease-io) infinite; }
.t-product .pr-bottle i { position: absolute; left: 30%; right: 30%; top: -14%; height: 16%; border-radius: 4px; background: #2a1830; }
.t-product .pr-floor { left: 15%; right: 15%; bottom: 16%; height: 8%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 200, 150, 0.4), transparent 70%); }
@keyframes mxSpot { 0% { transform: translateX(-40%); opacity: 0.2; } 50% { transform: none; opacity: 1; } 100% { transform: translateX(40%); opacity: 0.2; } }
@keyframes mxRim  { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 04 · AI visuals — noise resolves into form */
.t-ai .ai-noise { inset: 0; background:
  radial-gradient(circle at 30% 30%, #2b6bff 0 2px, transparent 3px) 0 0/14px 14px,
  radial-gradient(circle at 70% 60%, #a855f7 0 2px, transparent 3px) 0 0/18px 18px,
  radial-gradient(circle at 50% 50%, #19e3ff 0 1px, transparent 2px) 0 0/9px 9px;
  animation: mxNoise 4s ease-in-out infinite; }
.t-ai .ai-form { left: 50%; top: 50%; width: 56%; aspect-ratio: 1; margin: -28% 0 0 -28%; border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; background: conic-gradient(from 0deg, #19e3ff, #2b6bff, #a855f7, #e049c3, #ffb347, #19e3ff); filter: blur(2px); animation: mxForm 4s ease-in-out infinite, mxRot 12s linear infinite; }
.t-ai .ai-scan { left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, #7af0ff, transparent); box-shadow: 0 0 14px #19e3ff; animation: mxScan 4s ease-in-out infinite; }
@keyframes mxNoise { 0%, 20% { opacity: 1; filter: blur(0); } 60%, 100% { opacity: 0.08; filter: blur(4px); } }
@keyframes mxForm  { 0%, 25% { transform: scale(0.2); opacity: 0; } 65%, 100% { transform: scale(1); opacity: 0.95; } }
@keyframes mxScan  { 0% { transform: translateY(0); } 60% { transform: translateY(calc(100cqh - 2px)); } 100% { transform: translateY(0); opacity: 0; } }
.t-ai .mx-stage-box { container-type: size; }

/* 05 · Social media ads — phone feed with ad pops */
.t-social .so-phone { left: 50%; top: 50%; width: 46%; aspect-ratio: 9 / 18; margin-left: -23%; transform: translateY(-50%); border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.25); background: #0a0f24; overflow: hidden; }
.t-social .so-feed { position: absolute; inset: 6px; display: grid; gap: 6px; animation: mxFeed 4.5s var(--mx-ease-io) infinite; }
.t-social .so-feed i { display: block; aspect-ratio: 9 / 13; border-radius: 10px; background: linear-gradient(140deg, #2b6bff, #a855f7); }
.t-social .so-feed i:nth-child(2) { background: linear-gradient(140deg, #ffb347, #e049c3); }
.t-social .so-feed i:nth-child(3) { background: linear-gradient(140deg, #19e3ff, #2b6bff); }
.t-social .so-like { position: absolute; right: 10%; bottom: 18%; color: #ff4d6d; font-size: 1.2rem; animation: mxLike 4.5s ease infinite; }
.t-social .so-tag { position: absolute; left: 10%; top: 12%; padding: 3px 7px; border-radius: 6px; background: #fff; color: #0a0f24; font: 800 0.7rem/1 var(--font-display); animation: mxTag 4.5s var(--mx-ease) infinite; }
@keyframes mxFeed { 0%, 25% { transform: translateY(0); } 33%, 58% { transform: translateY(-62%); } 66%, 92% { transform: translateY(-124%); } 100% { transform: translateY(0); } }
@keyframes mxLike { 0%, 40% { transform: scale(0); opacity: 0; } 46% { transform: scale(1.4); opacity: 1; } 60% { transform: translateY(-40px) scale(1); opacity: 0; } 100% { opacity: 0; } }
@keyframes mxTag  { 0%, 62% { transform: scale(0) rotate(-20deg); } 70%, 90% { transform: scale(1) rotate(-6deg); } 100% { transform: scale(0); } }

/* 06 · Cinematic transitions — diagonal wipe between two shots */
.t-trans .tr-a { inset: 0; background: linear-gradient(160deg, #0c1b4a, #2b6bff 60%, #19e3ff); }
.t-trans .tr-b { inset: 0; background: linear-gradient(200deg, #3b1055, #e049c3 60%, #ffb347); clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); animation: mxWipe 3.6s var(--mx-ease-io) infinite; }
.t-trans .tr-wipe { top: -20%; bottom: -20%; width: 6px; left: 0; background: #fff; box-shadow: 0 0 24px #fff, 0 0 60px #19e3ff; transform: skewX(-14deg); animation: mxWipeBar 3.6s var(--mx-ease-io) infinite; }
@keyframes mxWipe    { 0%, 15% { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); } 55%, 80% { clip-path: polygon(0 0, 120% 0, 100% 100%, 0 100%); } 100% { clip-path: polygon(120% 0, 120% 0, 100% 100%, 100% 100%); } }
@keyframes mxWipeBar { 0%, 15% { left: -10%; opacity: 0; } 20% { opacity: 1; } 55% { left: 110%; opacity: 1; } 56%, 100% { opacity: 0; left: 110%; } }

/* 07 · Brand animation — shapes orbit and settle around a word */
.t-brand .br-shapes { inset: 0; }
.t-brand .br-shapes i { position: absolute; left: 50%; top: 45%; width: 18%; aspect-ratio: 1; animation: mxBrand 4s var(--mx-ease) infinite; }
.t-brand .br-shapes i:nth-child(1) { border-radius: 50%; background: #19e3ff; --tx: -90%; --ty: -150%; }
.t-brand .br-shapes i:nth-child(2) { background: #a855f7; --tx: 40%; --ty: -160%; border-radius: 6px; animation-delay: 0.12s; }
.t-brand .br-shapes i:nth-child(3) { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #ffb347; --tx: -20%; --ty: 60%; animation-delay: 0.24s; }
.t-brand .br-word { left: 0; right: 0; top: 58%; text-align: center; font: 800 1.9rem/1 var(--font-display); letter-spacing: 0.08em; color: #fff; animation: mxBrWord 4s var(--mx-ease) infinite; }
@keyframes mxBrand  { 0% { transform: translate(-50%, -50%) scale(0) rotate(-180deg); } 30%, 80% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(0); } 100% { transform: translate(-50%, -50%) scale(0); } }
@keyframes mxBrWord { 0%, 25% { clip-path: inset(0 100% 0 0); } 45%, 82% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }

/* 08 · Advertisement graphics — price burst */
.t-adgfx .mx-stage-box { background: linear-gradient(160deg, #1a0f3d, #05070f); }
.t-adgfx .ad-burst { left: 50%; top: 42%; width: 64%; aspect-ratio: 1; margin: -32% 0 0 -32%; background: conic-gradient(from 0deg, #ffb347 0 10deg, transparent 10deg 30deg) ; mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); animation: mxRot 10s linear infinite; opacity: 0.6; }
.t-adgfx .ad-price { left: 0; right: 0; top: 30%; text-align: center; font: 800 3rem/1 var(--font-display); color: #fff; animation: mxPrice 3s var(--mx-ease) infinite; }
.t-adgfx .ad-price small { display: block; font-size: 0.7rem; letter-spacing: 0.4em; color: #ffb347; margin-bottom: 0.4rem; }
.t-adgfx .ad-bar { left: 18%; right: 18%; bottom: 16%; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.t-adgfx .ad-bar i { position: absolute; inset: 0; background: var(--grad-warm); transform-origin: left; animation: mxFill 3s var(--mx-ease) infinite; }
@keyframes mxPrice { 0% { transform: scale(2.2); opacity: 0; filter: blur(10px); } 25%, 85% { transform: none; opacity: 1; filter: none; } 100% { opacity: 0; } }
@keyframes mxFill  { 0%, 20% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }


/* 09. AI CREATIVE PIPELINE ============================================== */
.mx-pipe { position: relative; max-width: 980px; margin: 0 auto; padding: 1rem 0; }

.mx-pipe-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  height: 100%;
  margin-left: -2px;
  overflow: visible;
}
.mx-pipe-line path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mx-pipe-line .track { stroke: rgba(255, 255, 255, 0.08); }
.mx-pipe-line .fill  { stroke: url(#pipeG); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--pp, 0)); }

.mx-pipe-spark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 227, 255, 0.25), 0 0 30px 6px rgba(25, 227, 255, 0.6);
  transform: translate3d(0, var(--sy, 0px), 0);
  z-index: 3;
}

.mx-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.2rem, 5vw, 3.6rem); }
.mx-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
}
.mx-stage .mx-node {
  grid-column: 2;
  justify-self: center;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: #070b1a;
  font: 700 0.72rem/1 var(--font-display);
  color: var(--text-dim);
  z-index: 2;
  transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.6s var(--mx-ease), transform 0.6s var(--mx-ease);
}
.mx-stage-card {
  grid-row: 1;
  grid-column: 1;
  padding: 1.3rem 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: opacity 0.8s var(--mx-ease), filter 0.8s var(--mx-ease), transform 0.8s var(--mx-ease), border-color 0.6s ease;
}
.mx-stage:nth-child(even) .mx-stage-card { grid-column: 3; }
/* dimmed "not reached yet" state — only when JS is driving the pipeline */
.mx-js .mx-stage:not(.is-on) .mx-stage-card { opacity: 0.25; filter: blur(3px); transform: translate3d(-30px, 0, 0) scale(0.97); }
.mx-js .mx-stage:nth-child(even):not(.is-on) .mx-stage-card { transform: translate3d(30px, 0, 0) scale(0.97); }
.mx-stage-card b {
  display: block;
  font: 800 1.05rem/1 var(--font-display);
  letter-spacing: 0.22em;
  margin-bottom: 0.5rem;
}
.mx-stage-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }

.mx-stage.is-on .mx-stage-card { opacity: 1; filter: none; transform: none; border-color: var(--line-bright); }
.mx-stage.is-on .mx-node { color: #fff; border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(25, 227, 255, 0.08), 0 0 26px rgba(25, 227, 255, 0.35); transform: scale(1.08); }

/* Stage visuals */
.mx-vis { position: relative; margin-top: 1rem; height: 74px; border-radius: 12px; overflow: hidden; background: rgba(4, 6, 15, 0.7); border: 1px solid var(--line); }
.mx-vis * { animation-play-state: paused; }
.mx-stage.is-on .mx-vis * { animation-play-state: running; }

.v-idea i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 20px #ffb347; }
.v-idea i:nth-child(2), .v-idea i:nth-child(3) { background: transparent; box-shadow: none; border: 1px solid rgba(255, 179, 71, 0.6); animation: mxRipple 2s var(--mx-ease) infinite; width: 24px; height: 24px; margin: -12px; }
.v-idea i:nth-child(3) { animation-delay: 0.7s; }

.v-prompt code { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 0.9rem; font: 500 0.72rem/1.4 ui-monospace, Menlo, monospace; color: #7af0ff; white-space: nowrap; overflow: hidden; }
.v-prompt code { clip-path: inset(0 100% 0 0); animation: mxTypeOn 3.6s steps(48) infinite; }
.v-prompt .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; background: #7af0ff; animation: mxRec 0.9s steps(1) infinite; }
@keyframes mxTypeOn { 0% { clip-path: inset(0 100% 0 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }

.v-ai { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; padding: 10px; }
.v-ai i { position: relative; display: block; border-radius: 4px; background: linear-gradient(140deg, #2b6bff, #a855f7); opacity: 0.2; animation: mxGen 1.8s ease-in-out infinite; }
.v-ai i:nth-child(2) { animation-delay: 0.1s; } .v-ai i:nth-child(3) { animation-delay: 0.2s; } .v-ai i:nth-child(4) { animation-delay: 0.3s; }
.v-ai i:nth-child(5) { animation-delay: 0.4s; } .v-ai i:nth-child(6) { animation-delay: 0.5s; } .v-ai i:nth-child(7) { animation-delay: 0.6s; }
.v-ai i:nth-child(8) { animation-delay: 0.7s; } .v-ai i:nth-child(9) { animation-delay: 0.8s; }
@keyframes mxGen { 50% { opacity: 1; transform: scaleY(1.2); } }

.v-image span { position: absolute; inset: 0; background: linear-gradient(160deg, #0c1b4a, #2b6bff 50%, #ffb347); filter: blur(14px) saturate(0.4); animation: mxSharpen 3s var(--mx-ease) infinite; }
@keyframes mxSharpen { 0% { filter: blur(14px) saturate(0.4); transform: scale(1.2); } 60%, 100% { filter: blur(0) saturate(1.1); transform: scale(1); } }

.v-video span { position: absolute; inset: 0; background: linear-gradient(160deg, #0c1b4a, #2b6bff 50%, #ffb347); animation: mxKenBurns 4s ease-in-out infinite alternate; }
.v-video em { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #19e3ff; transform-origin: left; animation: mxFill 4s linear infinite; }
@keyframes mxKenBurns { to { transform: scale(1.3) translate(-6%, 4%); } }

.v-motion { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.v-motion span { font: 800 1.1rem/1 var(--font-display); color: #fff; opacity: 0; animation: mxKt 2.8s var(--mx-ease) infinite; }
.v-motion span:nth-child(2) { animation-delay: 0.15s; color: #ffb347; }
.v-motion span:nth-child(3) { animation-delay: 0.3s; color: #19e3ff; }

.v-final { display: flex; align-items: center; justify-content: center; gap: 10px; }
.v-final span { display: block; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, 0.6); background: linear-gradient(160deg, rgba(43, 107, 255, 0.4), rgba(168, 85, 247, 0.4)); animation: mxPop 2.4s var(--mx-ease) infinite; }
.v-final .r916 { width: 22px; height: 40px; }
.v-final .r45  { width: 32px; height: 40px; animation-delay: 0.15s; }
.v-final .r11  { width: 40px; height: 40px; animation-delay: 0.3s; }
.v-final .r169 { width: 64px; height: 36px; animation-delay: 0.45s; }
@keyframes mxPop { 0% { transform: translateY(14px) scale(0.6); opacity: 0; } 25%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }


/* 10. GLOBAL STUDIO ART ================================================= */
.mx-globe-art .star { display: none; }
.mx-globe {
  position: absolute;
  left: 50%; top: 45%;
  width: 52%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(122, 240, 255, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(43, 107, 255, 0.35), rgba(4, 6, 15, 0.2) 60%);
  box-shadow: inset 0 0 40px rgba(25, 227, 255, 0.15), 0 0 80px -20px rgba(43, 107, 255, 0.6);
}
.mx-globe i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(122, 240, 255, 0.35);
  animation: mxMeridian 8s linear infinite;
}
.mx-globe i:nth-child(2) { animation-delay: -2s; }
.mx-globe i:nth-child(3) { animation-delay: -4s; }
.mx-globe i:nth-child(4) { animation-delay: -6s; }
.mx-globe::before, .mx-globe::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  border-top: 1px solid rgba(122, 240, 255, 0.28);
}
.mx-globe::before { top: 33%; }
.mx-globe::after  { top: 66%; }
.mx-globe b {                                   /* signal travelling across */
  position: absolute;
  left: 10%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px #19e3ff;
  offset-path: path("M0 0 C 40 -70, 140 -70, 180 0");
  animation: mxSignal 3.6s var(--mx-ease-io) infinite;
}
@keyframes mxMeridian { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.02); } 100% { transform: scaleX(-1); } }
@keyframes mxSignal { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }


/* 11. FINAL CTA ========================================================= */
.mx-final { position: relative; overflow: hidden; isolation: isolate; }
.mx-final > .wrap { position: relative; z-index: 2; }
.mx-final-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.mx-final-strips { position: absolute; inset: 0; display: flex; justify-content: space-around; opacity: 0.55; }
.mx-final-strips i {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(122, 160, 255, 0.35) 40%, transparent);
  position: relative;
  overflow: hidden;
}
.mx-final-strips i::after {
  content: "";
  position: absolute;
  left: -1px;
  width: 3px;
  height: 22%;
  background: linear-gradient(to bottom, transparent, #7af0ff, transparent);
  animation: mxDrop 4.2s var(--mx-ease-io) infinite;
}
.mx-final-strips i:nth-child(2)::after { animation-delay: 0.9s; }
.mx-final-strips i:nth-child(3)::after { animation-delay: 2.1s; }
.mx-final-strips i:nth-child(4)::after { animation-delay: 0.4s; }
.mx-final-strips i:nth-child(5)::after { animation-delay: 1.6s; }
.mx-final-strips i:nth-child(6)::after { animation-delay: 2.8s; }
@keyframes mxDrop { from { top: -25%; } to { top: 110%; } }

.mx-final-glow {
  position: absolute;
  width: 760px; height: 760px;
  left: var(--fx, 50%); top: var(--fy, 50%);
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 107, 255, 0.32), rgba(168, 85, 247, 0.16) 40%, transparent 68%);
  filter: blur(10px);
  transition: left 1.2s var(--mx-ease), top 1.2s var(--mx-ease);
}

.mx-final-marquee {
  position: absolute;
  left: 0;
  bottom: 6%;
  display: flex;
  white-space: nowrap;
  font: 800 clamp(3rem, 9vw, 7.5rem)/1 var(--font-display);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  animation: mxMarquee 40s linear infinite;
}
.mx-final-marquee span { padding-right: 2rem; }
@keyframes mxMarquee { to { transform: translateX(-50%); } }

.mx-final-title .mx-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.mx-final-title .mx-mask > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.2s var(--mx-ease); }
.mx-final-title.is-in .mx-mask > span { transform: none; }
.mx-final-title.is-in .mx-mask:nth-of-type(2) > span { transition-delay: 0.15s; }

.mx-cta { position: relative; overflow: hidden; }
.mx-cta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: mxShine 3.8s var(--mx-ease-io) infinite;
  pointer-events: none;
}
@keyframes mxShine { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
.mx-cta::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--grad-brand);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.55;
  animation: mxBreath 3s ease-in-out infinite;
}


/* 12. CUSTOM CURSOR & MAGNETIC ========================================== */
.mx-cursor { display: none; }
html.mx-cursor-on .mx-cursor {
  display: block;
  position: fixed;
  left: 0; top: 0;
  z-index: 10000;
  pointer-events: none;
}
html.mx-cursor-on,
html.mx-cursor-on a,
html.mx-cursor-on button,
html.mx-cursor-on [data-cursor] { cursor: none; }
html.mx-cursor-on input,
html.mx-cursor-on textarea,
html.mx-cursor-on select { cursor: auto; }

.mx-cursor-dot,
.mx-cursor-ring {
  position: fixed;
  left: 0; top: 0;
  border-radius: 50%;
  will-change: transform;
}
.mx-cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  mix-blend-mode: difference;
}
.mx-cursor-ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: width 0.45s var(--mx-ease), height 0.45s var(--mx-ease), margin 0.45s var(--mx-ease),
              background-color 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}
.mx-cursor-label {
  font: 700 0.62rem/1 var(--font-display);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: #04060f;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s var(--mx-ease);
}
.mx-cursor.is-link .mx-cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(122, 240, 255, 0.8); background: rgba(25, 227, 255, 0.06); }
.mx-cursor.is-label .mx-cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: #fff; border-color: #fff; }
.mx-cursor.is-label .mx-cursor-label { opacity: 1; transform: none; }
.mx-cursor.is-label .mx-cursor-dot { opacity: 0; }
.mx-cursor.is-text .mx-cursor-ring { opacity: 0; }
.mx-cursor.is-hidden { opacity: 0; }

[data-magnetic] { transition: transform 0.5s var(--mx-ease); will-change: transform; }


/* 13. RESPONSIVE ======================================================== */
@media (max-width: 1180px) {
  .mx-frame.f1 { left: 42%; top: 9%; }
  .mx-frame.f3 { display: none; }
}
@media (max-width: 980px) {
  .mx-frame.f1, .mx-frame.f3 { display: none; }
  .mx-frame.f2 { width: 130px; bottom: 4%; right: -2%; }
  .mx-frame.f4 { width: 70px; top: 10%; right: -1%; }
  .mx-aurora i { filter: blur(50px); }

  .mx-pipe-line, .mx-pipe-spark { left: 23px; }
  .mx-stage { grid-template-columns: 46px 1fr; gap: 1rem; }
  .mx-stage .mx-node { grid-column: 1; }
  .mx-stage-card,
  .mx-stage:nth-child(even) .mx-stage-card { grid-column: 2; }
  .mx-js .mx-stage:not(.is-on) .mx-stage-card,
  .mx-js .mx-stage:nth-child(even):not(.is-on) .mx-stage-card { transform: translate3d(20px, 0, 0); }
}
@media (max-width: 680px) {
  .mx-frame { display: none; }
  .mx-streaks i:nth-child(n+3) { display: none; }
  .mx-tile { width: 78vw; }
  .mx-final-marquee { bottom: 3%; }
  .mx-equation { gap: 0.4rem; font-size: 0.64rem; }
  .mx-equation span { padding: 0.45rem 0.65rem; }
}


/* 14. REDUCED MOTION ==================================================== */
/* styles.css already freezes animation timing under reduced motion; this
   makes sure nothing is left hidden mid-entrance and nothing is pinned. */
@media (prefers-reduced-motion: reduce) {
  .mx-particles, .mx-streaks, .mx-intro, .mx-progress { display: none !important; }
  .mx-frame { opacity: 0.7 !important; transform: rotate(var(--rot, 0deg)) !important; }
  .mx-word, .hero-copy > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .section-head.rv h2 { clip-path: none !important; transform: none !important; }
  .section-head.rv .lead, .section-head.rv .eyebrow { filter: none !important; opacity: 1 !important; }
  .mx-stage-card { opacity: 1 !important; filter: none !important; transform: none !important; }
  .mx-final-title .mx-mask > span { transform: none !important; }
  hr.rule.mx-rule { transform: none !important; }
  .mx-rail.is-pinned { height: auto !important; }
  .mx-rail.is-pinned .mx-rail-track { position: static !important; height: auto !important; transform: none !important; }
}
html.mx-reduce .mx-word,
html.mx-reduce .hero-copy > * { opacity: 1; transform: none; filter: none; }
