/* ============================================================
   TechWyse — Home page Hero / Banner (`twrb_home_hero` widget)
   "The TechWyse Business Growth Engine™" four-stage cluster.

   Lifted from the homepage reference (TechWyse Homepage 25-9-26,
   section#engine.hg). Keyframes, timings, easings, gradients and
   the cqw/cqi type scale are the source's own; every component
   selector is prefixed with the section root `.hg` so a theme or
   Elementor kit rule on bare h1 / p / a / button cannot outrank it.

   Isolation: the section root carries `twrb_ec-guard`, so the
   `!important` type, colour and button locks in techwyse-system.css
   skip everything inside it (same hook the guide family uses). The
   source `.btn` / `.btn-green` button is emitted as `.hg-btn` /
   `.hg-btn-green` for the same reason — the system BUTTON LOCK keys
   off the bare `.btn` class.

   Editor controls write custom properties through Elementor's
   `selectors` mapping (no inline styles), each falling back to the
   source value:
     --hg-tv      visual column track      (minmax(0,.84fr))
     --hg-tracks  the two-column template  (visual | copy)
     --hg-cols    layout override          (side by side / stacked)
     --hg-ov      visual column order      (0 = first, 2 = after copy)
     --hg-row     both columns' grid row   (1 side by side, auto stacked)
     --hg-gap     column gap
     --hg-align   vertical alignment of the two columns
     --hg-maxw    content max width
     --hg-vw      engine cluster width
     --hg-vjs     engine cluster horizontal alignment
     --hg-ta / --hg-jc   copy alignment (text / flex rows)
   ============================================================ */

@keyframes hgRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes hgLine{from{transform:translateY(108%)}to{transform:none}}
@keyframes hgFade{from{opacity:0}to{opacity:1}}
@keyframes hgPop{from{opacity:0;scale:.5}to{opacity:1;scale:1}}
@keyframes hgHaloIn{from{opacity:0;scale:.55}to{opacity:1;scale:1}}
@keyframes hgFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes hgBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes hgPing{0%{transform:scale(1);opacity:0}4%{opacity:.75}26%,100%{transform:scale(1.42);opacity:0}}
@keyframes hgTravel{0%{offset-distance:0%;opacity:0}5%{opacity:1}75%{offset-distance:100%;opacity:1}80%,100%{offset-distance:100%;opacity:0}}
@keyframes hgDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes hgNudge{0%,100%{transform:translate(0,0)}50%{transform:translate(3.5px,-3.5px)}}
@keyframes hgArrowIn{from{opacity:0;transform:translate(-16px,16px)}to{opacity:1;transform:none}}
@keyframes hgIn0{from{opacity:0;translate:97% 0;scale:.4}to{opacity:1;translate:0 0;scale:1}}
@keyframes hgIn1{from{opacity:0;translate:0 97%;scale:.4}to{opacity:1;translate:0 0;scale:1}}
@keyframes hgIn2{from{opacity:0;translate:-97% 0;scale:.4}to{opacity:1;translate:0 0;scale:1}}
@keyframes hgIn3{from{opacity:0;translate:0 -97%;scale:.4}to{opacity:1;translate:0 0;scale:1}}
@keyframes hgSpin{to{transform:rotate(1turn)}}
@keyframes hgTick{0%{opacity:0;transform:translateY(60%)}6%,30%{opacity:1;transform:none}36%,100%{opacity:0;transform:translateY(-60%)}}

/* ---------- section + two-column grid ---------- */
/* The reference padded the top by the height of its fixed header, which sat
   over the hero. The plugin's header is in the page flow, so only the inner
   band's own clamp() spacing remains; the Padding control adds more. */
.hg{
  --hg-tv:minmax(0,.84fr);
  --hg-tracks:var(--hg-tv) minmax(0,1fr);
  position:relative;overflow:hidden;background:#FAFDFF;color:var(--tw-ink-900);
  padding:0 var(--gutter) 0;font-family:var(--font-body);line-height:1.5;
  display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;
}
.hg *,.hg *::before,.hg *::after{box-sizing:border-box}
.hg .hg-inner{position:relative;z-index:2;width:100%;max-width:var(--hg-maxw,var(--content-wide));margin:0 auto;padding:clamp(24px,5vh,64px) 0 clamp(48px,8vh,100px);
  display:grid;grid-template-columns:var(--hg-cols,var(--hg-tracks));gap:var(--hg-gap,clamp(32px,5.2vw,96px));align-items:var(--hg-align,center)}
.hg .hg-inner>*{min-width:0}
.hg .hg-visual{order:var(--hg-ov,0)}
.hg .hg-copy{order:1}
/* Two-column guard. Themes print a clearfix (`::before`/`::after` with
   `content:""; display:table`) on section / inner wrappers of page
   templates. Inside this grid that pseudo-element became an extra, empty
   grid item: it took the right-hand cell beside the engine, so the copy
   column (order 1) wrapped under the engine in column 1 and the right half
   of the hero stayed blank — and in the stacked layout it opened one more
   row gap. The hero draws no pseudo-element on these wrappers, so they are
   removed outright, and the two columns are pinned to row 1 while side by
   side so nothing injected can push the copy onto a second row. */
section.hg::before,section.hg::after,
section.hg>.hg-inner::before,section.hg>.hg-inner::after,
section.hg .hg-copy::before,section.hg .hg-copy::after,
section.hg .hg-cta-row::before,section.hg .hg-cta-row::after,
section.hg ul.hg-stats::before,section.hg ul.hg-stats::after{content:none!important;display:none!important}
section.hg>.hg-inner{display:grid;float:none;grid-auto-flow:row}
section.hg>.hg-inner>.hg-visual,section.hg>.hg-inner>.hg-copy{float:none;margin:0;grid-row:var(--hg-row,auto)}
@media(min-width:992px){section.hg{--hg-row:1}}

/* the engine cluster — every size is a share of the cluster width (cqw) */
.hg .hg-visual{position:relative;container-type:inline-size;width:var(--hg-vw,100%);max-width:100%;justify-self:var(--hg-vjs,center)}
@media(min-width:992px){.hg .hg-visual{width:var(--hg-vw,min(100%,max(360px,calc(100svh - var(--tw-header-h,140px) - 170px))))}}
.hg .hg-cluster{position:relative;width:100%;aspect-ratio:1}
.hg .hg-halo{position:absolute;width:60%;height:60%;border-radius:50%;z-index:0;pointer-events:none;
  background:radial-gradient(closest-side,#F5F6F8 0%,#F5F6F8 80%,rgba(245,246,248,0) 100%);
  animation:hgHaloIn 1.5s var(--ease-out) backwards,hgBreathe 9s ease-in-out infinite}
/* `.hg-halo` is part of every halo selector: the headline also carries
   `.hg-h1`, so a bare `.hg .hg-h1` position rule would offset the headline
   (left:20%;top:-13%) and the headline's type rule would hit this disc. */
.hg .hg-halo.hg-h0{left:-13%;top:20%;animation-delay:.05s,-2s}
.hg .hg-halo.hg-h1{left:20%;top:-13%;animation-delay:0s,-4.5s}
.hg .hg-halo.hg-h2{left:53%;top:20%;animation-delay:.1s,-6.5s}
.hg .hg-halo.hg-h3{left:20%;top:53%;animation-delay:.15s,-8s}
.hg .hg-glow{position:absolute;width:46%;height:46%;border-radius:50%;z-index:1;pointer-events:none;transition:opacity .5s var(--ease-out);
  animation:hgFade 1.6s var(--ease-out) backwards,hgFloat 7s ease-in-out infinite}
.hg .hg-g0{left:0;top:33%;background:radial-gradient(closest-side,rgba(41,57,181,.62),rgba(41,57,181,.24) 58%,rgba(41,57,181,0));animation-delay:.7s,0s}
.hg .hg-g1{left:33%;top:0;background:radial-gradient(closest-side,rgba(66,111,219,.6),rgba(66,111,219,.22) 58%,rgba(66,111,219,0));animation-delay:.8s,-1.75s}
.hg .hg-g2{left:66%;top:33%;background:radial-gradient(closest-side,rgba(140,198,62,.6),rgba(140,198,62,.22) 58%,rgba(140,198,62,0));animation-delay:.9s,-3.5s}
.hg .hg-g3{left:33%;top:66%;background:radial-gradient(closest-side,rgba(160,214,96,.55),rgba(160,214,96,.2) 58%,rgba(160,214,96,0));animation-delay:1s,-5.25s}

.hg .hg-arcs{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1;pointer-events:none;transition:opacity .45s var(--ease-out)}
.hg .hg-arc{fill:none;stroke:rgba(20,26,36,.24);stroke-width:.28;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;animation:hgDraw 1s var(--ease-out) backwards}
.hg .hg-a0{animation-delay:1.15s}.hg .hg-a1{animation-delay:1.3s}.hg .hg-a2{animation-delay:1.45s}
.hg .hg-arrowhead{fill:none;stroke:rgba(20,26,36,.32);stroke-width:.28;stroke-linecap:round;stroke-linejoin:round;animation:hgFade .6s var(--ease-out) 2s backwards}
.hg .hg-dot,.hg .hg-dot-halo{offset-path:path('M13,50 A37,37 0 0 1 50,13 A37,37 0 0 1 87,50 A37,37 0 0 1 50,87');offset-rotate:0deg;animation:hgTravel 6.4s linear 1.9s infinite backwards}
.hg .hg-dot{fill:#8CC63E}
.hg .hg-dot-halo{fill:rgba(140,198,62,.26)}

.hg .hg-core{position:absolute;left:36.8%;top:36.8%;width:26.4%;height:26.4%;border-radius:50%;z-index:2;pointer-events:none;
  background:radial-gradient(circle at 68% 30%,rgba(255,255,255,.96) 0%,rgba(240,243,250,.86) 50%,rgba(222,229,244,.84) 100%);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 22px 44px -20px rgba(27,62,147,.28);
  animation:hgPop 1s var(--ease-out) .12s backwards;
  transition:opacity .45s var(--ease-out),left .7s var(--ease-out),top .7s var(--ease-out),width .7s var(--ease-out),height .7s var(--ease-out),box-shadow .6s var(--ease-out)}
.hg .hg-core svg{display:block;width:100%;height:100%;overflow:visible;transition:opacity .4s var(--ease-out)}
.hg.has-on .hg-core svg{opacity:0}
.hg.has-on .hg-core{width:42%;height:42%;z-index:3;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 0 0 1px rgba(var(--hc),.22),0 34px 70px -22px rgba(var(--hc),.6)}
.hg.has-on[data-on="0"] .hg-core{left:35%;top:29%}
.hg.has-on[data-on="1"] .hg-core{left:29%;top:35%}
.hg.has-on[data-on="2"] .hg-core{left:23%;top:29%}
.hg.has-on[data-on="3"] .hg-core{left:29%;top:23%}
.hg.has-on .hg-node:not(.on) .hg-face{transform:scale(.55)}
.hg[data-on="0"]{--hc:41,57,181}.hg[data-on="1"]{--hc:66,111,219}.hg[data-on="2"],.hg[data-on="3"]{--hc:110,168,44}
.hg .hg-core::after{content:"";position:absolute;inset:-14px;border-radius:50%;border:1.5px dashed rgba(var(--hc,27,62,147),.55);opacity:0;transform:rotate(0) scale(.85);transition:opacity .4s var(--ease-out),transform .7s var(--ease-out)}
.hg.has-on .hg-core::after{opacity:1;transform:scale(1);animation:hgSpin 18s linear infinite}
.hg .hg-cbg{position:absolute;inset:0;border-radius:50%;opacity:0;transition:opacity .5s var(--ease-out);background:#fff}
.hg.has-on .hg-cbg{opacity:1}
.hg .hg-cm{position:absolute;inset:13%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6em;text-align:center;color:var(--tw-ink-900);opacity:0;transform:translateY(8%);transition:opacity .25s var(--ease-out),transform .55s var(--ease-out)}
.hg .hg-cm span{font-family:var(--font-body);font-size:clamp(8px,1.75cqw,12px);font-weight:700;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:var(--tw-cobalt-700);white-space:nowrap}
.hg .hg-cm2 span,.hg .hg-cm3 span{color:var(--tw-green-800,#4F7F1B)}
.hg .hg-cm b{font-family:var(--font-display);font-weight:400;text-transform:uppercase;font-size:clamp(16px,5.2cqw,36px);line-height:.92;letter-spacing:.01em;text-wrap:balance;color:inherit}
.hg .hg-cm em{display:grid;font-style:normal;margin-top:.2em;min-width:100%}
.hg .hg-cm em i{grid-area:1/1;font-style:normal;font-family:var(--font-body);font-size:clamp(9px,1.85cqw,13px);font-weight:600;line-height:1.2;letter-spacing:normal;padding:.5em 1em;border-radius:999px;color:#fff;background:rgb(var(--hc));justify-self:center;max-width:100%;text-wrap:balance;opacity:0}
.hg[data-on="3"] .hg-cm3 em i,.hg[data-on="2"] .hg-cm2 em i{background:#4F7F1B}
@container (max-width:360px){.hg .hg-cm em{display:none}}
.hg.has-on[data-on="0"] .hg-cm0,.hg.has-on[data-on="1"] .hg-cm1,.hg.has-on[data-on="2"] .hg-cm2,.hg.has-on[data-on="3"] .hg-cm3{opacity:1;transform:none;transition-delay:.22s,.18s}
.hg.has-on[data-on="0"] .hg-cm0 em i,.hg.has-on[data-on="1"] .hg-cm1 em i,.hg.has-on[data-on="2"] .hg-cm2 em i,.hg.has-on[data-on="3"] .hg-cm3 em i{animation:hgTick 5.4s var(--ease-out) infinite backwards}
.hg .hg-cm em i:nth-child(1){animation-delay:.45s!important}.hg .hg-cm em i:nth-child(2){animation-delay:2.25s!important}.hg .hg-cm em i:nth-child(3){animation-delay:4.05s!important}
.hg .hg-arrow-in{animation:hgArrowIn 1s var(--ease-out) .75s backwards}
.hg .hg-arrow{animation:hgNudge 3.2s ease-in-out 1.9s infinite}

/* stage nodes — <button>s, so theme/kit button styling is reset in full */
.hg .hg-cluster button.hg-node,
.hg .hg-cluster button.hg-node:hover,
.hg .hg-cluster button.hg-node:focus,
.hg .hg-cluster button.hg-node:active{position:absolute;width:34%;height:34%;min-width:0;min-height:0;border-radius:50%;z-index:2;appearance:none;-webkit-appearance:none;border:0;padding:0;margin:0;
  background:none;box-shadow:none;font:inherit;color:inherit;text-transform:none;letter-spacing:normal;text-decoration:none;line-height:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hg .hg-cluster button.hg-node:focus:not(:focus-visible){outline:0}
.hg .hg-node:focus-visible{outline-offset:6px;border-radius:50%}
.hg .hg-n0{left:0;top:33%;--c:41,57,181;animation:hgIn0 1.1s var(--ease-out) .25s backwards,hgFloat 7s ease-in-out 0s infinite}
.hg .hg-n1{left:33%;top:0;--c:66,111,219;animation:hgIn1 1.1s var(--ease-out) .37s backwards,hgFloat 7s ease-in-out -1.75s infinite}
.hg .hg-n2{left:66%;top:33%;--c:140,198,62;animation:hgIn2 1.1s var(--ease-out) .49s backwards,hgFloat 7s ease-in-out -3.5s infinite}
.hg .hg-n3{left:33%;top:66%;--c:140,198,62;animation:hgIn3 1.1s var(--ease-out) .61s backwards,hgFloat 7s ease-in-out -5.25s infinite}
.hg .hg-ping{position:absolute;inset:0;border-radius:50%;border:1.5px solid rgba(var(--c),.55);opacity:0;pointer-events:none;animation:hgPing 6.4s var(--ease-out) infinite backwards}
.hg .hg-n0 .hg-ping{animation-delay:1.9s}.hg .hg-n1 .hg-ping{animation-delay:3.5s}.hg .hg-n2 .hg-ping{animation-delay:5.1s}.hg .hg-n3 .hg-ping{animation-delay:6.7s}
.hg .hg-face{position:absolute;inset:0;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;
  box-shadow:0 18px 36px -16px rgba(var(--c),.55);
  transition:transform .7s var(--ease-out),opacity .5s var(--ease-out),filter .5s var(--ease-out)}
.hg .hg-face b{font-family:var(--font-body);font-weight:500;font-size:clamp(28px,9.6cqw,64px);line-height:1;letter-spacing:-.03em;color:inherit}
.hg .hg-face small{display:block;margin-top:.55em;font-family:var(--font-body);font-size:clamp(9.5px,2.45cqw,15px);font-weight:700;line-height:1.22;letter-spacing:.01em;text-transform:uppercase;white-space:nowrap;color:inherit}
.hg .hg-n0 .hg-face{background:linear-gradient(150deg,#3547C6 0%,#2939B5 52%,#2232A4 100%)}
.hg .hg-n1 .hg-face{background:linear-gradient(150deg,#4E7CE6 0%,#426FDB 52%,#3963CD 100%)}
.hg .hg-n2 .hg-face{background:linear-gradient(150deg,#98D04C 0%,#8CC63E 52%,#7EB834 100%)}
.hg .hg-n3 .hg-face{background:linear-gradient(150deg,#B7E676 0%,#C2EB86 50%,#D6F4B2 100%);color:var(--tw-ink-900)}
.hg .hg-n3 .hg-face small{color:var(--tw-ink-600)}
.hg .hg-node:hover .hg-face{transform:scale(1.035)}
.hg .hg-node.on .hg-face{transform:scale(1.07)}
.hg .hg-node::before{content:"";position:absolute;inset:-7px;border-radius:50%;z-index:-1;pointer-events:none;background:#fff;border:1px solid rgba(var(--c),.3);box-shadow:0 24px 44px -14px rgba(var(--c),.65);opacity:0;transform:scale(.9);transition:opacity .4s var(--ease-out),transform .7s var(--ease-out)}
.hg .hg-node.on::before{opacity:1;transform:scale(1.07)}
.hg.has-on .hg-node:not(.on) .hg-face{opacity:.4;filter:saturate(.55)}
.hg.has-on .hg-glow:not(.on){opacity:.28}
.hg.has-on .hg-arcs{opacity:.5}
.hg.has-on .hg-ping,.hg.has-on .hg-dot,.hg.has-on .hg-dot-halo{visibility:hidden}
.hg .hg-arrow-rot{transform-box:view-box;transform-origin:50% 50%;transition:rotate .9s var(--ease-out)}

/* ---------- copy column — type scales with the column (cqi) ---------- */
.hg .hg-copy{min-width:0;container-type:inline-size;container-name:hgcopy;text-align:var(--hg-ta,left)}
.hg .hg-eyebrow{font-family:var(--font-body);font-size:clamp(17px,3.35cqi,30px);font-weight:600;line-height:1.25;letter-spacing:-.01em;color:var(--tw-ink-600);margin:0 0 .7em;padding:0;animation:hgRise 1s var(--ease-out) .15s backwards}
.hg .hg-eyebrow span{font-size:max(19px,min(30px,5.4cqi));background:linear-gradient(90deg,var(--tw-cobalt-700) 0%,var(--tw-cobalt-600) 28%,var(--tw-green-700) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.hg .hg-eyebrow sup{font-size:.5em;line-height:0;margin-left:.06em;letter-spacing:0;vertical-align:super}
.hg .hg-h1:not(.hg-halo){position:static;left:auto;top:auto;font-family:var(--font-body);font-weight:400;font-size:clamp(28px,6.3cqi,62px);line-height:1.14;letter-spacing:-.022em;color:var(--tw-ink-900);margin:0;padding:0;text-transform:none;max-width:none}
.hg .hg-h1 b{font-weight:600}
.hg .hg-line{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.hg .hg-line>span{display:block;animation:hgLine 1.1s var(--ease-out) backwards}
.hg .hg-line:nth-child(1)>span{animation-delay:.28s}
.hg .hg-line:nth-child(2)>span{animation-delay:.4s}
/* Reference sizes were set inline on the two lines (60px / 40px). They hold
   on a wide copy column and step down with the column so each line stays on
   one row instead of being clipped by the line mask. */
.hg .hg-l1 b{font-size:min(60px,9cqi);color:inherit}
.hg .hg-l2>span{font-size:min(40px,5.5cqi)}
@media(max-width:767px){.hg .hg-l2>span{font-size:clamp(18px,6.6cqi,40px)}}
.hg .hg-sub{font-family:var(--font-body);font-size:clamp(15px,2.8cqi,24px);line-height:1.5;color:var(--tw-ink-800);margin:clamp(18px,3.8cqi,34px) 0 0;padding:0;animation:hgRise 1s var(--ease-out) .55s backwards}
.hg .hg-cta-row{display:flex;justify-content:var(--hg-jc,flex-start);margin-top:clamp(20px,4.6cqi,40px);animation:hgRise 1s var(--ease-out) .68s backwards}

/* source `.btn` + `.btn-green` (renamed, see the header) */
.hg a.hg-btn{display:inline-flex;align-items:center;gap:12px;font-family:var(--font-body);font-weight:600;letter-spacing:.01em;border:1.5px solid transparent;border-radius:var(--radius-pill);cursor:pointer;line-height:1;text-decoration:none;text-transform:none;transition:background .18s var(--ease-out),color .18s var(--ease-out),border-color .18s var(--ease-out),box-shadow .18s var(--ease-out),transform .18s var(--ease-out);font-size:17px;padding:16px 20px 16px 30px}
.hg .hg-btn .circ{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;font-size:18px;transition:transform .32s var(--ease-out)}
.hg .hg-btn:hover .circ{transform:translate(3px,-3px)}
.hg a.hg-btn-green{background:var(--tw-green-500);color:#fff;border-color:var(--tw-green-500)}
.hg .hg-btn-green .circ{background:#fff;color:var(--tw-ink-900);font-size:17px}
.hg a.hg-btn-green:hover{background:var(--tw-green-600);border-color:var(--tw-green-600);color:#fff;box-shadow:0 16px 34px rgba(140,198,62,.34)}

/* CTA hover system (.cta-fx): colour floods out of the icon disc, label rolls, icon swaps, pill drifts magnetically.
   The label roll and icon swap run on a quick ~.3s beat; the shared `.btn` CTAs reuse the same timings (techwyse-system.css, CTA HOVER SYSTEM). */
.hg .cta-fx{--fx-fill:var(--tw-cobalt-700,#1B3E93);--fx-ink:#fff;--fx-icon:var(--tw-cobalt-700,#1B3E93);--fx-edge:var(--fx-fill);--fx-glow:rgba(27,62,147,.5);--cx:calc(100% - 37px);--cy:50%;
  position:relative;isolation:isolate;overflow:hidden;will-change:translate;transition:border-color .45s var(--ease-out) .08s,box-shadow .6s var(--ease-out),transform .25s var(--ease-out)}
.hg .cta-fx::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--fx-fill);clip-path:circle(0px at var(--cx) var(--cy));transition:clip-path .6s var(--ease-in-out)}
.hg .cta-fx:is(:hover,:focus-visible){border-color:var(--fx-edge);box-shadow:0 22px 44px -18px var(--fx-glow),0 8px 18px -10px var(--fx-glow)}
.hg .cta-fx:is(:hover,:focus-visible)::before{clip-path:circle(160% at var(--cx) var(--cy));transition:clip-path .85s var(--ease-out)}
.hg .cta-fx:active{transform:scale(.975)}
.hg .fx-lbl{display:block;overflow:hidden;height:1.5em;line-height:1.5;white-space:nowrap}
.hg .fx-lbl>span{display:block;text-shadow:0 1.5em 0 var(--fx-ink);transition:transform .32s var(--ease-in-out)}
.hg .cta-fx:is(:hover,:focus-visible) .fx-lbl>span{transform:translate3d(0,-1.5em,0);transition:transform .38s var(--ease-out) .03s}
.hg .cta-fx .circ{position:relative;overflow:hidden;transition:transform .32s var(--ease-out),color .22s var(--ease-out),background-color .22s var(--ease-out)}
.hg .cta-fx .circ i{display:block;font-style:normal;line-height:1;text-shadow:-1.7em 1.7em 0 currentColor;transition:transform .28s var(--ease-in-out)}
.hg .cta-fx:is(:hover,:focus-visible) .circ{transform:scale(1.08);color:var(--fx-icon)}
.hg .cta-fx:is(:hover,:focus-visible) .circ i{transform:translate3d(1.7em,-1.7em,0);transition:transform .32s var(--ease-out) .03s}
.hg a.cta-fx.hg-btn-green:is(:hover,:focus-visible){background:var(--tw-green-500);color:#fff}
.hg a.hg-btn.hg-cta{--cw:clamp(38px,6.8cqi,48px);color:var(--tw-ink-900);font-size:clamp(15px,2.75cqi,18px);font-weight:500;padding:8px 8px 8px clamp(22px,4.2cqi,32px);gap:clamp(14px,3.2cqi,26px)}
.hg .hg-btn.hg-cta .circ{width:var(--cw);height:var(--cw);font-size:18px;background:#fff;color:var(--tw-ink-900)}
.hg a.cta-fx.hg-btn.hg-cta:is(:hover,:focus-visible){color:var(--tw-ink-900)}
.hg .cta-fx.hg-btn.hg-cta:is(:hover,:focus-visible) .circ{color:var(--fx-icon)}

/* ---------- stats row ---------- */
.hg .hg-stats{position:relative;z-index:1;list-style:none;margin:clamp(26px,5.6cqi,50px) 0 0;padding:0;display:flex;align-items:stretch;justify-content:var(--hg-jc,flex-start)}
.hg .hg-stats>li{display:flex;flex-direction:column;justify-content:center;gap:.3em;margin:0;padding:2px clamp(10px,2.1cqi,22px);border-left:1px solid var(--tw-ink-300);min-width:0;list-style:none;animation:hgRise .9s var(--ease-out) backwards}
.hg .hg-stats>li::before,.hg .hg-stats>li::marker{content:none}
.hg .hg-stats>li:first-child{padding-left:0;border-left:0}
.hg .hg-stats>li:nth-child(1){animation-delay:.8s}.hg .hg-stats>li:nth-child(2){animation-delay:.88s}.hg .hg-stats>li:nth-child(3){animation-delay:.96s}.hg .hg-stats>li:nth-child(4){animation-delay:1.04s}.hg .hg-stats>li:nth-child(n+5){animation-delay:1.12s}
.hg .hg-stats b{font-family:var(--font-body);font-size:clamp(13px,2.6cqi,22px);font-weight:500;line-height:1.2;color:var(--tw-ink-900);white-space:nowrap;letter-spacing:-.01em}
.hg .hg-stats li>span,.hg .hg-rv>span{font-family:var(--font-body);font-size:clamp(11px,1.98cqi,16px);line-height:1.3;color:var(--tw-ink-800);white-space:nowrap}
.hg .hg-stats>li.hg-g{flex-direction:row;align-items:center;gap:clamp(8px,1.8cqi,14px)}
.hg .hg-g img{width:clamp(26px,5.6cqi,44px);height:auto;max-width:none;flex:none;margin:0;border:0;border-radius:0;box-shadow:none}
.hg .hg-rv{display:flex;flex-direction:column;gap:.3em}
.hg .hg-stars{font-style:normal;color:var(--tw-yellow-orange);letter-spacing:.04em;font-size:.84em;margin-left:.25em}
@container hgcopy (max-width:540px){
  .hg .hg-stats{display:grid;grid-template-columns:repeat(2,max-content);gap:18px 34px}
  .hg .hg-stats>li{padding:0;border-left:0}
}

.hg.has-on .hg-node,.hg.has-on .hg-glow{animation-play-state:running,paused}
@media(max-width:991px){
  .hg .hg-inner{grid-template-columns:var(--hg-cols,minmax(0,1fr));gap:var(--hg-gap,clamp(36px,7vw,60px));padding-top:clamp(18px,4vw,36px)}
  .hg .hg-visual{width:var(--hg-vw,min(100%,480px))}
}
/* <=991px: copy column centred by default (Text Alignment control still
   overrides via {{WRAPPER}} .hg). The 4-column stats row under the CTA is
   centred as a block but its text stays left-aligned. */
@media(max-width:991px){
  .hg{--hg-ta:center;--hg-jc:center}
  .hg .hg-stats{text-align:left}
}
@media(max-width:699px){.hg .hg-visual{width:var(--hg-vw,min(100%,400px))}}
.hg.hg-off *{animation-play-state:paused!important}

/* ---------- copy-column spacing (homepage reference HTML) ----------
   Gaps between the copy blocks follow the reference (TechWyse Homepage
   25-9-26, section#engine.hg) at every width: eyebrow -> headline .7em,
   headline -> sub-headline clamp(18px,3.8cqi,34px), sub-headline -> button
   clamp(20px,4.6cqi,40px), button -> stats clamp(26px,5.6cqi,50px), stat
   dividers clamp(10px,2.1cqi,22px) a side — the base rules above already
   carry these; below 1800px they are scaled down (see --hg-sp). The 1800px-up band only fixes the
   type sizes. The per-element Spacing controls (Style tab) still override.

   Specificity fix: the shared isolation reset in techwyse-system.css,
   `[class*="elementor-widget-twrb_"] .elementor-widget-container
   :is(h1,…,p,ul){margin:0}`, weighs 0,2,1 and so beat the 0,2,0 rules above,
   zeroing the eyebrow, sub-headline and stats margins (only the <div> CTA row
   kept its gap). Re-assert the reference gaps at 0,2,2 so they win in any
   load order; the Style-tab controls ({{WRAPPER}} .hg …, 0,4,0+) still win.

   Responsive rhythm: from 1800px up the gaps above apply in full
   (--hg-sp:1). Below 1800px every gap — and the stat-divider padding — is
   multiplied by a smaller --hg-sp per breakpoint band so the copy tightens
   progressively on narrower screens. */
section.hg{--hg-sp:1}
section.hg p.hg-eyebrow{margin:0 0 calc(.7em * var(--hg-sp))}
section.hg p.hg-sub{margin:calc(clamp(18px,3.8cqi,34px) * var(--hg-sp)) 0 0}
section.hg div.hg-cta-row{margin-top:calc(clamp(20px,4.6cqi,40px) * var(--hg-sp))}
section.hg ul.hg-stats{margin:calc(clamp(26px,5.6cqi,50px) * var(--hg-sp)) 0 0;padding:0}
section.hg ul.hg-stats>li{padding:2px calc(clamp(10px,2.1cqi,22px) * var(--hg-sp))}
section.hg ul.hg-stats>li:first-child{padding-left:0}
@media(max-width:1799px){section.hg{--hg-sp:.9}}
@media(max-width:1439px){section.hg{--hg-sp:.82}}
@media(max-width:1199px){section.hg{--hg-sp:.75}}
@media(max-width:991px){section.hg{--hg-sp:.8}}
@media(max-width:767px){section.hg{--hg-sp:.72}}
@media(max-width:479px){section.hg{--hg-sp:.65}}
@container hgcopy (max-width:540px){
  section.hg ul.hg-stats>li{padding:0}
}
@media(min-width:1800px){
  .hg .hg-eyebrow{font-size:24px}
  .hg .hg-eyebrow span{font-size:30px}
  .hg .hg-h1:not(.hg-halo){font-size:40px}
  .hg .hg-l1 b{font-size:min(60px,9cqi)}
  .hg .hg-l2>span{font-size:min(40px,5.5cqi)}
  .hg .hg-sub{font-size:20px}
  .hg a.hg-btn.hg-cta{--cw:48px;font-size:18px}
  .hg .hg-stats b{font-size:20px}
  .hg .hg-stats li>span,.hg .hg-rv>span{font-size:14px}
  .hg .hg-g img{width:40px}
}

/* ---------- responsive type steps (below 1600px) ----------
   ≤1599: eyebrow, headline, sub-headline and the CTA pill step down; the
          stats row under the CTA keeps its size.
   ≤1199: eyebrow held on one line (nowrap, sized to the column); headline
          and sub-headline a touch smaller.
   ≤991:  single column — eyebrow, headline, sub-headline, CTA and the stats
          row all step down.
   ≤767:  eyebrow and sub-headline each held on one line and sized to the
          column (cqi); the headline scales in proportion to the sub-headline;
          smaller CTA. Style-tab Typography controls still override. */
@media(max-width:1599px){
  .hg .hg-eyebrow{font-size:17px}
  .hg .hg-eyebrow span{font-size:26px}
  .hg .hg-l1 b{font-size:min(46px,8cqi)}
  .hg .hg-l2>span{font-size:min(29px,5.2cqi)}
  .hg .hg-sub{font-size:15px}
  .hg a.hg-btn.hg-cta{--cw:38px;font-size:15px;padding:7px 7px 7px 22px;gap:16px}
  .hg .hg-btn.hg-cta .circ{font-size:16px}
}
@media(max-width:1199px){
  .hg .hg-eyebrow{font-size:min(15px,2.8cqi);white-space:nowrap}
  .hg .hg-eyebrow span{font-size:min(21px,4.2cqi)}
  .hg .hg-l1 b{font-size:min(42px,7.6cqi)}
  .hg .hg-l2>span{font-size:min(27px,5cqi)}
  .hg .hg-sub{font-size:14px}
}
@media(max-width:991px){
  .hg .hg-eyebrow{font-size:16px}
  .hg .hg-eyebrow span{font-size:22px}
  .hg .hg-l1 b{font-size:42px}
  .hg .hg-l2>span{font-size:28px}
  .hg .hg-sub{font-size:16px}
  .hg a.hg-btn.hg-cta{--cw:36px;font-size:15px;padding:6px 6px 6px 20px;gap:14px}
  .hg .hg-btn.hg-cta .circ{font-size:15px}
  .hg .hg-stats b{font-size:clamp(13px,2.6cqi,17px)}
  .hg .hg-stats li>span,.hg .hg-rv>span{font-size:clamp(11px,1.98cqi,13px)}
  .hg .hg-g img{width:clamp(26px,5.6cqi,34px)}
}
@media(max-width:767px){
  .hg .hg-eyebrow{font-size:min(14px,2.8cqi);white-space:nowrap}
  .hg .hg-eyebrow span{font-size:min(20px,4.1cqi)}
  .hg .hg-sub{font-size:min(18px,4.1cqi);white-space:nowrap}
  .hg .hg-l1 b{font-size:min(33px,7.4cqi)}
  .hg .hg-l2>span{font-size:min(22px,4.9cqi)}
  .hg a.hg-btn.hg-cta{--cw:32px;font-size:14px;padding:5px 5px 5px 18px;gap:12px}
  .hg .hg-btn.hg-cta .circ{font-size:14px}
}

/* Elementor editor: entrance animations replay on every re-render, which
   makes the panel feel laggy — show the settled state there instead. */
.elementor-editor-active .hg :is(.hg-eyebrow,.hg-line>span,.hg-sub,.hg-cta-row,.hg-stats>li){animation:none}

@media(prefers-reduced-motion:reduce){
  .hg *{animation:none!important;transition:none!important}
  .hg .hg-cm em i:first-child{opacity:1}
}
