﻿/* ============================================================
 * fmc-lusion.css — animation layer for fmcg-sales-distribution-software-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 isometric FMCG stage
 *
 * One 12s loop, shared by every part so the whole stage beats
 * together:
 *
 *   0 - 45%     the left phone holds "Offline Mode: Active"
 *   45 - 100%   it hands over to "Sync Successful" on the right,
 *               the ERP badge pops, the charts step up and the
 *               cables carry data out to the channels
 *   per cable   GT, then MT, then QC light as their pulse lands
 *   continuous  the cube breathes, the dais rims pulse outward,
 *               and the convoy runs the beat route
 *
 * Everything is keyed off --fmh-cyc, so retiming the stage is one
 * number. The van and bike ride SMIL animateMotion rather than CSS
 * because they follow a curved road; CSS only fades them.
 * ========================================================== */

.fmh-scene{--fmh-cyc:12s;}

/* The scene is a 520x290 stage, not the 400x210 route line it
   replaces, so the card lets it set its own height. */
.hero-card .fmh-scene{display:block;width:100%;height:auto;overflow:visible;}

/* ---------- glass ---------- */
.fmh-scene .fmh-glass{
  fill:rgba(255,255,255,.12);
  stroke:rgba(255,255,255,.3);
  stroke-width:1.3;
}
.fmh-scene .fmh-glass-teal{
  fill:rgba(47,224,138,.16);
  stroke:rgba(47,224,138,.45);
  stroke-width:1.3;
}

/* ---------- the stage itself ---------- */
.fmh-scene .fmh-floorglow{animation:fmhFloor 7s ease-in-out infinite;}
@keyframes fmhFloor{
  0%,100%{opacity:.6;}
  50%{opacity:1;}
}
.fmh-scene .fmh-title{animation:fmhTitle 7s ease-in-out infinite;}
@keyframes fmhTitle{
  0%,100%{opacity:.92;}
  50%{opacity:1;}
}

/* ---------- the core: cube, beam, dais rims ---------- */
.fmh-scene .fmh-cube{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:fmhCube 4.4s ease-in-out infinite;
}
@keyframes fmhCube{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
.fmh-scene .fmh-beam{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:fmhBeam 4.4s ease-in-out infinite;
}
@keyframes fmhBeam{
  0%,100%{opacity:.55;transform:scaleX(.94);}
  50%{opacity:1;transform:scaleX(1.06);}
}
/* the three rims light outward from the cube, so the dais reads as
   one pulse travelling down it rather than three blinking rings */
.fmh-scene .fmh-edge{animation:fmhEdge 2.8s ease-in-out infinite;}
.fmh-scene .fmh-edge.e2{animation-delay:-.28s;}
.fmh-scene .fmh-edge.e1{animation-delay:-.56s;}
@keyframes fmhEdge{
  0%,100%{opacity:.45;}
  40%{opacity:1;}
}

/* ---------- the hub side ---------- */
.fmh-scene .fmh-badge{animation:fmhBadge 5.4s ease-in-out infinite;}
.fmh-scene .fmh-badge.b2{animation-delay:-2.1s;}
@keyframes fmhBadge{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}
.fmh-scene .fmh-badge-dot{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:fmhDot 1.8s ease-in-out infinite;
}
@keyframes fmhDot{
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:.4;transform:scale(.75);}
}

/* ---------- the beat route ---------- */
.fmh-scene .fmh-beat{animation:fmhBeatDash 1.6s linear infinite;}
@keyframes fmhBeatDash{to{stroke-dashoffset:-18;}}

/* Van and bike are one convoy: one clock, no offset between them, so
   the gap set by the bike's -54 setback never changes. The convoy is
   longer than the road's left-hand runway, so the fade holds both at
   zero until the van has carried the pair far enough for the bike to
   clear the frame. */
.fmh-scene .fmh-van,
.fmh-scene .fmh-bike{animation:fmhRide 7s linear infinite;}
/* 38% is measured, not guessed: that is where the bike's left edge
   crosses x=0 as the van tows the convoy along the road. */
@keyframes fmhRide{
  0%,38%{opacity:0;}
  46%,92%{opacity:1;}
  100%{opacity:0;}
}

/* ---------- the phones ----------
   steps(1,end) swaps the two states outright rather than crossfading,
   so you never see both readings live at once. */
.fmh-scene .fmh-phone{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:fmhFloat 6s ease-in-out infinite;
}
.fmh-scene .fmh-phone.p2{animation-delay:-3s;}
@keyframes fmhFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
.fmh-scene .fmh-off{animation:fmhOff var(--fmh-cyc) steps(1,end) infinite;}
.fmh-scene .fmh-on{opacity:0;animation:fmhOn var(--fmh-cyc) steps(1,end) infinite;}
@keyframes fmhOff{0%,44%{opacity:1;}45%,100%{opacity:.18;}}
@keyframes fmhOn{0%,44%{opacity:.12;}45%,100%{opacity:1;}}
.fmh-scene .fmh-arrow{animation:fmhArrow var(--fmh-cyc) ease-in-out infinite;}
@keyframes fmhArrow{
  0%,40%{opacity:.35;transform:translateX(-3px);}
  48%,58%{opacity:1;transform:translateX(3px);}
  70%,100%{opacity:.35;transform:translateX(-3px);}
}

/* ---------- the dashboard ---------- */
.fmh-scene .fmh-bar{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:fmhBar var(--fmh-cyc) ease-in-out infinite;
}
.fmh-scene .fmh-bar.b2{animation-delay:calc(var(--fmh-cyc) * -0.015);}
.fmh-scene .fmh-bar.b3{animation-delay:calc(var(--fmh-cyc) * -0.03);}
.fmh-scene .fmh-bar.b4{animation-delay:calc(var(--fmh-cyc) * -0.045);}
.fmh-scene .fmh-bar.b5{animation-delay:calc(var(--fmh-cyc) * -0.06);}
@keyframes fmhBar{
  0%,44%{transform:scaleY(.4);}
  58%{transform:scaleY(1);}
  92%,100%{transform:scaleY(.4);}
}
.fmh-scene .fmh-trend{
  stroke-dasharray:90;
  animation:fmhTrend var(--fmh-cyc) ease-in-out infinite;
}
@keyframes fmhTrend{
  0%,44%{stroke-dashoffset:90;}
  62%,92%{stroke-dashoffset:0;}
  100%{stroke-dashoffset:90;}
}

/* ---------- the cables, and the channels they feed ---------- */
.fmh-scene .fmh-flow{
  stroke-dasharray:14 190;
  animation:fmhFlow 2.6s linear infinite;
}
.fmh-scene .fmh-flow.s2{animation-delay:-.87s;}
.fmh-scene .fmh-flow.s3{animation-delay:-1.74s;}
.fmh-scene .fmh-flow.f0{animation-delay:-1.3s;}
@keyframes fmhFlow{
  0%{stroke-dashoffset:204;opacity:0;}
  12%,72%{opacity:1;}
  100%{stroke-dashoffset:0;opacity:0;}
}
/* each channel's pad rim lights as its pulse lands — a third of a
   cable period apart, so the order reads GT -> MT -> QC */
.fmh-scene .fmh-ch-pulse{
  transform-box:fill-box;transform-origin:50% 50%;
  opacity:0;
  animation:fmhChPulse 2.6s ease-out infinite;
}
.fmh-scene .fmh-ch.s2 .fmh-ch-pulse{animation-delay:-.87s;}
.fmh-scene .fmh-ch.s3 .fmh-ch-pulse{animation-delay:-1.74s;}
@keyframes fmhChPulse{
  0%,62%{opacity:0;transform:scale(1);}
  72%{opacity:.95;transform:scale(1.04);}
  90%,100%{opacity:0;transform:scale(1.1);}
}

@media (prefers-reduced-motion:reduce){
  .fmh-scene .fmh-floorglow,.fmh-scene .fmh-title,.fmh-scene .fmh-cube,
  .fmh-scene .fmh-beam,.fmh-scene .fmh-edge,.fmh-scene .fmh-badge,
  .fmh-scene .fmh-badge-dot,.fmh-scene .fmh-beat,.fmh-scene .fmh-van,
  .fmh-scene .fmh-bike,.fmh-scene .fmh-phone,.fmh-scene .fmh-off,
  .fmh-scene .fmh-on,.fmh-scene .fmh-arrow,.fmh-scene .fmh-bar,
  .fmh-scene .fmh-trend,.fmh-scene .fmh-flow,.fmh-scene .fmh-ch-pulse{
    animation:none !important;transform:none !important;
  }
  /* the finished state: synced, cables drawn, nothing mid-route */
  .fmh-scene .fmh-flow{stroke-dasharray:none !important;opacity:.9 !important;}
  .fmh-scene .fmh-on,.fmh-scene .fmh-trend{opacity:1 !important;}
  .fmh-scene .fmh-trend{stroke-dashoffset:0 !important;}
  .fmh-scene .fmh-off{opacity:.18 !important;}
  .fmh-scene .fmh-van,.fmh-scene .fmh-bike,
  .fmh-scene .fmh-ch-pulse{opacity: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.
 * ========================================================== */
.fm-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. */
.fm-tk .tk-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
@media (max-width:1199px){
  .fm-tk .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  .fm-tk .tk-grid{grid-template-columns:1fr;}
}

.fm-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 */
.fm-tk .tk .mk{
  background:rgba(255,255,255,.18);
  color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}
.fm-tk .tk p,
.fm-tk .tk span:not(.mk){color:rgba(255,255,255,.82);}
.fm-tk .takeaways > h3,
.fm-tk .takeaways > h2{color:var(--navy,#101F38);}

/* ---------- 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. */
.fm-tk .tk::before,
.fm-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;
}
.fm-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%);
}
.fm-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 */
.fm-tk .tk > *{position:relative;z-index:1;}


.fm-stacked{
  --fm-top: 104px;      /* where every card pins, clearing the header */
  --fm-gap: 15vh;       /* scroll distance between one pin and the next */
  --fm-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. The integration
     page stacks its six at 24vh, but these cards are taller (503 and
     563px against its ~440) and the header here is 20px deeper, so at
     24vh the first released early and only five ever stacked. Swept
     in 6vh steps: 24vh gives 5, and everything from 30vh up gives 6.
     36vh is one step past the edge rather than sitting on it. */
  --fm-tail: 36vh;

  --fm-ease: cubic-bezier(.22,.8,.3,1);
  --fm-back: cubic-bezier(.34,1.32,.44,1);
}

/* ============================================================
 * 1. Dark section + vortex backdrop
 * ========================================================== */
.fm-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. */
.fm-vortex{
  position:sticky;
  top:0;
  height:100vh;
  margin-bottom:-100vh;
  z-index:0;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.3s var(--fm-ease,ease);
}
.fm-stage.fm-on .fm-vortex{opacity:1;}
.fm-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. */
.fm-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%);
}
.fm-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. */
.fm-stage .section-head{
  margin-bottom:26px;
  opacity:1;
  transform:none;
  transition:none;
}

/* ============================================================
 * 2. The sticky deck
 * ========================================================== */
.fm-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. */
.fm-stack-tail{
  display:block;
  height:var(--fm-tail,12vh);
  pointer-events:none;
}

.fm-stack > .feat{
  position:sticky;
  top:var(--fm-top,104px);
  margin-bottom:var(--fm-gap,15vh);
  min-height:var(--fm-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 */
.fm-stack > .feat:hover{transform:none;border-color:#E2D7F2;}
/* the tail already provides the run-out */
.fm-stack > .feat.fm-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 */
.fm-stack > .feat.span2,
.fm-stack > .feat.span3,
.fm-stack > .feat.span6{grid-column:auto;}

/* number sits large in the corner of a tall card */
.fm-stack > .feat .num{top:28px;right:34px;font-size:42px;}

/* ============================================================
 * 3. Card entrance — one class (.fm-in) plays the whole sequence
 * ========================================================== */

/* suppress transitions while a card is rewound off screen, or a
   quick scroll back catches it mid-fade */
.fm-stack .fm-noanim,
.fm-stack .fm-noanim *{transition:none !important;animation:none !important;}

.fm-stack > .feat .feat-ico{
  opacity:0;transform:scale(.66) rotate(-10deg);
  transition:opacity .5s var(--fm-ease), transform .62s var(--fm-back);
  transition-delay:60ms;
}
.fm-stack > .feat.fm-in .feat-ico{opacity:1;transform:none;}

.fm-stack > .feat h3{
  opacity:0;transform:translateY(16px);
  clip-path:inset(0 0 100% 0);
  transition:opacity .55s var(--fm-ease), transform .7s var(--fm-ease), clip-path .7s var(--fm-ease);
  transition-delay:150ms;
}
.fm-stack > .feat.fm-in h3{opacity:1;transform:none;clip-path:inset(0 0 0 0);}

.fm-stack > .feat .tag{
  opacity:0;clip-path:inset(0 100% 0 0 round 999px);
  transition:opacity .35s var(--fm-ease), clip-path .65s var(--fm-ease);
  transition-delay:320ms;
}
.fm-stack > .feat.fm-in .tag{opacity:1;clip-path:inset(0 0 0 0 round 999px);}

.fm-stack > .feat .num{
  opacity:0;transform:translateY(-14px) scale(1.3);filter:blur(6px);
  transition:opacity .7s var(--fm-ease), transform .85s var(--fm-ease), filter .7s var(--fm-ease);
  transition-delay:90ms;
}
.fm-stack > .feat.fm-in .num{opacity:1;transform:none;filter:blur(0);}

.fm-stack > .feat > p{
  opacity:0;transform:translateY(10px);
  transition:opacity .5s var(--fm-ease), transform .6s var(--fm-ease);
  transition-delay:260ms;
}
.fm-stack > .feat.fm-in > p{opacity:1;transform:none;}

.fm-stack > .feat ul li{
  opacity:0;transform:translateY(10px);
  transition:opacity .45s var(--fm-ease), transform .55s var(--fm-ease);
  transition-delay:calc(300ms + var(--i,0) * 80ms);
}
.fm-stack > .feat.fm-in ul li{opacity:1;transform:none;}

/* ============================================================
 * 3b. Card layout: copy left, fmlustration right
 * ========================================================== */
.fm-stack > .feat.fm-has-vec{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  gap:46px;
  align-items:center;
}
.fm-card-text{min-width:0;}
.fm-card-vec{min-width:0;display:flex;align-items:center;justify-content:center;}
.fm-card-vec svg{width:100%;height:auto;max-height:290px;overflow:visible;}

/* supporting lines, divided like the reference cards */
.fm-points{list-style:none;margin:18px 0 0;padding:0;}
.fm-points .fm-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);
}
.fm-points .fm-point::before{
  content:"";position:absolute;left:3px;top:19px;
  width:8px;height:8px;border-radius:50%;
  background:var(--grad,linear-gradient(135deg,#701893,#1308AD));
}
.fm-stack > .feat .fm-points .fm-point{
  opacity:0;transform:translateY(12px);
  transition:opacity .5s var(--fm-ease), transform .6s var(--fm-ease);
  transition-delay:calc(420ms + var(--i,0) * 95ms);
}
.fm-stack > .feat.fm-in .fm-points .fm-point{opacity:1;transform:none;}

/* ============================================================
 * 3c. fmlustration animations — all keyed off .fm-in on the card
 * ========================================================== */

/* strokes draw themselves (lengths measured in script) */
.fm-card-vec [data-fm-draw]{
  stroke-dashoffset:var(--len,0);
  transition:stroke-dashoffset 1.3s var(--fm-ease);
  transition-delay:var(--dd,0ms);
}
.fm-in .fm-card-vec [data-fm-draw]{stroke-dashoffset:0;}

/* elements scale in, staggered by --p */
.fm-card-vec .fm-pop{
  opacity:0;transform:scale(.68);
  transform-box:fill-box;transform-origin:50% 50%;
  transition:opacity .5s var(--fm-ease), transform .62s var(--fm-back);
  transition-delay:calc(260ms + var(--p,0) * 100ms);
}
.fm-in .fm-card-vec .fm-pop{opacity:1;transform:none;}

/* bars grow up from their baseline */
.fm-card-vec .fm-bar{
  transform:scaleY(0);
  transform-box:fill-box;transform-origin:50% 100%;
  transition:transform .8s var(--fm-ease);
  transition-delay:calc(320ms + var(--p,0) * 95ms);
}
.fm-in .fm-card-vec .fm-bar{transform:none;}

/* data travelling the connector paths */
.fm-card-vec .fm-flow{opacity:0;transition:opacity .5s ease .7s;}
.fm-in .fm-card-vec .fm-flow{opacity:1;}

/* ambient loops — parked until the card lands, so nothing burns
   frames while it is still off screen */
.fm-card-vec .fm-float,
.fm-card-vec .fm-ring,
.fm-card-vec .fm-spin{animation-play-state:paused;}
.fm-in .fm-card-vec .fm-float,
.fm-in .fm-card-vec .fm-ring,
.fm-in .fm-card-vec .fm-spin{animation-play-state:running;}

.fm-card-vec .fm-float{
  animation:fmFloat 4.4s ease-in-out infinite;
  transform-box:fill-box;transform-origin:50% 50%;
}
@keyframes fmFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}

.fm-card-vec .fm-ring{
  fill:none;
  animation:fmRing 3s ease-out infinite;
  transform-box:fill-box;transform-origin:50% 50%;
}
@keyframes fmRing{0%{transform:scale(.72);opacity:.85}100%{transform:scale(1.5);opacity:0}}

.fm-card-vec .fm-spin{
  transform-box:view-box;
  animation:fmSpin 24s linear infinite;
}
@keyframes fmSpin{to{transform:rotate(360deg)}}

/* ============================================================
 * 4. Page-wide entrances (outside the deck)
 * ========================================================== */
.fm-anim .reveal{opacity:1;transform:none;transition:none;}

.fm-anim .fm-pill{
  opacity:0;transform:translateY(12px) scale(.9);
  clip-path:inset(0 42% 0 42% round 999px);
  transition:opacity .55s var(--fm-ease,ease), transform .7s var(--fm-back,ease), clip-path .7s var(--fm-ease,ease);
  transition-delay:var(--d,0ms);
}
.fm-anim .fm-pill.fm-in{opacity:1;transform:none;clip-path:inset(0 0 0 0 round 999px);}

/* heading words hinge up out of a clip mask */
.fm-w{
  display:inline-block;overflow:hidden;vertical-align:bottom;
  padding-bottom:.2em;margin-bottom:-.2em;
  perspective:680px;
}
.fm-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(--fm-ease,ease), opacity .62s var(--fm-ease,ease), filter .62s var(--fm-ease,ease);
  transition-delay:var(--d,0ms);
}
.fm-split.fm-in .fm-w > i{transform:none;opacity:1;filter:blur(0);}

.fm-anim .fm-fade{
  opacity:0;transform:translateY(18px);
  transition:opacity .85s var(--fm-ease,ease), transform .85s var(--fm-ease,ease);
  transition-delay:var(--d,0ms);
}
.fm-anim .fm-fade.fm-in{opacity:1;transform:none;}

/* plain cards outside the deck hinge up from their bottom edge */
.fm-anim .fm-card{
  opacity:0;
  transform:perspective(1300px) rotateX(11deg) translateY(50px) scale(.955);
  transform-origin:50% 100%;
  transition:opacity .8s var(--fm-ease,ease), transform 1.05s var(--fm-ease,ease);
  transition-delay:var(--d,0ms);
}
.fm-anim .fm-card.fm-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){
  .fm-stack.bento{display:grid;grid-template-columns:1fr;gap:26px;}
  .fm-stack > .feat{
    position:relative;
    min-height:0;
    margin-bottom:0;
    padding:28px 26px;
  }
  .fm-stack > .feat.fm-last{margin-bottom:0;}
  .fm-stack-tail{display:none;}
  .fm-stack > .feat .num{top:20px;right:22px;font-size:32px;}
  .fm-stage{padding-bottom:88px;}
  .fm-stage .section-head{margin-bottom:34px;}
  /* copy first, fmlustration beneath it */
  .fm-stack > .feat.fm-has-vec{grid-template-columns:1fr;gap:24px;}
  .fm-card-vec{order:2;}
  .fm-card-vec svg{max-height:210px;}
}
@media (max-width:575px){
  .fm-stack > .feat{padding:24px 22px;}
  .fm-stack > .feat .num{top:18px;right:18px;font-size:28px;}
  .fm-points .fm-point{font-size:13.5px;padding:9px 0 9px 22px;}
  .fm-points .fm-point::before{top:16px;width:7px;height:7px;}
  .fm-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){
  .fm-vortex{display:none;}
  .fm-stack > .feat{position:relative;min-height:0;margin-bottom:26px;}
  .fm-stack-tail{display:none;}
  .fm-stack > .feat .feat-ico,
  .fm-stack > .feat h3,
  .fm-stack > .feat .tag,
  .fm-stack > .feat .num,
  .fm-stack > .feat > p,
  .fm-stack > .feat ul li,
  .fm-stack > .feat .fm-points .fm-point,
  .fm-card-vec .fm-pop,.fm-card-vec .fm-flow,
  .fm-anim .fm-pill,.fm-anim .fm-fade,.fm-anim .fm-card{
    opacity:1 !important;transform:none !important;
    filter:none !important;clip-path:none !important;transition:none !important;
  }
  .fm-w > i{transform:none !important;opacity:1 !important;filter:none !important;transition:none !important;}
  .fm-card-vec .fm-bar{transform:none !important;transition:none !important;}
  .fm-card-vec [data-fm-draw]{stroke-dashoffset:0 !important;transition:none !important;}
  .fm-card-vec .fm-float,.fm-card-vec .fm-ring,.fm-card-vec .fm-spin{animation:none !important;}
}
@media print{
  .fm-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:fmHeroGrad 16s ease-in-out infinite;
}
@keyframes fmHeroGrad{
  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:fmHeroGlow 6s ease-in-out infinite;
}
@keyframes fmHeroGlow{
  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;}
}
