/* ==========================================================================
   TL EXPERIENCE v4 (2026-11-01): page hero scenes and section media.
   Loaded after tl-x.css only when html has .tl-x-scenes (option tl_x_scenes).
   ROLLBACK: option tl_x_scenes = 0.
   ========================================================================== */

/* ---------- Inner page heroes: split composition on large screens ---------- */
@media(min-width:1024px) and (min-aspect-ratio:13/10){
  html.tl-x-scenes body:not(.home) .elementor .tl-hero.e-con.e-parent{
    --min-height:clamp(560px,80vh,820px);min-height:clamp(560px,80vh,820px);
    --justify-content:center;--align-items:flex-start;
    --padding-left:clamp(32px,6vw,140px);--padding-right:clamp(32px,6vw,140px);
  }
  html.tl-x-scenes body:not(.home) .elementor .tl-hero > .e-con{--width:min(46%,640px);width:min(46%,640px);--align-items:flex-start;margin-left:0;margin-right:auto}
  html.tl-x-scenes body:not(.home) .tl-hero .elementor-heading-title,
  html.tl-x-scenes body:not(.home) .tl-hero .tl-p,
  html.tl-x-scenes body:not(.home) .tl-hero .tl-p p{text-align:left!important;margin-inline:0}
  html.tl-x-scenes body:not(.home) .tl-hero .tl-h1 .elementor-heading-title{font-size:clamp(2.6rem,3.6vw,4.6rem);line-height:1.02;letter-spacing:-.035em;text-wrap:balance}
  html.tl-x-scenes body:not(.home) .tl-hero .tl-p{max-width:46ch}
  html.tl-x-scenes body:not(.home) .tl-hero:after{-webkit-mask-image:radial-gradient(ellipse at 74% 50%,#000,transparent 60%);mask-image:radial-gradient(ellipse at 74% 50%,#000,transparent 60%);opacity:.45}
  html.tl-x-scenes body:not(.home) .tl-hero.tl-x-has-stage .tl-x-stage.is-live{opacity:1}
}
/* Steel headline on inner pages too */
html.tl-x-scenes body:not(.home) .tl-hero .tl-h1 .elementor-heading-title{background:linear-gradient(180deg,#FFFFFF 0%,#D3DEF0 58%,#9AAECD 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
html.tl-x-scenes body:not(.home) .tl-hero{background-image:radial-gradient(50% 60% at 75% 50%,rgba(40,110,255,.16),transparent 70%),radial-gradient(35% 45% at 92% 92%,rgba(240,80,127,.12),transparent 70%)!important}
/* Tablets: the scene sits softly behind the centred heading */
@media(min-width:768px) and (max-width:1023px),(min-width:768px) and (max-aspect-ratio:13/10){
  html.tl-x-scenes body:not(.home) .tl-hero.tl-x-has-stage .tl-x-stage.is-live{opacity:.4}
}

/* ---------- Eclipse ring in every closing call to action ---------- */
.tl-x-eclipse{position:absolute;left:50%;top:-38%;width:min(520px,90%);aspect-ratio:1;transform:translateX(-50%);pointer-events:none;z-index:0}
.elementor .e-con.tl-cta > *:not(.tl-x-eclipse){position:relative;z-index:1}
.tl-x-eclipse i{position:absolute;inset:0;border-radius:50%;display:block}
.tl-x-eclipse__corona{background:radial-gradient(closest-side,transparent 64%,rgba(61,181,255,.22) 72%,rgba(240,80,127,.12) 80%,transparent 100%);filter:blur(10px);opacity:0;transform:scale(.8);transition:opacity 1.6s ease,transform 1.8s cubic-bezier(.2,.7,.2,1)}
.tl-x-eclipse__ring{inset:14%;background:conic-gradient(from var(--tlx-a,0deg),rgba(159,220,255,.0) 0deg,rgba(159,220,255,.95) 40deg,rgba(61,181,255,.4) 110deg,rgba(240,80,127,.55) 200deg,rgba(159,220,255,.0) 290deg);-webkit-mask:radial-gradient(closest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(closest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));opacity:0;transition:opacity 1.2s ease .3s;animation:tlx-spin 9s linear infinite}
.tl-x-eclipse__flare{inset:auto;left:50%;top:14%;width:14px;height:14px;margin-left:-7px;margin-top:-7px;background:radial-gradient(closest-side,#fff,rgba(159,220,255,.7) 40%,transparent);box-shadow:0 0 40px 12px rgba(61,181,255,.45);opacity:0;transition:opacity .8s ease 1s}
.tl-x-ignite .tl-x-eclipse__corona{opacity:1;transform:scale(1)}
.tl-x-ignite .tl-x-eclipse__ring{opacity:.85}
.tl-x-ignite .tl-x-eclipse__flare{opacity:1}
@media(max-width:767px){.tl-x-eclipse{top:-30%;width:min(380px,110%)}}

/* ---------- AI automation flow ---------- */
.tl-x-flow{margin:8px 0 34px;padding:0;position:relative}
.tl-x-flow__cap{text-align:center;margin:0 0 22px;font:600 12px/1.2 'Space Grotesk',sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#8DA0C2}
.tl-x-flow__steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;position:relative;counter-reset:none}
.tl-x-flow__steps::before{content:"";position:absolute;left:12%;right:12%;top:36px;height:1px;background:linear-gradient(90deg,rgba(61,181,255,.15),rgba(61,181,255,.5),rgba(240,80,127,.35));transform-origin:0 50%;transform:scaleX(0);transition:transform 1.6s cubic-bezier(.2,.7,.2,1)}
.tl-x-flow.is-on .tl-x-flow__steps::before{transform:scaleX(1)}
.tl-x-flow__steps::after{content:"";position:absolute;top:33px;left:12%;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 12px 3px rgba(61,181,255,.9);opacity:0}
.tl-x-flow.is-on .tl-x-flow__steps::after{animation:tlx-flow-dot 3.2s cubic-bezier(.45,0,.2,1) 1.6s infinite}
@keyframes tlx-flow-dot{0%{left:12%;opacity:0}8%{opacity:1}88%{opacity:1}100%{left:88%;opacity:0}}
.tl-x-flow__step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:0 6px;opacity:.25;transform:translateY(14px);transition:opacity .7s ease calc(var(--i) * .35s),transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .35s)}
.tl-x-flow.is-on .tl-x-flow__step{opacity:1;transform:none}
.tl-x-flow__ico{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 50% 30%,rgba(61,181,255,.18),transparent 70%),rgba(8,16,36,.85);border:1px solid rgba(140,190,255,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 40px -20px rgba(61,181,255,.6);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);margin-bottom:6px}
.tl-x-flow__ico svg{width:30px;height:30px;fill:none;stroke:#9FDCFF;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tl-x-flow__ico svg .f{fill:#9FDCFF;stroke:none}
.tl-x-flow__step.is-core .tl-x-flow__ico{width:84px;height:84px;margin-top:-6px;border-color:rgba(61,181,255,.6);box-shadow:0 0 0 8px rgba(61,181,255,.07),0 0 46px -4px rgba(61,181,255,.7)}
.tl-x-flow.is-on .tl-x-flow__step.is-core .tl-x-flow__ico{animation:tlx-core-pulse 2.6s ease-in-out 1s infinite}
@keyframes tlx-core-pulse{50%{box-shadow:0 0 0 14px rgba(61,181,255,.04),0 0 64px 0 rgba(61,181,255,.85)}}
.tl-x-flow__step b{font:600 16px/1.3 'Space Grotesk',sans-serif;color:#F2F7FF}
.tl-x-flow__step > span:not(.tl-x-flow__ico):not(.tl-x-flow__end){font-size:13.5px;line-height:1.5;color:#8DA0C2;max-width:24ch}
.tl-x-flow__split{gap:14px}
.tl-x-flow__end{display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;border-radius:99px;border:1px solid rgba(140,190,255,.22);background:rgba(8,16,36,.7);text-align:left}
.tl-x-flow__end .tl-x-flow__ico{width:40px;height:40px;margin:0;box-shadow:none}
.tl-x-flow__end .tl-x-flow__ico svg{width:20px;height:20px}
.tl-x-flow__end:last-child{border-color:rgba(240,80,127,.4)}
.tl-x-flow__end:last-child svg{stroke:#F58BAB}
.tl-x-flow__end b{font-size:14.5px;white-space:nowrap}
@media(max-width:900px){
  .tl-x-flow__steps{grid-template-columns:1fr;gap:18px;max-width:420px;margin:0 auto}
  .tl-x-flow__steps::before{left:36px;right:auto;top:30px;bottom:30px;width:1px;height:auto;transform-origin:50% 0;transform:scaleY(0);background:linear-gradient(180deg,rgba(61,181,255,.2),rgba(61,181,255,.55),rgba(240,80,127,.35))}
  .tl-x-flow.is-on .tl-x-flow__steps::before{transform:scaleY(1)}
  .tl-x-flow__steps::after{display:none}
  .tl-x-flow__step{flex-direction:row;flex-wrap:wrap;align-items:center;text-align:left;column-gap:16px;row-gap:2px;padding:0}
  .tl-x-flow__step .tl-x-flow__ico{margin:0;flex:none}
  .tl-x-flow__step b{flex:1 1 60%}
  .tl-x-flow__step > span:not(.tl-x-flow__ico):not(.tl-x-flow__end){flex-basis:100%;padding-left:88px;max-width:none;margin-top:-6px}
  .tl-x-flow__step.is-core .tl-x-flow__ico{width:72px;height:72px;margin:0}
  .tl-x-flow__split{flex-direction:column;align-items:flex-start;padding-left:88px;gap:10px}
}
@media(prefers-reduced-motion:reduce){
  .tl-x-flow__step{opacity:1;transform:none;transition:none}
  .tl-x-flow__steps::before{transform:none;transition:none}
  .tl-x-flow.is-on .tl-x-flow__steps::after,.tl-x-flow.is-on .tl-x-flow__step.is-core .tl-x-flow__ico,.tl-x-eclipse__ring{animation:none}
  .tl-x-eclipse i{transition:none}
}
/* ===== end TL EXPERIENCE v4 ===== */
