/* ============================================================
 * chm-lusion.css — animation layer for chemicals-lusion.html
 *
 *   1. the hero route line is rebuilt as an isometric scene — hub and
 *      beat left, the AI Platform core centre, GT / MT / QC right
 *   2. #pillars gets an animated radial vortex behind it (canvas,
 *      injected by the script)
 *   3. its card grid becomes a sticky deck — every card pins at the
 *      same offset so the next rises up and covers it exactly
 *   4. the key takeaways move onto the brand gradient, with the CTA
 *      band's dotted corners
 *   5. choreographed entrances for the rest of the page
 *
 * Purely additive. Every rule is scoped under a class the script
 * adds, so nothing outside those sections is touched and no copy
 * changes. Loaded last, so two-class selectors win over the page's
 * own rules without !important.
 * ========================================================== */

/* ============================================================
 * 0. Hero scene — the season cascade, in 3D
 *
 * One 6s content loop:
 *
 *   bags ride the plant's bagging line and the tractor works the rows
 *   stock falls plant -> distributor -> dealer -> field down the chutes,
 *     and the order climbs back up the chain more slowly
 *   each terrace's rim lights as the fall reaches it, plant first
 *   the overlays report on their own terrace: pack line, stock sync,
 *     GST billing - and the season dial drives the lot
 *
 * The 3D is not a drawn fake: a perspective camera on the <svg>
 * itself, three depth planes that parallax against it, a forward
 * dolly on the sweep, and a cast shadow under each stage that
 * spreads as the stage lifts. Keyed off one --cmh-cyc.
 * ========================================================== */

.cmh-scene{--cmh-cyc:6s;}

/* the scene is a 600x330 stage, not the 400x210 route line it
   replaces, so the card lets it set its own height */
.hero-card .cmh-scene{
  display:block;width:100%;max-width:100%;height:auto;overflow:visible;
  transform-origin:50% 56%;
  animation:cmhCam 13s ease-in-out infinite;
  will-change:transform;
}
/* A real perspective transform on the <svg> itself, not a fake tilt
   inside it: SVG child transforms are flattened to 2D in every engine,
   so the only place a genuine 3D rotation survives is the replaced
   element. The scale is the brief's forward sweep - a slow dolly in
   and back out, continuous, never a cut. 13s against the 6s content
   loop, so camera and scene never land on the same beat twice. */
@keyframes cmhCam{
  0%,100%{transform:perspective(1100px) rotateX(1.3deg) rotateY(-2.6deg) scale(1);}
  50%{transform:perspective(1100px) rotateX(-1.3deg) rotateY(2.6deg) scale(1.035);}
}
/* a grid item's automatic minimum is its min-content width, which for
   a 600-unit scene would push the hero column past the viewport */
.hero-grid > .hero-card{min-width:0;}

/* ---------- the three depth planes ----------
 * Same clock as the camera, different travel: the ground barely
 * shifts, the stages shift a little, the overlays floating nearest
 * shift most. That difference is the parallax, and it is what makes
 * the sweep read as depth instead of as the picture sliding. */
.cmh-scene .cmh-plane{animation:cmhDrift 13s ease-in-out infinite;}
.cmh-scene .cmh-plane.p1{--amp:2px;}
.cmh-scene .cmh-plane.p2{--amp:6px;}
.cmh-scene .cmh-plane.p3{--amp:13px;}
@keyframes cmhDrift{
  0%,100%{transform:translateX(calc(var(--amp) * -1));}
  50%{transform:translateX(var(--amp));}
}

/* ---------- each stage floating over its own shadow ----------
 * The shadow sits OUTSIDE the lifting group: it stays on the ground
 * and spreads and weakens as the stage rises away from it, then
 * tightens and darkens as it settles. Without that counter-motion the
 * lift reads as the art sliding up the page. */
.cmh-scene .cmh-lift{animation:cmhLift 5s ease-in-out infinite;}
.cmh-scene .cmh-drop{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:cmhDrop 5s ease-in-out infinite;
}
.cmh-scene .cmh-area.s2 .cmh-lift,
.cmh-scene .cmh-area.s2 .cmh-drop{animation-delay:-1.25s;}
.cmh-scene .cmh-area.s3 .cmh-lift,
.cmh-scene .cmh-area.s3 .cmh-drop{animation-delay:-2.5s;}
.cmh-scene .cmh-area.s4 .cmh-lift,
.cmh-scene .cmh-area.s4 .cmh-drop{animation-delay:-3.75s;}
@keyframes cmhLift{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
@keyframes cmhDrop{
  0%,100%{opacity:1;transform:scale(.92);}
  50%{opacity:.55;transform:scale(1.14);}
}

/* ---------- glass ---------- */
.cmh-scene .cmh-glass{
  fill:rgba(190,226,255,.1);
  stroke:rgba(160,212,255,.34);
  stroke-width:1.2;
}

/* ---------- the stage ---------- */
.cmh-scene .cmh-pool{animation:cmhPool 4s ease-in-out infinite;}
@keyframes cmhPool{
  0%,100%{opacity:.6;}
  50%{opacity:1;}
}

/* ---------- the data lines ----------
 * The cascade falls down the chutes and the order climbs back up.
 */
/* The cascade falls: each chute carries a pulse down it, a beat
   apart, so the fall reads plant -> distributor -> dealer -> field
   in that order rather than three lamps blinking. The return line
   runs the other way on the same clock - that is the order coming
   back up the chain - and is deliberately slower, because demand
   climbs the chain more slowly than stock falls down it. */
.cmh-scene .cmh-fall{
  stroke-dasharray:14 60;
  animation:cmhFall var(--cmh-cyc) cubic-bezier(.3,0,.5,1) infinite;
}
.cmh-scene .cmh-fall.f2{animation-delay:calc(var(--cmh-cyc) * 0.14);}
.cmh-scene .cmh-fall.f3{animation-delay:calc(var(--cmh-cyc) * 0.28);}
@keyframes cmhFall{
  0%{stroke-dashoffset:74;opacity:0;}
  10%,62%{opacity:1;}
  70%,100%{stroke-dashoffset:0;opacity:0;}
}
.cmh-scene .cmh-return{
  stroke-dasharray:20 420;
  animation:cmhReturn calc(var(--cmh-cyc) * 1.5) linear infinite;
}
@keyframes cmhReturn{
  0%{stroke-dashoffset:0;opacity:0;}
  12%,78%{opacity:1;}
  100%{stroke-dashoffset:440;opacity:0;}
}

/* ---------- the season dial ----------
 * The needle sweeps Kharif into Rabi once per cycle and the whole
 * cascade beats off it. steps are deliberately avoided: a season
 * does not click over, it closes. */
.cmh-scene .cmh-needle{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:cmhNeedle var(--cmh-cyc) cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes cmhNeedle{
  0%,8%{transform:rotate(-74deg);}
  46%,54%{transform:rotate(0deg);}
  92%,100%{transform:rotate(74deg);}
}
.cmh-scene .cmh-season{animation:cmhSeasonGlow var(--cmh-cyc) ease-in-out infinite;}
@keyframes cmhSeasonGlow{
  0%,100%{opacity:.82;}
  50%{opacity:1;}
}

/* the bags riding the plant line, a third of a loop apart, moving
   along the east axis - which is why the step is (x, x/2) */
.cmh-scene .cmh-bag{animation:cmhBag 3.4s linear infinite;}
.cmh-scene .cmh-bag.b2{animation-delay:-1.13s;}
.cmh-scene .cmh-bag.b3{animation-delay:-2.26s;}
@keyframes cmhBag{
  0%{opacity:0;transform:translate(0,0);}
  12%,84%{opacity:1;}
  100%{opacity:0;transform:translate(40px,20px);}
}
/* the tractor works the rows and comes back */
.cmh-scene .cmh-tractor{animation:cmhTractor 7s ease-in-out infinite;}
@keyframes cmhTractor{
  0%,100%{transform:translate(0,0);}
  50%{transform:translate(-26px,13px);}
}
/* the crop rows green up as the season turns */
.cmh-scene .cmh-crop{
  stroke-dasharray:34;
  animation:cmhCrop var(--cmh-cyc) ease-out infinite;
}
.cmh-scene .cmh-crop.c2{animation-delay:calc(var(--cmh-cyc) * -0.03);}
.cmh-scene .cmh-crop.c3{animation-delay:calc(var(--cmh-cyc) * -0.06);}
.cmh-scene .cmh-crop.c4{animation-delay:calc(var(--cmh-cyc) * -0.09);}
.cmh-scene .cmh-crop.c5{animation-delay:calc(var(--cmh-cyc) * -0.12);}
@keyframes cmhCrop{
  0%,40%{stroke-dashoffset:34;}
  62%,92%{stroke-dashoffset:0;}
  100%{stroke-dashoffset:34;}
}
.cmh-scene .cmh-rim{animation:cmhRim var(--cmh-cyc) ease-in-out infinite;}
.cmh-scene .cmh-area.s2 .cmh-rim{animation-delay:calc(var(--cmh-cyc) * 0.14);}
.cmh-scene .cmh-area.s3 .cmh-rim{animation-delay:calc(var(--cmh-cyc) * 0.30);}
.cmh-scene .cmh-area.s4 .cmh-rim{animation-delay:calc(var(--cmh-cyc) * 0.50);}
@keyframes cmhRim{
  0%,100%{opacity:.5;}
  5%{opacity:1;}
  22%{opacity:.5;}
}

/* ---------- lit detail ---------- */
.cmh-scene .cmh-win,
.cmh-scene .cmh-glow{animation:cmhGlow 3.4s ease-in-out infinite;}
@keyframes cmhGlow{
  0%,100%{opacity:.68;}
  50%{opacity:1;}
}
/* the dispensary wall lights row by row as stock is checked off */
.cmh-scene .cmh-screen{animation:cmhScreen var(--cmh-cyc) ease-in-out infinite;}
.cmh-scene .cmh-screen.sc2{animation-delay:calc(var(--cmh-cyc) * -0.06);}
.cmh-scene .cmh-screen.sc3{animation-delay:calc(var(--cmh-cyc) * -0.12);}
.cmh-scene .cmh-screen.sc4{animation-delay:calc(var(--cmh-cyc) * -0.18);}
.cmh-scene .cmh-screen.sc5{animation-delay:calc(var(--cmh-cyc) * -0.24);}
.cmh-scene .cmh-screen.sc6{animation-delay:calc(var(--cmh-cyc) * -0.30);}
@keyframes cmhScreen{
  0%,100%{opacity:.5;}
  50%{opacity:1;}
}
.cmh-scene .cmh-tab{animation:cmhTab 2.6s ease-in-out infinite;}
@keyframes cmhTab{
  0%,100%{opacity:.75;}
  50%{opacity:1;}
}

/* ---------- the floating overlays ----------
 * Each lifts and brightens as the pulse reaches its own stage, on the
 * same offsets as the rims. */
.cmh-scene .cmh-card{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:cmhCard var(--cmh-cyc) ease-in-out infinite;
}
.cmh-scene .cmh-card.k2{animation-delay:calc(var(--cmh-cyc) * 0.14);}
.cmh-scene .cmh-card.k3{animation-delay:calc(var(--cmh-cyc) * 0.30);}
.cmh-scene .cmh-card.k4{animation-delay:calc(var(--cmh-cyc) * 0.50);}
@keyframes cmhCard{
  0%,100%{opacity:.78;transform:translateY(0);}
  6%{opacity:1;transform:translateY(-4px);}
  24%{opacity:.78;transform:translateY(0);}
}
.cmh-scene .cmh-lead{animation:cmhLead 2.6s linear infinite;}
@keyframes cmhLead{to{stroke-dashoffset:-14;}}
.cmh-scene .cmh-bar{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:cmhBar var(--cmh-cyc) ease-in-out infinite;
}
.cmh-scene .cmh-bar.b2{animation-delay:calc(var(--cmh-cyc) * -0.02);}
.cmh-scene .cmh-bar.b3{animation-delay:calc(var(--cmh-cyc) * -0.04);}
.cmh-scene .cmh-bar.b4{animation-delay:calc(var(--cmh-cyc) * -0.06);}
.cmh-scene .cmh-bar.b5{animation-delay:calc(var(--cmh-cyc) * -0.08);}
@keyframes cmhBar{
  0%,40%{transform:scaleY(.4);}
  56%{transform:scaleY(1);}
  92%,100%{transform:scaleY(.4);}
}
.cmh-scene .cmh-trend{
  stroke-dasharray:110;
  animation:cmhTrend var(--cmh-cyc) ease-in-out infinite;
}
@keyframes cmhTrend{
  0%,42%{stroke-dashoffset:110;}
  62%,92%{stroke-dashoffset:0;}
  100%{stroke-dashoffset:110;}
}

@media (prefers-reduced-motion:reduce){
  .hero-card .cmh-scene,
  .cmh-scene .cmh-plane,.cmh-scene .cmh-lift,.cmh-scene .cmh-drop,
  .cmh-scene .cmh-pool,.cmh-scene .cmh-fall,.cmh-scene .cmh-return,
  .cmh-scene .cmh-rim,.cmh-scene .cmh-bag,.cmh-scene .cmh-tractor,
  .cmh-scene .cmh-crop,.cmh-scene .cmh-win,.cmh-scene .cmh-glow,
  .cmh-scene .cmh-season,.cmh-scene .cmh-needle,.cmh-scene .cmh-screen,
  .cmh-scene .cmh-tab,.cmh-scene .cmh-card,.cmh-scene .cmh-lead,
  .cmh-scene .cmh-bar,.cmh-scene .cmh-trend{
    animation:none !important;transform:none !important;
  }
  /* the settled state: line running, chain lit, charts drawn */
  .cmh-scene .cmh-fall,.cmh-scene .cmh-return{stroke-dasharray:none !important;opacity:.6 !important;}
  .cmh-scene .cmh-rim,.cmh-scene .cmh-card,
  .cmh-scene .cmh-screen,.cmh-scene .cmh-season,
  .cmh-scene .cmh-bag{opacity:1 !important;}
  .cmh-scene .cmh-crop{stroke-dashoffset:0 !important;}
  .cmh-scene .cmh-trend{stroke-dashoffset:0 !important;}
}

/* ============================================================
 * 0b. Key takeaways, on the brand gradient
 *
 * The page ships these as plain numbered lines in a light box. They
 * become cards on --grad, matching the connected-platform tiles on
 * the other pages. Everything inside was coloured for a light ground,
 * so each piece is restated here; only colour changes, no copy moves.
 * ========================================================== */
.cm-tk .takeaways{background:transparent;border:0;box-shadow:none;padding:0;}
/* Four across instead of two. The page's own rule only steps down to
   one column at 700px, which would leave four cramped columns through
   the whole tablet range, so the two intermediate steps are added
   here: 4 -> 2 at 1199, 2 -> 1 where the page already does it. */
.cm-tk .tk-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
@media (max-width:1199px){
  .cm-tk .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  .cm-tk .tk-grid{grid-template-columns:1fr;}
}

.cm-tk .tk{
  background:var(--grad,linear-gradient(135deg,#701893,#1308AD));
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius,18px);
  padding:22px 20px;
  box-shadow:
    0 2px 6px rgba(32,10,70,.14),
    0 12px 30px rgba(32,10,70,.18);
  /* the dot corners below bleed past the edges, so the card has to
     position and clip them itself */
  position:relative;
  overflow:hidden;
}

/* the index chip was a pale lavender pill with purple numerals —
   invisible logic on a purple card, so it becomes a frosted chip */
.cm-tk .tk .mk{
  background:rgba(255,255,255,.18);
  color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}
.cm-tk .tk p,
.cm-tk .tk span:not(.mk){color:rgba(255,255,255,.82);}
/* centred over the four cards, as the reference lays it out — done
   here rather than in the markup so the heading's own text is left
   exactly as the page wrote it */
.cm-tk .takeaways > h3,
.cm-tk .takeaways > h2{color:var(--navy,#101F38);text-align:center;}

/* ---------- the CTA band's dotted corners, on these cards ----------
 * Same recipe the page uses for .cta: a 16px grid of 1.5px dots in
 * two patches, masked to a soft blob so the texture fades out rather
 * than stopping at a hard edge. */
.cm-tk .tk::before,
.cm-tk .tk::after{
  content:"";
  position:absolute;
  width:min(52%,240px);
  height:84%;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(circle,
    rgba(255,255,255,.32) 1.5px, transparent 1.6px);
  background-size:16px 16px;
}
.cm-tk .tk::before{
  left:-18px;top:-22px;
  -webkit-mask-image:radial-gradient(circle at 22% 30%, #000 0%, #000 40%, transparent 70%);
          mask-image:radial-gradient(circle at 22% 30%, #000 0%, #000 40%, transparent 70%);
}
.cm-tk .tk::after{
  right:-18px;bottom:-22px;
  -webkit-mask-image:radial-gradient(circle at 78% 70%, #000 0%, #000 40%, transparent 70%);
          mask-image:radial-gradient(circle at 78% 70%, #000 0%, #000 40%, transparent 70%);
}
/* the text rides above the texture */
.cm-tk .tk > *{position:relative;z-index:1;}


.cm-stacked{
  --cm-top: 104px;      /* where every card pins, clearing the header */
  --cm-gap: 15vh;       /* scroll distance between one pin and the next */
  --cm-min: 52vh;       /* card height — no dead frame under a pinned card */
  /* The LAST card's entire stick room, and the surplus that keeps the
     FIRST card pinned until the last one arrives. This page needs far
     more of it than its siblings because the Influencer App card runs
     773px against the other four's ~500-570, and that one outlier sets
     the distance the whole deck has to cover. Swept and measured: 54vh
     stacks four of the five, 55vh and up stacks all five. Set to 62vh,
     comfortably past the edge rather than sitting on it. */
  --cm-tail: 62vh;

  --cm-ease: cubic-bezier(.22,.8,.3,1);
  --cm-back: cubic-bezier(.34,1.32,.44,1);
}

/* ============================================================
 * 1. Dark section + vortex backdrop
 * ========================================================== */
.cm-stage{
  position:relative;
  background:#fff;
  isolation:isolate;
  padding-bottom:0;
  /* deliberately NOT overflow:hidden — that would make this element a
     scroll container and kill the sticky vortex below. The vortex is
     viewport-sized and bounded by this box, so nothing can bleed out. */
}

/* Pinned to the viewport while the section scrolls past, so the viewer
   stays inside the swirl instead of watching a slice of one enormous
   circle. The negative margin removes it from flow, so it occupies no
   layout space; without it a 100vh block would push the section down.
   It also keeps the canvas viewport-sized rather than as tall as the
   whole deck — ~0.9M pixels a frame instead of 3.4M. */
.cm-vortex{
  position:sticky;
  top:0;
  height:100vh;
  margin-bottom:-100vh;
  z-index:0;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.3s var(--cm-ease,ease);
}
.cm-stage.cm-on .cm-vortex{opacity:1;}
.cm-vortex canvas{display:block;width:100%;height:100%;}

/* On a white ground the arcs need lifting off the page rather than
   darkening down — a white veil, falling off toward the centre where
   the deck sits, so the strokes stay strongest at the margins. */
.cm-vortex::after{
  content:"";
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(118% 78% at 50% 45%, rgba(255,255,255,.88), rgba(255,255,255,.52) 62%, rgba(255,255,255,.18) 100%);
}
.cm-stage > .container{position:relative;z-index:2;}

/* ---------- the heading scrolls away with the page ----------
 * It was pinned above the deck at one point; that left it hanging
 * over the cards passing beneath it, so it is plain flow content now,
 * matching van-sales-automation-lusion.html. No background either —
 * the cards no longer travel under it, and a white band would only
 * mask the vortex behind it. The first card simply rises over it,
 * which is what the deck is meant to look like.
 *
 * .section-head also carries the page's .reveal, which would fade the
 * whole block in on top of the per-element entrances this layer gives
 * the pill, the h2 and the lede. Cleared, so those play alone. */
.cm-stage .section-head{
  margin-bottom:26px;
  opacity:1;
  transform:none;
  transition:none;
}

/* ============================================================
 * 2. The sticky deck
 * ========================================================== */
.cm-stack.bento{display:block;margin-top:8px;}

/* A real in-flow spacer. A sticky box is constrained by its
   containing block's CONTENT box, so padding-bottom on .bento would
   not extend it and a margin on the last card collapses out of the
   parent entirely. Without this the final card has exactly zero
   stick room, never pins, and the cards above release early. */
.cm-stack-tail{
  display:block;
  height:var(--cm-tail,12vh);
  pointer-events:none;
}

.cm-stack > .feat{
  position:sticky;
  top:var(--cm-top,104px);
  margin-bottom:var(--cm-gap,15vh);
  min-height:var(--cm-min,52vh);
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  grid-column:auto;
  padding:38px 44px;
  background:var(--white,#fff);
  border:1px solid #EDF1F7;
  border-radius:var(--radius,18px);

  /* The pin IS the entrance, so the page's own .reveal offset has to
     be cleared: a transform on a sticky box fights the pin. */
  opacity:1;
  transform:none;
  transition:none;

  /* Soft ambient depth — four very low-alpha layers rather than one
     heavy drop, so the covering edge stays clean on a white ground. */
  box-shadow:
    0 1px 2px rgba(16,31,56,.030),
    0 4px 10px rgba(16,31,56,.032),
    0 12px 26px rgba(16,31,56,.038),
    0 28px 58px rgba(16,31,56,.045);
}
/* the stylesheet's lift-on-hover would fight the pin */
.cm-stack > .feat:hover{transform:none;border-color:#E2D7F2;}
/* the tail already provides the run-out */
.cm-stack > .feat.cm-last{margin-bottom:0;}

/* the page's own grid-span rules are inert once this is block flow,
   but clear them so nothing re-applies at a breakpoint */
.cm-stack > .feat.span2,
.cm-stack > .feat.span3,
.cm-stack > .feat.span6{grid-column:auto;}

/* number sits large in the corner of a tall card */
.cm-stack > .feat .num{top:28px;right:34px;font-size:42px;}

/* ============================================================
 * 3. Card entrance — one class (.cm-in) plays the whole sequence
 * ========================================================== */

/* suppress transitions while a card is rewound off screen, or a
   quick scroll back catches it mid-fade */
.cm-stack .cm-noanim,
.cm-stack .cm-noanim *{transition:none !important;animation:none !important;}

.cm-stack > .feat .feat-ico{
  opacity:0;transform:scale(.66) rotate(-10deg);
  transition:opacity .5s var(--cm-ease), transform .62s var(--cm-back);
  transition-delay:60ms;
}
.cm-stack > .feat.cm-in .feat-ico{opacity:1;transform:none;}

.cm-stack > .feat h3{
  opacity:0;transform:translateY(16px);
  clip-path:inset(0 0 100% 0);
  transition:opacity .55s var(--cm-ease), transform .7s var(--cm-ease), clip-path .7s var(--cm-ease);
  transition-delay:150ms;
}
.cm-stack > .feat.cm-in h3{opacity:1;transform:none;clip-path:inset(0 0 0 0);}

.cm-stack > .feat .tag{
  opacity:0;clip-path:inset(0 100% 0 0 round 999px);
  transition:opacity .35s var(--cm-ease), clip-path .65s var(--cm-ease);
  transition-delay:320ms;
}
.cm-stack > .feat.cm-in .tag{opacity:1;clip-path:inset(0 0 0 0 round 999px);}

.cm-stack > .feat .num{
  opacity:0;transform:translateY(-14px) scale(1.3);filter:blur(6px);
  transition:opacity .7s var(--cm-ease), transform .85s var(--cm-ease), filter .7s var(--cm-ease);
  transition-delay:90ms;
}
.cm-stack > .feat.cm-in .num{opacity:1;transform:none;filter:blur(0);}

.cm-stack > .feat > p{
  opacity:0;transform:translateY(10px);
  transition:opacity .5s var(--cm-ease), transform .6s var(--cm-ease);
  transition-delay:260ms;
}
.cm-stack > .feat.cm-in > p{opacity:1;transform:none;}

.cm-stack > .feat ul li{
  opacity:0;transform:translateY(10px);
  transition:opacity .45s var(--cm-ease), transform .55s var(--cm-ease);
  transition-delay:calc(300ms + var(--i,0) * 80ms);
}
.cm-stack > .feat.cm-in ul li{opacity:1;transform:none;}

/* ============================================================
 * 3b. Card layout: copy left, illustration right
 * ========================================================== */
.cm-stack > .feat.cm-has-vec{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  gap:46px;
  align-items:center;
}
.cm-card-text{min-width:0;}
.cm-card-vec{min-width:0;display:flex;align-items:center;justify-content:center;}
.cm-card-vec svg{width:100%;height:auto;max-height:290px;overflow:visible;}

/* supporting lines, divided like the reference cards */
.cm-points{list-style:none;margin:18px 0 0;padding:0;}
.cm-points .cm-point{
  position:relative;
  padding:11px 0 11px 26px;
  margin:0;
  border-top:1px solid var(--line-soft,#EDF1F6);
  font-size:14.5px;line-height:1.55;font-weight:600;
  color:var(--ink-soft,#5B6675);
}
.cm-points .cm-point::before{
  content:"";position:absolute;left:3px;top:19px;
  width:8px;height:8px;border-radius:50%;
  background:var(--grad,linear-gradient(135deg,#701893,#1308AD));
}
.cm-stack > .feat .cm-points .cm-point{
  opacity:0;transform:translateY(12px);
  transition:opacity .5s var(--cm-ease), transform .6s var(--cm-ease);
  transition-delay:calc(420ms + var(--i,0) * 95ms);
}
.cm-stack > .feat.cm-in .cm-points .cm-point{opacity:1;transform:none;}

/* ============================================================
 * 3c. illustration animations — all keyed off .cm-in on the card
 * ========================================================== */

/* strokes draw themselves (lengths measured in script) */
.cm-card-vec [data-cm-draw]{
  stroke-dashoffset:var(--len,0);
  transition:stroke-dashoffset 1.3s var(--cm-ease);
  transition-delay:var(--dd,0ms);
}
.cm-in .cm-card-vec [data-cm-draw]{stroke-dashoffset:0;}

/* elements scale in, staggered by --p */
.cm-card-vec .cm-pop{
  opacity:0;transform:scale(.68);
  transform-box:fill-box;transform-origin:50% 50%;
  transition:opacity .5s var(--cm-ease), transform .62s var(--cm-back);
  transition-delay:calc(260ms + var(--p,0) * 100ms);
}
.cm-in .cm-card-vec .cm-pop{opacity:1;transform:none;}

/* bars grow up from their baseline */
.cm-card-vec .cm-bar{
  transform:scaleY(0);
  transform-box:fill-box;transform-origin:50% 100%;
  transition:transform .8s var(--cm-ease);
  transition-delay:calc(320ms + var(--p,0) * 95ms);
}
.cm-in .cm-card-vec .cm-bar{transform:none;}

/* data travelling the connector paths */
.cm-card-vec .cm-flow{opacity:0;transition:opacity .5s ease .7s;}
.cm-in .cm-card-vec .cm-flow{opacity:1;}

/* ambient loops — parked until the card lands, so nothing burns
   frames while it is still off screen */
.cm-card-vec .cm-float,
.cm-card-vec .cm-ring,
.cm-card-vec .cm-spin{animation-play-state:paused;}
.cm-in .cm-card-vec .cm-float,
.cm-in .cm-card-vec .cm-ring,
.cm-in .cm-card-vec .cm-spin{animation-play-state:running;}

.cm-card-vec .cm-float{
  animation:cmFloat 4.4s ease-in-out infinite;
  transform-box:fill-box;transform-origin:50% 50%;
}
@keyframes cmFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}

.cm-card-vec .cm-ring{
  fill:none;
  animation:cmRing 3s ease-out infinite;
  transform-box:fill-box;transform-origin:50% 50%;
}
@keyframes cmRing{0%{transform:scale(.72);opacity:.85}100%{transform:scale(1.5);opacity:0}}

.cm-card-vec .cm-spin{
  transform-box:view-box;
  animation:cmSpin 24s linear infinite;
}
@keyframes cmSpin{to{transform:rotate(360deg)}}

/* ============================================================
 * 4. Page-wide entrances (outside the deck)
 * ========================================================== */
.cm-anim .reveal{opacity:1;transform:none;transition:none;}

.cm-anim .cm-pill{
  opacity:0;transform:translateY(12px) scale(.9);
  clip-path:inset(0 42% 0 42% round 999px);
  transition:opacity .55s var(--cm-ease,ease), transform .7s var(--cm-back,ease), clip-path .7s var(--cm-ease,ease);
  transition-delay:var(--d,0ms);
}
.cm-anim .cm-pill.cm-in{opacity:1;transform:none;clip-path:inset(0 0 0 0 round 999px);}

/* heading words hinge up out of a clip mask */
.cm-w{
  display:inline-block;overflow:hidden;vertical-align:bottom;
  padding-bottom:.2em;margin-bottom:-.2em;
  perspective:680px;
}
.cm-w > i{
  display:inline-block;font-style:inherit;
  transform:translateY(116%) rotateX(-68deg);
  transform-origin:50% 0%;
  opacity:0;filter:blur(5px);
  transition:transform 1.05s var(--cm-ease,ease), opacity .62s var(--cm-ease,ease), filter .62s var(--cm-ease,ease);
  transition-delay:var(--d,0ms);
}
.cm-split.cm-in .cm-w > i{transform:none;opacity:1;filter:blur(0);}

.cm-anim .cm-fade{
  opacity:0;transform:translateY(18px);
  transition:opacity .85s var(--cm-ease,ease), transform .85s var(--cm-ease,ease);
  transition-delay:var(--d,0ms);
}
.cm-anim .cm-fade.cm-in{opacity:1;transform:none;}

/* plain cards outside the deck hinge up from their bottom edge */
.cm-anim .cm-card{
  opacity:0;
  transform:perspective(1300px) rotateX(11deg) translateY(50px) scale(.955);
  transform-origin:50% 100%;
  transition:opacity .8s var(--cm-ease,ease), transform 1.05s var(--cm-ease,ease);
  transition-delay:var(--d,0ms);
}
.cm-anim .cm-card.cm-in{opacity:1;transform:none;}

/* ============================================================
 * 5. Smaller screens — the deck unstacks into a normal column.
 *    A sticky stack needs vertical room a phone frame does not have.
 * ========================================================== */
@media (max-width:991px){
  .cm-stack.bento{display:grid;grid-template-columns:1fr;gap:26px;}
  .cm-stack > .feat{
    position:relative;
    min-height:0;
    margin-bottom:0;
    padding:28px 26px;
  }
  .cm-stack > .feat.cm-last{margin-bottom:0;}
  .cm-stack-tail{display:none;}
  .cm-stack > .feat .num{top:20px;right:22px;font-size:32px;}
  .cm-stage{padding-bottom:88px;}
  .cm-stage .section-head{margin-bottom:34px;}
  /* copy first, illustration beneath it */
  .cm-stack > .feat.cm-has-vec{grid-template-columns:1fr;gap:24px;}
  .cm-card-vec{order:2;}
  .cm-card-vec svg{max-height:210px;}
}
@media (max-width:575px){
  .cm-stack > .feat{padding:24px 22px;}
  .cm-stack > .feat .num{top:18px;right:18px;font-size:28px;}
  .cm-points .cm-point{font-size:13.5px;padding:9px 0 9px 22px;}
  .cm-points .cm-point::before{top:16px;width:7px;height:7px;}
  .cm-card-vec{display:none;}   /* copy wins the space on a phone */
}

/* ============================================================
 * 6. Reduced motion — the script does not stack at all in this
 *    case, but keep the guard so nothing animates if it ever does.
 * ========================================================== */
@media (prefers-reduced-motion:reduce){
  .cm-vortex{display:none;}
  .cm-stack > .feat{position:relative;min-height:0;margin-bottom:26px;}
  .cm-stack-tail{display:none;}
  .cm-stack > .feat .feat-ico,
  .cm-stack > .feat h3,
  .cm-stack > .feat .tag,
  .cm-stack > .feat .num,
  .cm-stack > .feat > p,
  .cm-stack > .feat ul li,
  .cm-stack > .feat .cm-points .cm-point,
  .cm-card-vec .cm-pop,.cm-card-vec .cm-flow,
  .cm-anim .cm-pill,.cm-anim .cm-fade,.cm-anim .cm-card{
    opacity:1 !important;transform:none !important;
    filter:none !important;clip-path:none !important;transition:none !important;
  }
  .cm-w > i{transform:none !important;opacity:1 !important;filter:none !important;transition:none !important;}
  .cm-card-vec .cm-bar{transform:none !important;transition:none !important;}
  .cm-card-vec [data-cm-draw]{stroke-dashoffset:0 !important;transition:none !important;}
  .cm-card-vec .cm-float,.cm-card-vec .cm-ring,.cm-card-vec .cm-spin{animation:none !important;}
}
@media print{
  .cm-vortex{display:none !important;}
}

/* ============================================================
 * 7. Support for lusion-motion.js
 *
 * That script is shared with aboutus-lusion.html, where these rules
 * live in lusion-hero.css. This page does not load that file, so the
 * three things it depends on are repeated here. They are not
 * optional: without the .lx-roll rules the letter-roll leaves BOTH
 * copies of every character in the flow and the nav reads doubled.
 * ========================================================== */

/* The page stylesheet sets html{scroll-behavior:smooth}. Left in
   place it makes every scrollTo() in the lerp start a NEW native
   smooth animation that the next frame cancels — the page stalls,
   then lurches. */
html.lx-smooth{scroll-behavior:auto !important;}

.lx-roll{
  display:inline-block;
  overflow:hidden;
  vertical-align:top;
  line-height:inherit;
}
.lx-roll__c{
  display:inline-block;
  position:relative;
  white-space:pre;
  transition:transform .52s cubic-bezier(.22,.61,.36,1);
  transition-delay:calc(var(--i) * 18ms);
  will-change:transform;
}
.lx-roll__c span{display:block;}
.lx-roll__c span:last-child{position:absolute;left:0;top:100%;}
.lx-roll:hover .lx-roll__c,
a:hover .lx-roll .lx-roll__c,
button:hover .lx-roll .lx-roll__c{transform:translateY(-100%);}

.lx-mag{will-change:transform;}
.lx-mag__inner{display:inline-flex;align-items:center;gap:inherit;will-change:transform;}

@media (prefers-reduced-motion:reduce){
  .lx-roll__c{transition:none;}
}

/* ============================================================
 * 0c. Hero band - the gradient treatment from the influencer page
 *
 * The page ships this hero as dark copy on white with the scene
 * boxed inside an opaque purple card. Here the whole band becomes
 * the brand gradient - slowly drifting, as on influencers-
 * application-lusion - the copy flips to white, and the card
 * dissolves so the isometric scene floats on the band itself.
 *
 * Nothing is added or removed from the markup; every rule below
 * only restates a colour, so the content is untouched.
 * ========================================================== */

.hero{
  color:#fff;
  background:linear-gradient(120deg,#2b00ba,#430171,#701893,#1308AD,#2b00ba);
  background-size:300% 300%;
  animation:cmHeroGrad 16s ease-in-out infinite;
}
@keyframes cmHeroGrad{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
/* the page's own light-ground wash, restated for a dark one */
.hero::before{
  background:
    radial-gradient(680px 420px at 82% 6%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(620px 520px at 4% 92%, rgba(19,8,173,.32), transparent 60%);
}

/* ---------- the copy column ---------- */
.hero .eyebrow{background:rgba(255,255,255,.14);color:#fff;}
.hero .eyebrow .dot{background:#fff;}
.hero h1{color:#fff;}
/* .hl is a gradient clipped to the text - invisible on the gradient
   itself, so it goes back to a flat tint */
.hero h1 .hl{
  background:none;
  color:#c9a7ff;
  -webkit-text-fill-color:#c9a7ff;
}
.hero p.lede{color:#DAD3F2;}

.hero .hero-ctas .btn-primary{
  background:#fff;
  color:#393939;
  box-shadow:0 12px 28px rgba(16,4,50,.26);
}
.hero .hero-ctas .btn-primary:hover{
  filter:none;
  background:#fff;
  box-shadow:0 16px 34px rgba(16,4,50,.34);
}
.hero .hero-ctas .btn-ghost{border-color:rgba(255,255,255,.4);}

/* the trust line reads as bare grey text on white; on the band it
   becomes the same frosted chip row the influencer hero uses */
.hero .hero-trust{color:#E7ECF5;}
.hero .hero-trust .pill{
  color:#E7ECF5;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  padding:8px 15px;
  border-radius:999px;
}
.hero .hero-trust svg{color:#9be6d8;}

/* ---------- the scene column ---------- */
/* the card frame disappears so the scene sits on the band, with a
   soft glow behind it in place of the old panel */
.hero .hero-card{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.hero .hero-card::before{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:78%;height:66%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(circle, rgba(201,167,255,.40), transparent 68%);
  filter:blur(26px);
  animation:cmHeroGlow 6s ease-in-out infinite;
}
@keyframes cmHeroGlow{
  0%,100%{opacity:.7;}
  50%{opacity:1;}
}
.hero .hero-card > *{position:relative;z-index:1;}

.hero .hc-top{margin-bottom:10px;}
.hero .hc-badge{color:rgba(255,255,255,.76);}
.hero .hc-live{color:rgba(255,255,255,.88);}

.hero .hc-stat{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px);
          backdrop-filter:blur(8px);
}
.hero .hc-stat span{color:#DAD3F2;}

@media (prefers-reduced-motion:reduce){
  .hero,.hero .hero-card::before{animation:none;}
}

/* ---------- the band's own breathing room ----------
 * The page gives this hero 132px/60px; the influencer band it is now
 * matching uses 140px/90px, and with the gradient running edge to edge
 * the shallow bottom reads as the copy sitting on the seam. Matched to
 * the influencer page. The <=991 top stays at the page's own 44px,
 * which is set against this header's mobile height, not the desktop one.
 */
.hero{padding:140px 0 90px;}
@media (max-width:991px){
  .hero{padding:44px 0 72px;}
}
