/* ============================================================
 * cbp-lusion.css — animation layer for beauty-and-personal-care-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 two field forces, one hub, in 3D
 *
 * One 6s content loop:
 *
 *   light runs store -> hub -> counter -> dashboard along the ribbons
 *   each area's rim lights as the light clears it, store first
 *   the app panel's stock count, the SKU tick and the offline badge
 *     answer on their own area's beat
 *   the dashboard's donut, trend and bars step up with them
 *
 * The 3D is not a drawn fake: a perspective camera on the <svg>
 * itself, three depth planes that parallax against it, and a cast
 * shadow under each area that spreads as the area lifts away from
 * the ground. Keyed off one --cbh-cyc.
 * ========================================================== */

.cbh-scene{--cbh-cyc:6s;}

/* the scene is added inside .cos-card, between the copy and the
   stats, so it only needs room of its own */
.cos-card .cbh-wrap{
  position:relative;
  z-index:1;
  margin:22px 0 4px;
}
.cos-card .cbh-scene{
  display:block;width:100%;max-width:100%;height:auto;overflow:visible;
  transform-origin:50% 56%;
  animation:cbhCam 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. 13s against the 6s content loop, so the camera
   and the scene never land on the same beat twice running. */
@keyframes cbhCam{
  0%,100%{transform:perspective(1100px) rotateX(1.3deg) rotateY(-2.4deg);}
  50%{transform:perspective(1100px) rotateX(-1.3deg) rotateY(2.4deg);}
}

/* ---------- the three depth planes ----------
 * Same clock as the camera, different travel: the skyline barely
 * shifts, the three areas shift a little, the panels floating
 * nearest shift most. That difference is the parallax, and it is
 * what makes the camera move read as depth. */
.cbh-scene .cbh-plane{animation:cbhDrift 13s ease-in-out infinite;}
.cbh-scene .cbh-plane.p1{--amp:2px;}
.cbh-scene .cbh-plane.p2{--amp:6px;}
.cbh-scene .cbh-plane.p3{--amp:13px;}
@keyframes cbhDrift{
  0%,100%{transform:translateX(calc(var(--amp) * -1));}
  50%{transform:translateX(var(--amp));}
}

/* ---------- each area floating over its own shadow ----------
 * The shadow sits OUTSIDE the lifting group: it stays on the ground
 * and spreads and weakens as the area 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. */
.cbh-scene .cbh-lift{animation:cbhLift 5s ease-in-out infinite;}
.cbh-scene .cbh-drop{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:cbhDrop 5s ease-in-out infinite;
}
.cbh-scene .cbh-area.a2 .cbh-lift,
.cbh-scene .cbh-area.a2 .cbh-drop{animation-delay:-1.7s;}
.cbh-scene .cbh-area.a3 .cbh-lift,
.cbh-scene .cbh-area.a3 .cbh-drop{animation-delay:-3.4s;}
@keyframes cbhLift{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
@keyframes cbhDrop{
  0%,100%{opacity:1;transform:scale(.92);}
  50%{opacity:.55;transform:scale(1.14);}
}

/* ---------- glass ---------- */
.cbh-scene .cbh-glass{
  fill:rgba(190,220,255,.1);
  stroke:rgba(170,210,255,.34);
  stroke-width:1.2;
}

/* ---------- the stage ---------- */
.cbh-scene .cbh-pool{animation:cbhPool 4s ease-in-out infinite;}
@keyframes cbhPool{
  0%,100%{opacity:.6;}
  50%{opacity:1;}
}
.cbh-scene .cbh-sky{animation:cbhSky 9s ease-in-out infinite;}
@keyframes cbhSky{
  0%,100%{opacity:.78;}
  50%{opacity:1;}
}

/* ---------- the ribbons ----------
 * Five runs on one cycle, staggered so the light reads as travelling
 * store -> hub -> counter -> dashboard rather than all at once. */
.cbh-scene .cbh-flow{
  stroke-dasharray:18 300;
  animation:cbhFlow var(--cbh-cyc) cubic-bezier(.45,.05,.3,1) infinite;
}
.cbh-scene .cbh-flow.r2{animation-delay:calc(var(--cbh-cyc) * 0.14);}
.cbh-scene .cbh-flow.r3{animation-delay:calc(var(--cbh-cyc) * 0.3);}
.cbh-scene .cbh-flow.r4{animation-delay:calc(var(--cbh-cyc) * 0.44);}
.cbh-scene .cbh-flow.r5{animation-delay:calc(var(--cbh-cyc) * 0.08);}
@keyframes cbhFlow{
  0%{stroke-dashoffset:318;opacity:0;}
  8%,78%{opacity:1;}
  100%{stroke-dashoffset:0;opacity:0;}
}
.cbh-scene .cbh-rim{animation:cbhRim var(--cbh-cyc) ease-in-out infinite;}
.cbh-scene .cbh-area.a2 .cbh-rim{animation-delay:calc(var(--cbh-cyc) * 0.16);}
.cbh-scene .cbh-area.a3 .cbh-rim{animation-delay:calc(var(--cbh-cyc) * 0.34);}
@keyframes cbhRim{
  0%,100%{opacity:.45;}
  6%{opacity:1;}
  24%{opacity:.45;}
}

/* ---------- lit detail ---------- */
.cbh-scene .cbh-win,
.cbh-scene .cbh-glow{animation:cbhGlow 3.4s ease-in-out infinite;}
@keyframes cbhGlow{
  0%,100%{opacity:.7;}
  50%{opacity:1;}
}
.cbh-scene .cbh-plaque{animation:cbhPlaque 5.4s ease-in-out infinite;}
.cbh-scene .cbh-plaque.p-hub{animation-delay:-1.8s;}
.cbh-scene .cbh-plaque.p-dash{animation-delay:-3.6s;}
@keyframes cbhPlaque{
  0%,100%{opacity:.88;}
  50%{opacity:1;}
}
.cbh-scene .cbh-tab{animation:cbhTab 2.6s ease-in-out infinite;}
@keyframes cbhTab{
  0%,100%{opacity:.75;}
  50%{opacity:1;}
}

/* ---------- the floating panels ----------
 * Each lifts and brightens on its own area's beat, on the same
 * offsets as the rims. */
.cbh-scene .cbh-panel{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:cbhPanel var(--cbh-cyc) ease-in-out infinite;
}
.cbh-scene .cbh-panel.k2{animation-delay:calc(var(--cbh-cyc) * 0.16);}
.cbh-scene .cbh-panel.k3{animation-delay:calc(var(--cbh-cyc) * 0.34);}
@keyframes cbhPanel{
  0%,100%{opacity:.8;transform:translateY(0);}
  8%{opacity:1;transform:translateY(-4px);}
  28%{opacity:.8;transform:translateY(0);}
}
/* the stock count lands once a cycle, with the row it belongs to */
.cbh-scene .cbh-units{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:cbhUnits var(--cbh-cyc) cubic-bezier(.34,1.32,.44,1) infinite;
}
@keyframes cbhUnits{
  0%,34%{opacity:0;transform:scale(.7);}
  46%,90%{opacity:1;transform:scale(1);}
  100%{opacity:0;transform:scale(.7);}
}
.cbh-scene .cbh-row{animation:cbhRow var(--cbh-cyc) steps(1,end) infinite;}
@keyframes cbhRow{0%,34%{opacity:.35;}35%,100%{opacity:1;}}
.cbh-scene .cbh-tick{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:cbhTick var(--cbh-cyc) ease-out infinite;
}
@keyframes cbhTick{
  0%,40%{transform:scale(1);}
  50%{transform:scale(1.22);}
  64%,100%{transform:scale(1);}
}
/* the wifi badge flips to the green tick as the counter syncs —
   steps(1,end) so the two states never show together */
.cbh-scene .cbh-off{animation:cbhOff var(--cbh-cyc) steps(1,end) infinite;}
.cbh-scene .cbh-on2{opacity:0;animation:cbhOn2 var(--cbh-cyc) steps(1,end) infinite;}
@keyframes cbhOff{0%,55%{opacity:1;}56%,100%{opacity:.12;}}
@keyframes cbhOn2{0%,55%{opacity:.12;}56%,100%{opacity:1;}}

/* ---------- the dashboard ---------- */
.cbh-scene .cbh-bar{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:cbhBar var(--cbh-cyc) ease-in-out infinite;
}
.cbh-scene .cbh-bar.b2{animation-delay:calc(var(--cbh-cyc) * -0.02);}
.cbh-scene .cbh-bar.b3{animation-delay:calc(var(--cbh-cyc) * -0.04);}
.cbh-scene .cbh-bar.b4{animation-delay:calc(var(--cbh-cyc) * -0.06);}
.cbh-scene .cbh-bar.b5{animation-delay:calc(var(--cbh-cyc) * -0.08);}
@keyframes cbhBar{
  0%,40%{transform:scaleY(.4);}
  56%{transform:scaleY(1);}
  92%,100%{transform:scaleY(.4);}
}
.cbh-scene .cbh-donut{
  stroke-dasharray:75;
  animation:cbhDonut var(--cbh-cyc) ease-out infinite;
}
@keyframes cbhDonut{
  0%,40%{stroke-dashoffset:75;}
  60%,92%{stroke-dashoffset:22;}
  100%{stroke-dashoffset:75;}
}
.cbh-scene .cbh-trend{
  stroke-dasharray:90;
  animation:cbhTrend var(--cbh-cyc) ease-in-out infinite;
}
@keyframes cbhTrend{
  0%,42%{stroke-dashoffset:90;}
  62%,92%{stroke-dashoffset:0;}
  100%{stroke-dashoffset:90;}
}

@media (prefers-reduced-motion:reduce){
  .cos-card .cbh-scene,
  .cbh-scene .cbh-plane,.cbh-scene .cbh-lift,.cbh-scene .cbh-drop,
  .cbh-scene .cbh-pool,.cbh-scene .cbh-sky,.cbh-scene .cbh-flow,
  .cbh-scene .cbh-rim,.cbh-scene .cbh-win,.cbh-scene .cbh-glow,
  .cbh-scene .cbh-plaque,.cbh-scene .cbh-tab,.cbh-scene .cbh-panel,
  .cbh-scene .cbh-units,.cbh-scene .cbh-row,.cbh-scene .cbh-tick,
  .cbh-scene .cbh-off,.cbh-scene .cbh-on2,.cbh-scene .cbh-bar,
  .cbh-scene .cbh-donut,.cbh-scene .cbh-trend{
    animation:none !important;transform:none !important;
  }
  /* the settled state: lit, synced, charts drawn */
  .cbh-scene .cbh-flow{stroke-dasharray:none !important;opacity:.85 !important;}
  .cbh-scene .cbh-rim,.cbh-scene .cbh-panel,.cbh-scene .cbh-units,
  .cbh-scene .cbh-on2,.cbh-scene .cbh-plaque,.cbh-scene .cbh-row{opacity:1 !important;}
  .cbh-scene .cbh-off{opacity:.12 !important;}
  .cbh-scene .cbh-donut{stroke-dashoffset:22 !important;}
  .cbh-scene .cbh-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.
 * ========================================================== */
.cb-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. */
.cb-tk .tk-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
@media (max-width:1199px){
  .cb-tk .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  .cb-tk .tk-grid{grid-template-columns:1fr;}
}

.cb-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 */
.cb-tk .tk .mk{
  background:rgba(255,255,255,.18);
  color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}
.cb-tk .tk p,
.cb-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 */
.cb-tk .takeaways > h3,
.cb-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. */
.cb-tk .tk::before,
.cb-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;
}
.cb-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%);
}
.cb-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 */
.cb-tk .tk > *{position:relative;z-index:1;}


.cb-stacked{
  --cb-top: 104px;      /* where every card pins, clearing the header */
  --cb-gap: 15vh;       /* scroll distance between one pin and the next */
  --cb-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. */
  --cb-tail: 62vh;

  --cb-ease: cubic-bezier(.22,.8,.3,1);
  --cb-back: cubic-bezier(.34,1.32,.44,1);
}

/* ============================================================
 * 1. Dark section + vortex backdrop
 * ========================================================== */
.cb-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. */
.cb-vortex{
  position:sticky;
  top:0;
  height:100vh;
  margin-bottom:-100vh;
  z-index:0;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.3s var(--cb-ease,ease);
}
.cb-stage.cb-on .cb-vortex{opacity:1;}
.cb-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. */
.cb-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%);
}
.cb-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. */
.cb-stage .section-head{
  margin-bottom:26px;
  opacity:1;
  transform:none;
  transition:none;
}

/* ============================================================
 * 2. The sticky deck
 * ========================================================== */
.cb-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. */
.cb-stack-tail{
  display:block;
  height:var(--cb-tail,12vh);
  pointer-events:none;
}

.cb-stack > .feat{
  position:sticky;
  top:var(--cb-top,104px);
  margin-bottom:var(--cb-gap,15vh);
  min-height:var(--cb-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 */
.cb-stack > .feat:hover{transform:none;border-color:#E2D7F2;}
/* the tail already provides the run-out */
.cb-stack > .feat.cb-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 */
.cb-stack > .feat.span2,
.cb-stack > .feat.span3,
.cb-stack > .feat.span6{grid-column:auto;}

/* number sits large in the corner of a tall card */
.cb-stack > .feat .num{top:28px;right:34px;font-size:42px;}

/* ============================================================
 * 3. Card entrance — one class (.cb-in) plays the whole sequence
 * ========================================================== */

/* suppress transitions while a card is rewound off screen, or a
   quick scroll back catches it mid-fade */
.cb-stack .cb-noanim,
.cb-stack .cb-noanim *{transition:none !important;animation:none !important;}

.cb-stack > .feat .feat-ico{
  opacity:0;transform:scale(.66) rotate(-10deg);
  transition:opacity .5s var(--cb-ease), transform .62s var(--cb-back);
  transition-delay:60ms;
}
.cb-stack > .feat.cb-in .feat-ico{opacity:1;transform:none;}

.cb-stack > .feat h3{
  opacity:0;transform:translateY(16px);
  clip-path:inset(0 0 100% 0);
  transition:opacity .55s var(--cb-ease), transform .7s var(--cb-ease), clip-path .7s var(--cb-ease);
  transition-delay:150ms;
}
.cb-stack > .feat.cb-in h3{opacity:1;transform:none;clip-path:inset(0 0 0 0);}

.cb-stack > .feat .tag{
  opacity:0;clip-path:inset(0 100% 0 0 round 999px);
  transition:opacity .35s var(--cb-ease), clip-path .65s var(--cb-ease);
  transition-delay:320ms;
}
.cb-stack > .feat.cb-in .tag{opacity:1;clip-path:inset(0 0 0 0 round 999px);}

.cb-stack > .feat .num{
  opacity:0;transform:translateY(-14px) scale(1.3);filter:blur(6px);
  transition:opacity .7s var(--cb-ease), transform .85s var(--cb-ease), filter .7s var(--cb-ease);
  transition-delay:90ms;
}
.cb-stack > .feat.cb-in .num{opacity:1;transform:none;filter:blur(0);}

.cb-stack > .feat > p{
  opacity:0;transform:translateY(10px);
  transition:opacity .5s var(--cb-ease), transform .6s var(--cb-ease);
  transition-delay:260ms;
}
.cb-stack > .feat.cb-in > p{opacity:1;transform:none;}

.cb-stack > .feat ul li{
  opacity:0;transform:translateY(10px);
  transition:opacity .45s var(--cb-ease), transform .55s var(--cb-ease);
  transition-delay:calc(300ms + var(--i,0) * 80ms);
}
.cb-stack > .feat.cb-in ul li{opacity:1;transform:none;}

/* ============================================================
 * 3b. Card layout: copy left, illustration right
 * ========================================================== */
.cb-stack > .feat.cb-has-vec{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  gap:46px;
  align-items:center;
}
.cb-card-text{min-width:0;}
.cb-card-vec{min-width:0;display:flex;align-items:center;justify-content:center;}
.cb-card-vec svg{width:100%;height:auto;max-height:290px;overflow:visible;}

/* supporting lines, divided like the reference cards */
.cb-points{list-style:none;margin:18px 0 0;padding:0;}
.cb-points .cb-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);
}
.cb-points .cb-point::before{
  content:"";position:absolute;left:3px;top:19px;
  width:8px;height:8px;border-radius:50%;
  background:var(--grad,linear-gradient(135deg,#701893,#1308AD));
}
.cb-stack > .feat .cb-points .cb-point{
  opacity:0;transform:translateY(12px);
  transition:opacity .5s var(--cb-ease), transform .6s var(--cb-ease);
  transition-delay:calc(420ms + var(--i,0) * 95ms);
}
.cb-stack > .feat.cb-in .cb-points .cb-point{opacity:1;transform:none;}

/* ============================================================
 * 3c. illustration animations — all keyed off .cb-in on the card
 * ========================================================== */

/* strokes draw themselves (lengths measured in script) */
.cb-card-vec [data-cb-draw]{
  stroke-dashoffset:var(--len,0);
  transition:stroke-dashoffset 1.3s var(--cb-ease);
  transition-delay:var(--dd,0ms);
}
.cb-in .cb-card-vec [data-cb-draw]{stroke-dashoffset:0;}

/* elements scale in, staggered by --p */
.cb-card-vec .cb-pop{
  opacity:0;transform:scale(.68);
  transform-box:fill-box;transform-origin:50% 50%;
  transition:opacity .5s var(--cb-ease), transform .62s var(--cb-back);
  transition-delay:calc(260ms + var(--p,0) * 100ms);
}
.cb-in .cb-card-vec .cb-pop{opacity:1;transform:none;}

/* bars grow up from their baseline */
.cb-card-vec .cb-bar{
  transform:scaleY(0);
  transform-box:fill-box;transform-origin:50% 100%;
  transition:transform .8s var(--cb-ease);
  transition-delay:calc(320ms + var(--p,0) * 95ms);
}
.cb-in .cb-card-vec .cb-bar{transform:none;}

/* data travelling the connector paths */
.cb-card-vec .cb-flow{opacity:0;transition:opacity .5s ease .7s;}
.cb-in .cb-card-vec .cb-flow{opacity:1;}

/* ambient loops — parked until the card lands, so nothing burns
   frames while it is still off screen */
.cb-card-vec .cb-float,
.cb-card-vec .cb-ring,
.cb-card-vec .cb-spin{animation-play-state:paused;}
.cb-in .cb-card-vec .cb-float,
.cb-in .cb-card-vec .cb-ring,
.cb-in .cb-card-vec .cb-spin{animation-play-state:running;}

.cb-card-vec .cb-float{
  animation:cbFloat 4.4s ease-in-out infinite;
  transform-box:fill-box;transform-origin:50% 50%;
}
@keyframes cbFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}

.cb-card-vec .cb-ring{
  fill:none;
  animation:cbRing 3s ease-out infinite;
  transform-box:fill-box;transform-origin:50% 50%;
}
@keyframes cbRing{0%{transform:scale(.72);opacity:.85}100%{transform:scale(1.5);opacity:0}}

.cb-card-vec .cb-spin{
  transform-box:view-box;
  animation:cbSpin 24s linear infinite;
}
@keyframes cbSpin{to{transform:rotate(360deg)}}

/* ============================================================
 * 4. Page-wide entrances (outside the deck)
 * ========================================================== */
.cb-anim .reveal{opacity:1;transform:none;transition:none;}

.cb-anim .cb-pill{
  opacity:0;transform:translateY(12px) scale(.9);
  clip-path:inset(0 42% 0 42% round 999px);
  transition:opacity .55s var(--cb-ease,ease), transform .7s var(--cb-back,ease), clip-path .7s var(--cb-ease,ease);
  transition-delay:var(--d,0ms);
}
.cb-anim .cb-pill.cb-in{opacity:1;transform:none;clip-path:inset(0 0 0 0 round 999px);}

/* heading words hinge up out of a clip mask */
.cb-w{
  display:inline-block;overflow:hidden;vertical-align:bottom;
  padding-bottom:.2em;margin-bottom:-.2em;
  perspective:680px;
}
.cb-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(--cb-ease,ease), opacity .62s var(--cb-ease,ease), filter .62s var(--cb-ease,ease);
  transition-delay:var(--d,0ms);
}
.cb-split.cb-in .cb-w > i{transform:none;opacity:1;filter:blur(0);}

.cb-anim .cb-fade{
  opacity:0;transform:translateY(18px);
  transition:opacity .85s var(--cb-ease,ease), transform .85s var(--cb-ease,ease);
  transition-delay:var(--d,0ms);
}
.cb-anim .cb-fade.cb-in{opacity:1;transform:none;}

/* plain cards outside the deck hinge up from their bottom edge */
.cb-anim .cb-card{
  opacity:0;
  transform:perspective(1300px) rotateX(11deg) translateY(50px) scale(.955);
  transform-origin:50% 100%;
  transition:opacity .8s var(--cb-ease,ease), transform 1.05s var(--cb-ease,ease);
  transition-delay:var(--d,0ms);
}
.cb-anim .cb-card.cb-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){
  .cb-stack.bento{display:grid;grid-template-columns:1fr;gap:26px;}
  .cb-stack > .feat{
    position:relative;
    min-height:0;
    margin-bottom:0;
    padding:28px 26px;
  }
  .cb-stack > .feat.cb-last{margin-bottom:0;}
  .cb-stack-tail{display:none;}
  .cb-stack > .feat .num{top:20px;right:22px;font-size:32px;}
  .cb-stage{padding-bottom:88px;}
  .cb-stage .section-head{margin-bottom:34px;}
  /* copy first, illustration beneath it */
  .cb-stack > .feat.cb-has-vec{grid-template-columns:1fr;gap:24px;}
  .cb-card-vec{order:2;}
  .cb-card-vec svg{max-height:210px;}
}
@media (max-width:575px){
  .cb-stack > .feat{padding:24px 22px;}
  .cb-stack > .feat .num{top:18px;right:18px;font-size:28px;}
  .cb-points .cb-point{font-size:13.5px;padding:9px 0 9px 22px;}
  .cb-points .cb-point::before{top:16px;width:7px;height:7px;}
  .cb-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){
  .cb-vortex{display:none;}
  .cb-stack > .feat{position:relative;min-height:0;margin-bottom:26px;}
  .cb-stack-tail{display:none;}
  .cb-stack > .feat .feat-ico,
  .cb-stack > .feat h3,
  .cb-stack > .feat .tag,
  .cb-stack > .feat .num,
  .cb-stack > .feat > p,
  .cb-stack > .feat ul li,
  .cb-stack > .feat .cb-points .cb-point,
  .cb-card-vec .cb-pop,.cb-card-vec .cb-flow,
  .cb-anim .cb-pill,.cb-anim .cb-fade,.cb-anim .cb-card{
    opacity:1 !important;transform:none !important;
    filter:none !important;clip-path:none !important;transition:none !important;
  }
  .cb-w > i{transform:none !important;opacity:1 !important;filter:none !important;transition:none !important;}
  .cb-card-vec .cb-bar{transform:none !important;transition:none !important;}
  .cb-card-vec [data-cb-draw]{stroke-dashoffset:0 !important;transition:none !important;}
  .cb-card-vec .cb-float,.cb-card-vec .cb-ring,.cb-card-vec .cb-spin{animation:none !important;}
}
@media print{
  .cb-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, as on the
 *     building-materials page
 *
 * The page ships this hero as dark copy on white with the scene
 * boxed inside an opaque navy card. Here the whole band becomes the
 * brand gradient - slowly drifting - the copy flips to white, and
 * the card dissolves so the isometric scene floats on the band
 * itself, with the four stats restated as frosted glass tiles.
 *
 * Nothing is added or removed from the markup; every rule below
 * only restates a colour or a frame, so the content is untouched.
 * ========================================================== */

.hero{
  color:#fff;
  background:linear-gradient(120deg,#2b00ba,#430171,#701893,#1308AD,#2b00ba);
  background-size:300% 300%;
  animation:cbHeroGrad 16s ease-in-out infinite;
}
@keyframes cbHeroGrad{
  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 other industry heroes use */
.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 navy panel dissolves so the scene sits on the band. overflow
   has to go back to visible as well: the card ships with it hidden,
   which would clip the scene's own perspective tilt at the edges. */
/* section.hero, not .hero: this page keeps its .cos-card rules in an
   inline <style> inside the BODY, which lands after this stylesheet,
   so at equal specificity the page's navy panel won on document order
   and the card never went transparent. The element selector takes it. */
section.hero .cos-card{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  overflow:visible;
}
/* the card's own corner blob becomes the glow behind the scene */
section.hero .cos-card::before{
  left:50%;top:46%;right:auto;
  width:78%;height:66%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(201,167,255,.40), transparent 68%);
  filter:blur(26px);
  animation:cbHeroGlow 6s ease-in-out infinite;
}
@keyframes cbHeroGlow{
  0%,100%{opacity:.7;}
  50%{opacity:1;}
}

section.hero .cos-card .cos-title{color:#fff;}
section.hero .cos-card .cos-desc{color:#DAD3F2;}

/* the stats drop their hairline rules and become frosted tiles, the
   way the other industry heroes carry theirs */
section.hero .cos-stats{gap:14px;margin-top:20px;}
section.hero .cos-stat{
  border-top:0;
  padding:16px 18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:16px;
  -webkit-backdrop-filter:blur(8px);
          backdrop-filter:blur(8px);
}
section.hero .cos-stat span{color:#DAD3F2;}

@media (prefers-reduced-motion:reduce){
  .hero,section.hero .cos-card::before{animation:none;}
}

/* ---------- the band's own breathing room ----------
 * The page gives this hero 132px/60px; with the gradient running
 * edge to edge the shallow bottom reads as the copy sitting on the
 * seam, so it matches the other industry bands at 140/90. 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;}
}
