/* ==========================================================================
   TL EXPERIENCE v2 (2026-11-01): glass, light, 3D stage and motion styles.
   Loaded after style.css. Pairs with tl-x.js and tl-x-3d.js.
   ROLLBACK: remove the TL EXPERIENCE v2 block in functions.php, or restore
   wp-content/triova-rollback/20261101-preredesign.
   ========================================================================== */
:root{
  --x-bg:#050A18;--x-deep:#030712;--x-ink:#F2F7FF;--x-mut:#8DA0C2;--x-acc:#3DB5FF;--x-cyan:#4CC3F7;
  --x-line:rgba(120,170,255,.16);--x-line-hi:rgba(140,200,255,.32);
  --x-glass:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
  --x-ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- Smooth scroll (Lenis) ---------- */
html.tl-x-smooth{scroll-behavior:auto}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}

/* ---------- Page enter / leave ---------- */
/* Opacity only, and no fill after it ends: a transform here would trap the pinned
   (position:fixed) services section inside #content */
@keyframes tlx-enter{from{opacity:0}to{opacity:1}}
#content{animation:tlx-enter .6s ease backwards}
html.tl-x-leaving #content,html.tl-x-leaving .tl-site-footer{opacity:0;transition:opacity .3s ease}

/* ---------- Header: glass bar + scroll progress hairline ---------- */
.e-con.tl-header{background:rgba(5,10,24,.55);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border-bottom:1px solid var(--x-line)}
.tl-site-header.is-stuck .e-con.tl-header{background:rgba(5,10,24,.78)}
.tl-x-progress{position:absolute;left:0;right:0;bottom:0;height:1px;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--x-acc),var(--x-cyan));box-shadow:0 0 12px rgba(61,181,255,.8);pointer-events:none;z-index:2}
.tl-site-header{position:sticky}

/* ---------- Ambient light pools (blue only) ---------- */
.e-con.tl-sec.tl-x-lit{position:relative;isolation:isolate;overflow:clip}
.tl-x-amb{position:absolute;z-index:-1;pointer-events:none;width:min(820px,90vw);aspect-ratio:1;border-radius:50%;filter:blur(40px);opacity:.55;will-change:transform}
.tl-x-amb--0{top:-22%;right:-16%;background:radial-gradient(closest-side,rgba(61,140,255,.22),transparent)}
.tl-x-amb--1{bottom:-30%;left:-18%;background:radial-gradient(closest-side,rgba(61,181,255,.16),transparent)}
.tl-x-amb--2{top:10%;left:30%;background:radial-gradient(closest-side,rgba(30,110,255,.14),transparent)}
/* Replace the older violet tints with brand blues */
.e-con.tl-sec:not(.tl-hero):not(.tl-alt):not(.tl-strip){background-image:radial-gradient(70% 55% at 88% 0%,rgba(40,110,255,.07),transparent 70%),radial-gradient(60% 50% at 0% 100%,rgba(61,181,255,.05),transparent 70%)}
.e-con.tl-sec.tl-alt{background:radial-gradient(70% 60% at 10% 0%,rgba(40,110,255,.08),transparent 70%),radial-gradient(60% 55% at 100% 100%,rgba(61,181,255,.07),transparent 70%),#060C1C}
body:not(.home) .e-con.tl-hero{background-image:radial-gradient(55% 70% at 50% 0%,rgba(61,181,255,.15),transparent 70%),radial-gradient(45% 60% at 85% 75%,rgba(40,110,255,.12),transparent 70%)}
.elementor .e-con.tl-sec.tl-ans.tl-ans.tl-ans{background-image:radial-gradient(55% 45% at 50% 0%,rgba(61,181,255,.13),transparent 70%),radial-gradient(40% 50% at 100% 60%,rgba(40,110,255,.1),transparent 70%)}

/* ---------- Cards: translucent glass family ---------- */
.e-con.tl-card{
  background:
    radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(76,195,247,calc(var(--tl-glow) * .16)),transparent 60%),
    linear-gradient(180deg,rgba(18,34,68,.62),rgba(8,16,34,.66));
  border:1px solid var(--x-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.015);
}
.e-con.tl-card::after{content:"";position:absolute;left:18px;right:18px;top:-1px;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(160,215,255,.55),transparent);opacity:.55;transition:opacity .4s}
.e-con.tl-card:hover::after{opacity:1}
.e-con.tl-card:hover{border-color:rgba(61,181,255,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 30px 70px -34px rgba(61,181,255,.55)}
/* Frosted glass, only where it reads (lit background behind) */
.e-con.tl-x-glass{background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(76,195,247,calc(var(--tl-glow,0) * .16)),transparent 60%),var(--x-glass),rgba(10,20,44,.38);backdrop-filter:blur(16px) saturate(130%);-webkit-backdrop-filter:blur(16px) saturate(130%);border:1px solid rgba(140,190,255,.18)}
.e-con.tl-strip.tl-x-glass{border-inline:0;border-radius:0}
.elementor .e-con.tl-cta.tl-x-glass{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 0%,rgba(61,181,255,.24),transparent 62%),var(--x-glass),rgba(8,17,31,.55)}
/* Animated light running round the closing call to action */
@property --tlx-a{syntax:'<angle>';inherits:false;initial-value:0deg}
.elementor .e-con.tl-cta.tl-x-glass::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;background:conic-gradient(from var(--tlx-a),transparent 0 70%,rgba(160,220,255,.9) 82%,transparent 94%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:tlx-spin 6s linear infinite}
@keyframes tlx-spin{to{--tlx-a:360deg}}

/* ---------- 3D stage ---------- */
.tl-x-stage,.tl-hero>.tl-x-stage{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;transition:opacity 1.2s ease}
.tl-x-stage.is-live{opacity:1}
.tl-x-stage canvas{display:block;width:100%;height:100%}
.tl-x-stage--hero canvas{pointer-events:auto;cursor:grab}
.tl-x-stage--hero canvas.is-drag{cursor:grabbing}
.tl-hero.tl-x-has-stage>.e-con,.tl-hero.tl-x-has-stage>.e-con-inner{position:relative;z-index:1}
/* Homepage hero, tablets and up: lit space instead of the video */
@media(min-width:768px){
  .home .tl-hero{background-color:var(--x-bg)!important;background-image:radial-gradient(60% 70% at 72% 45%,rgba(40,110,255,.16),transparent 70%),radial-gradient(40% 50% at 10% 90%,rgba(61,181,255,.08),transparent 70%)!important}
  .home .tl-hero>.elementor-background-video-container,.home .tl-hero .tl-globe{display:none!important}
  .home .tl-hero.tl-x-has-stage .tl-x-stage{pointer-events:none}
  .home .tl-hero.tl-x-has-stage .tl-x-stage canvas{pointer-events:auto}
  .home .tl-hero.tl-x-has-stage>.e-con{pointer-events:none}
  .home .tl-hero.tl-x-has-stage>.e-con a,.home .tl-hero.tl-x-has-stage>.e-con .elementor-widget{pointer-events:auto}
  .home .tl-hero:after{-webkit-mask-image:radial-gradient(ellipse at 70% 50%,#000,transparent 62%);mask-image:radial-gradient(ellipse at 70% 50%,#000,transparent 62%);opacity:.6}
  /* Inner-page heroes get a quiet ambient ring behind the centred heading */
  body:not(.home) .tl-hero.tl-x-has-stage .tl-x-stage{opacity:0}
  body:not(.home) .tl-hero.tl-x-has-stage .tl-x-stage.is-live{opacity:.6}
}
/* Tablet portrait: the object sits above the copy, so the copy keeps its lower anchor */
@media(min-width:768px) and (max-width:1023px),(min-width:768px) and (max-aspect-ratio:13/10){
  .home .tl-hero .tl-h1 .elementor-heading-title{text-shadow:0 2px 30px rgba(3,8,20,.8)}
}

/* ---------- Hero headline reveal ---------- */
.tl-x-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.tl-x-wi{display:inline-block;will-change:transform}
.tl-hero .tl-h1 .tl-ac .tl-x-wi,.tl-hero .tl-h1 .tl-x-w .tl-ac{background:linear-gradient(100deg,#9FDCFF 0%,#3DB5FF 45%,#4CC3F7 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
/* Hold the hero copy until the intro runs, with a safety reveal if scripts never arrive */
@media(prefers-reduced-motion:no-preference){
  html.tl-x-js:not(.tl-x-ready) .home .tl-hero .tl-h1,
  html.tl-x-js:not(.tl-x-ready) .home .tl-hero .tl-p,
  html.tl-x-js:not(.tl-x-ready) .home .tl-hero .tl-btn{opacity:0;animation:tlx-safe 0s 3s forwards}
}
@keyframes tlx-safe{to{opacity:1}}

/* ---------- Statement: scroll-lit words ---------- */
.tl-x-statement .tl-x-w{overflow:visible}
.tl-x-statement .tl-x-wi{transition:none}

/* ---------- Section headings: masked rise ---------- */
.tl-x-clip{will-change:clip-path,transform}

/* ---------- Horizontal services showcase (large screens) ---------- */
.tl-x-hs{overflow:clip}
.elementor .e-con.tl-x-hs{--padding-top:64px;--padding-bottom:56px}
.elementor .e-con.tl-x-hs-row.tl-x-hs-row{--flex-wrap:nowrap;flex-wrap:nowrap;width:max-content;max-width:none;--justify-content:flex-start;justify-content:flex-start;gap:24px;will-change:transform}
.elementor .tl-x-hs-row>.e-con.tl-card{--width:clamp(340px,27vw,420px);width:clamp(340px,27vw,420px);flex:none}
.tl-x-hs-rail{height:1px;margin:28px auto 0;width:min(520px,60%);background:var(--x-line);position:relative;overflow:hidden;border-radius:2px}
.tl-x-hs-rail i{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--x-acc),var(--x-cyan));box-shadow:0 0 10px rgba(61,181,255,.8)}

/* ---------- Process: orbit path ---------- */
.tl-x-path-row{position:relative}
.tl-x-path{position:absolute;left:4%;right:4%;top:48px;height:1px;background:var(--x-line);z-index:0;pointer-events:none}
.tl-x-path i{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,rgba(61,181,255,.2),var(--x-acc),var(--x-cyan));box-shadow:0 0 14px rgba(61,181,255,.9)}
.tl-x-path.is-full i{transform:scaleX(1)}
.tl-x-path-row>.e-con.tl-card{z-index:1}
.tl-x-step>.tl-eye:first-child .elementor-heading-title{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;letter-spacing:.06em;border:1px solid var(--x-line-hi);background:rgba(5,10,24,.85);transition:background .5s var(--x-ease),color .5s,box-shadow .5s,border-color .5s}
.tl-x-step.is-lit>.tl-eye:first-child .elementor-heading-title{background:linear-gradient(135deg,#BFE6FF,#3DB5FF);color:#04101F;border-color:transparent;box-shadow:0 0 0 6px rgba(61,181,255,.12),0 0 28px rgba(61,181,255,.7)}
#automation-pipeline .tl-x-step>.tl-eye:first-child .elementor-heading-title{width:auto;height:auto;padding:8px 14px;border-radius:99px}
@media(max-width:1024px){.tl-x-path{display:none}}

/* ---------- Image parallax ---------- */
.tl-x-par{overflow:hidden;border-radius:12px}
.tl-x-par img{transform:scale(1.14);will-change:transform}
.tl-about-visual.tl-x-par{border-radius:inherit}

/* ---------- Magnetic buttons ---------- */
.elementor .tl-x-mag{will-change:transform}

/* ---------- Cursor light ---------- */
.tl-x-cursor{position:fixed;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;pointer-events:none;z-index:9999;border:1px solid rgba(160,215,255,.55);background:radial-gradient(closest-side,rgba(61,181,255,.18),transparent);opacity:0;transition:opacity .3s,width .35s var(--x-ease),height .35s var(--x-ease),margin .35s var(--x-ease),border-color .3s,background .3s;mix-blend-mode:screen}
.tl-x-cursor.is-on{opacity:1}
.tl-x-cursor.is-hot{width:60px;height:60px;margin:-30px 0 0 -30px;border-color:rgba(61,181,255,.9);background:radial-gradient(closest-side,rgba(61,181,255,.25),transparent)}
.tl-x-cursor.is-card{width:90px;height:90px;margin:-45px 0 0 -45px;border-color:rgba(61,181,255,.25);background:radial-gradient(closest-side,rgba(61,181,255,.1),transparent)}
.tl-x-cursor.is-grab{width:70px;height:70px;margin:-35px 0 0 -35px;border-style:dashed}

/* ---------- Marquee pauses under the pointer ---------- */
.tl-marquee:hover .tl-track{animation-play-state:paused}

/* ---------- Footer wordmark ---------- */
.tl-site-footer{position:relative;overflow:hidden}
.tl-x-mark{pointer-events:none;user-select:none;text-align:center;line-height:.8;margin-top:-10px;padding-bottom:6px}
.tl-x-mark span{display:inline-block;font:700 clamp(80px,19vw,300px)/.82 'Space Grotesk',sans-serif;letter-spacing:-.05em;background:linear-gradient(180deg,rgba(61,181,255,.22),rgba(61,181,255,0) 85%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- Focus stays visible everywhere ---------- */
.tl-card a:focus-visible,.tl-x-glass a:focus-visible{outline:2px solid var(--x-ink);outline-offset:3px;border-radius:6px}

/* ---------- Phones and tablets: lighter glass, no pinning, no cursor ---------- */
@media(max-width:1024px){
  .e-con.tl-x-glass{backdrop-filter:none;-webkit-backdrop-filter:none;background:linear-gradient(180deg,rgba(20,38,76,.7),rgba(8,16,34,.78))}
  .tl-x-amb{filter:blur(30px);opacity:.45}
}
@media(max-width:767px){
  .e-con.tl-header{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .tl-x-mark span{font-size:28vw}
}

/* ---------- Reduced motion: everything still, everything visible ---------- */
@media(prefers-reduced-motion:reduce){
  #content{animation:none}
  .tl-x-amb{will-change:auto}
  .elementor .e-con.tl-cta.tl-x-glass::before{animation:none;--tlx-a:200deg}
  .tl-x-par img{transform:none}
  .tl-x-cursor{display:none}
}
/* ---------- Hero v3: steel headline, rose second light (html.tl-x-v3) ---------- */
html.tl-x-v3 .home .tl-hero .tl-h1,html.tl-x-v3 .home .tl-hero .tl-h1 .tl-ac,html.tl-x-v3 .home .tl-hero .tl-h1 .tl-x-w,html.tl-x-v3 .home .tl-hero .tl-h1 .tl-x-wi{text-shadow:none!important}
html.tl-x-v3 .home .tl-hero .tl-h1 .elementor-heading-title{text-shadow:none;filter:drop-shadow(0 8px 34px rgba(3,8,20,.75))}
html.tl-x-v3 .home .tl-hero .tl-h1 .tl-x-wi{background:linear-gradient(180deg,#FFFFFF 0%,#D3DEF0 55%,#8FA3C4 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
html.tl-x-v3 .home .tl-hero .tl-h1 .tl-ac .tl-x-wi,html.tl-x-v3 .home .tl-hero .tl-h1 .tl-x-w .tl-ac{background:linear-gradient(100deg,#9FDCFF 0%,#3DB5FF 40%,#F0507F 115%);-webkit-background-clip:text;background-clip:text;color:transparent}
@media(min-width:768px){
  html.tl-x-v3 .home .tl-hero{background-image:radial-gradient(55% 65% at 74% 55%,rgba(40,110,255,.14),transparent 70%),radial-gradient(40% 45% at 92% 92%,rgba(240,80,127,.13),transparent 70%),radial-gradient(35% 45% at 6% 95%,rgba(61,181,255,.07),transparent 70%)!important}
  html.tl-x-v3 .home .tl-hero:after{opacity:.35}
}
@media(min-width:1024px) and (min-aspect-ratio:3/2){
  html.tl-x-v3 .home .tl-hero .tl-h1 .elementor-heading-title{font-size:clamp(2.75rem,3.7vw,5.4rem);letter-spacing:-.04em;line-height:1}
}
/* ===== end TL EXPERIENCE v2 ===== */
