/* ---------- Day and night layers ---------- */
/* Day / night scene layers */
.day-el{opacity:1;visibility:visible;transition:opacity 1.2s ease,visibility 0s linear 0s}
.night-el{opacity:0;visibility:hidden;transition:opacity 1.2s ease,visibility 0s linear 1.2s}
html.dark .day-el{opacity:0;visibility:hidden;transition:opacity 1.2s ease,visibility 0s linear 1.2s}
html.dark .night-el{opacity:1;visibility:visible;transition:opacity 1.2s ease,visibility 0s linear 0s}
.sun-g,.moon-g{transition:transform 1.8s var(--ease),opacity 1.2s ease}
.moon-g{transform:translateY(420px);opacity:0}
html.dark .sun-g{transform:translateY(420px);opacity:0}
html.dark .moon-g{transform:none;opacity:1}
.twinkle{opacity:.75;animation:twinkle 10s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:.55}50%{opacity:.9}}
.shoot{opacity:0;stroke-dasharray:240;stroke-dashoffset:240;animation:shoot 24s ease-out infinite 6s}
.shoot-b{animation-duration:37s;animation-delay:19s}
@keyframes shoot{0%,90%{opacity:0;stroke-dashoffset:240;transform:translate(0,0)}92%{opacity:1}100%{opacity:0;stroke-dashoffset:-240;transform:translate(-260px,90px)}}
.win{animation:win 7s ease-in-out infinite}
@keyframes win{0%,100%{opacity:1}46%{opacity:.82}50%{opacity:.55}54%{opacity:.9}}
.firefly{animation:firefly 9s ease-in-out infinite}
@keyframes firefly{0%{transform:translate(0,0);opacity:0}20%{opacity:1}45%{opacity:.35}55%{transform:translate(var(--fx),var(--fy));opacity:1}80%{opacity:.6}100%{transform:translate(0,0);opacity:0}}
.pixel{opacity:0;transform-box:fill-box;transform-origin:center;animation:pixel 5.7s ease-out infinite}
@keyframes pixel{0%{opacity:0;transform:translate(0,10px)}15%{opacity:1}100%{opacity:0;transform:translate(var(--px),-300px) rotate(90deg)}}
.screen-glow{animation:pulse 3.2s ease-in-out infinite}
.glints{stroke:#fff}
html.dark .glints{stroke:#BFD3FF}
.glint{animation-name:glint2!important}
@keyframes glint2{0%{opacity:0;transform:translateX(0)}50%{opacity:.85}100%{opacity:0;transform:translateX(-70px)}}

/* ---------- Illustrated hero ---------- */
/* Illustrated hero */
.hx{position:relative;overflow:hidden;background:var(--sky)}
.hero{height:clamp(700px,100vh,980px);height:clamp(700px,100svh,980px)}
.scene{position:absolute;inset:0}
.scene-svg{position:absolute;inset:0;width:100%;height:100%}
.bg-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%;display:block;pointer-events:none}
.grain{position:absolute;inset:0;pointer-events:none;opacity:.14;mix-blend-mode:soft-light;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.hero-inner{position:relative;z-index:3;padding-top:clamp(140px,22vh,210px)}
.copy{max-width:560px}
.hero .copy{max-width:660px}
.hero-eyebrow{font-size:12px;font-weight:600;letter-spacing:.16em;color:rgba(255,255,255,.86);margin-bottom:18px}
.display-hero{color:#fff;font-size:clamp(44px,5.4vw,78px);line-height:1.04;letter-spacing:-.035em;text-shadow:0 2px 34px rgba(20,50,120,.22)}
.display-hero em,.display em{font-style:italic;font-weight:300;letter-spacing:-.025em}
.display-hero em{color:#FFF3CF}
.hero-sub{color:rgba(255,255,255,.93);font-size:clamp(16px,1.25vw,18.5px);max-width:470px;margin-top:24px;text-shadow:0 1px 18px rgba(20,50,120,.2)}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:26px;margin-top:36px}
.crumb{display:inline-flex;align-items:center;gap:8px;color:rgba(255,255,255,.9);font-size:14px;font-weight:500;margin-bottom:22px}
.crumb svg{width:16px;height:16px;transition:transform .3s var(--ease)}
.crumb:hover svg{transform:translateX(-3px)}

/* ---------- Floating step cards ---------- */
/* Floating step cards */
.steps{position:absolute;inset:0;z-index:2;pointer-events:none}
.step-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.step-lines path{fill:none;stroke:rgba(255,255,255,.85);stroke-width:2;stroke-linecap:round}
.step{position:absolute;width:clamp(186px,14.6vw,236px)}
.step-card{display:flex;align-items:flex-start;gap:12px;padding:14px 16px 16px;border-radius:14px;background:var(--step-glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--ink);box-shadow:0 24px 44px -24px rgba(20,45,110,.6),0 2px 6px rgba(20,45,110,.08);animation:float 6s ease-in-out infinite;animation-delay:calc(var(--i) * -1.4s)}
.step-card b{display:block;font-size:14px;font-weight:600;line-height:1.25;margin:2px 0 9px;letter-spacing:-.01em}
.step-card small{display:block;font-size:12px;white-space:nowrap;line-height:1.3;color:var(--ink-soft);margin-top:-4px}
.sc-dots{display:flex;align-items:center;gap:4px;margin-top:10px}
.sc-dots i{width:9px;height:9px;border-radius:2.6px;background:var(--skel);transition:background .4s}
.sc-dots i.on{background:var(--sea)}
.sc-dots i.now{background:var(--citrus);animation:dotPulse 1.8s ease-in-out infinite;animation-delay:calc(1.6s + var(--i) * .45s)}
.sc-dots em{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;color:var(--ink-soft);letter-spacing:.04em}
@keyframes dotPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,166,43,.5)}50%{transform:scale(1.18);box-shadow:0 0 0 4px rgba(255,166,43,0)}}
.sc-text{flex:1}
/* 3D tilted cards */
.steps{perspective:1500px;perspective-origin:70% 40%}
.steps-plane{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:68% 46%;transform:rotateX(var(--rx,10deg)) rotateY(var(--ry,-20deg)) rotateZ(-1.5deg)}
.step-card{position:relative;overflow:hidden;box-shadow:0 1px 0 var(--step-edge),0 2px 0 var(--step-edge),0 3px 0 var(--step-edge),0 4px 0 var(--step-edge),0 5px 0 var(--step-edge),0 6px 0 var(--step-edge),0 7px 0 var(--step-edge-d),0 34px 50px -24px rgba(10,30,90,.65)!important}
.step-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.6) 50%,transparent 65%);background-size:260% 100%;background-position:120% 0;animation:sheen 7s ease-in-out infinite;animation-delay:calc(2.4s + var(--i) * .35s)}
html.dark .step-card::after{background-image:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.14) 50%,transparent 65%)}
@keyframes sheen{0%,70%{background-position:120% 0}100%{background-position:-60% 0}}
:root{--step-edge:#CBD7EC;--step-edge-d:#B3C2DD}
html.dark{--step-edge:#0A1434;--step-edge-d:#060C24}
/* Icon tiles */
.sc-icon{position:relative;flex:0 0 36px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(160deg,var(--t1),var(--t2));box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -3px 0 rgba(0,0,0,.14),0 8px 16px -8px var(--t2)}
.sc-icon::after{content:"";position:absolute;inset:2px 2px 52% 2px;border-radius:9px 9px 6px 6px;background:linear-gradient(rgba(255,255,255,.38),rgba(255,255,255,0));pointer-events:none}
.sc-icon svg{width:22px;height:22px;position:relative;z-index:1;overflow:visible}
.ic-idea,.ic-flag{--t1:#FFCF6E;--t2:#FF9A1F}
.ic-plan,.ic-progress{--t1:#A8D8FF;--t2:#4E9BF0}
.ic-build{--t1:#5F8FE3;--t2:#2E5AA7}
.ic-grow,.ic-check{--t1:#6BD49A;--t2:#2F9A5E}
.ic-idea{animation:bulb 2.8s ease-in-out infinite}
@keyframes bulb{50%{box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -3px 0 rgba(0,0,0,.14),0 0 18px 2px rgba(255,190,80,.75)}}
.ic-rays{animation:pulse 2.8s ease-in-out infinite}
.ic-tk{stroke-dasharray:10;stroke-dashoffset:10;animation:tk 4s ease infinite}.ic-tk.t2{animation-delay:.6s}
@keyframes tk{0%,10%{stroke-dashoffset:10}30%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:10}}
.ic-px{transform-box:fill-box;transform-origin:center;animation:pxdrop 4.8s var(--ease) infinite}
.ic-px.p2{animation-delay:.25s}.ic-px.p3{animation-delay:.5s}.ic-px.p4{animation-delay:.75s}
@keyframes pxdrop{0%{transform:translateY(-12px) scale(.6);opacity:0}14%,80%{transform:none;opacity:1}94%,100%{transform:scale(.6);opacity:0}}
.ic-bar{transform-box:fill-box;transform-origin:50% 100%;animation:barup 4s var(--ease) infinite}.ic-bar.b2{animation-delay:.15s}.ic-bar.b3{animation-delay:.3s}
@keyframes barup{0%{transform:scaleY(.2)}25%,85%{transform:none}100%{transform:scaleY(.2)}}
.ic-arrow{stroke-dasharray:30;stroke-dashoffset:30;animation:arw 4s ease infinite}
@keyframes arw{0%,22%{stroke-dashoffset:30}46%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:30}}
.ic-spin{transform-box:view-box;transform-origin:12px 12px;animation:spin 1.4s linear infinite}
.ic-ck{stroke-dasharray:18;stroke-dashoffset:18;animation:ck 3.6s ease infinite}
@keyframes ck{0%,10%{stroke-dashoffset:18}32%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:18}}
.ic-flag{transform-box:fill-box;transform-origin:0 50%;animation:flagw 1.4s ease-in-out infinite alternate}
@keyframes flagw{to{transform:scaleX(.72) skewY(6deg)}}
.hero .s1{left:57%;top:61%}.hero .s2{left:65.5%;top:48%}.hero .s3{left:73.5%;top:35%}.hero .s4{left:81%;top:22.5%}

/* ---------- Hero entrance ---------- */
/* Hero entrance (the one orchestrated moment) */
.js .hx .copy>*{opacity:0;transform:translateY(18px)}
.hx.play .copy>*{opacity:1;transform:none;transition:opacity 1s var(--ease),transform 1s var(--ease)}
.hx.play .copy>:nth-child(2){transition-delay:.1s}.hx.play .copy>:nth-child(3){transition-delay:.2s}.hx.play .copy>:nth-child(4){transition-delay:.3s}
.js .hx .scene{opacity:0;transform:scale(1.035)}
.hx.play .scene{opacity:1;transform:none;transition:opacity 1.3s ease,transform 2.6s var(--ease)}
.js .hx .step{opacity:0;transform:translateY(16px) scale(.95)}
.hx.play .step{opacity:1;transform:none;transition:opacity .6s var(--ease) calc(.9s + var(--i)*.45s),transform .7s var(--ease) calc(.9s + var(--i)*.45s)}

/* ---------- Ambient scene motion ---------- */
/* Ambient scene motion */
.drift{animation:drift var(--dur,60s) ease-in-out infinite alternate}

.rays{transform-box:fill-box;transform-origin:center;animation:spin 90s linear infinite}
.halo{animation:pulse 7s ease-in-out infinite}
.glint{opacity:0;animation:glint 5s ease-in-out infinite}
.bob{animation:bob 3.6s ease-in-out infinite}
.sway{transform-box:view-box;transform-origin:50% 100%;animation:sway 6s ease-in-out infinite alternate}
.sway-b{animation-duration:7.5s;animation-delay:-3s}
.birds{animation:fly 42s linear infinite}
.birds{animation:fly 42s linear infinite}
@keyframes glint{0%,100%{opacity:0}50%{opacity:.9}}
@keyframes fly{from{transform:translate(-260px,40px)}to{transform:translate(900px,-70px)}}

/* ---------- Day clouds: drift, bob, puff and a sliding entrance ---------- */
.cl{animation:clDrift var(--dur,50s) ease-in-out infinite alternate;animation-delay:var(--d,0s)}
@keyframes clDrift{from{transform:translateX(var(--a,-60px))}to{transform:translateX(var(--b,60px))}}
.cl-bob{animation:clBob var(--bob,9s) ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes clBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
.cl-puff{transform-box:fill-box;transform-origin:50% 85%;animation:clPuff 14s ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes clPuff{0%,100%{transform:scale(1,1)}50%{transform:scale(1.04,.97)}}
.js .hx .cl-in{opacity:0;transform:translateX(var(--from,0))}
.hx.play .cl-in{opacity:1;transform:none;transition:opacity 1.6s ease calc(.2s + var(--k,0) * .15s),transform 3.2s cubic-bezier(.16,.84,.24,1) calc(.2s + var(--k,0) * .15s)}
.proc-clouds .cl{animation-duration:var(--dur,60s)}

/* ---------- Inner page hero ---------- */
.page-hero{height:clamp(700px,100vh,980px);height:clamp(700px,100svh,980px)}
.page-hero .display-hero{font-size:clamp(40px,4.6vw,66px)}
.page-hero .copy{max-width:560px}
.page-hero .hero-inner{padding-top:clamp(140px,22vh,210px)}
.svc-hero{height:clamp(700px,100vh,980px);height:clamp(700px,100svh,980px)}
.svc-hero .hero-inner{padding-top:clamp(140px,22vh,210px)}
.page-hero .s1,.svc-hero .s1{left:57%;top:61%}.page-hero .s2,.svc-hero .s2{left:65.5%;top:48%}.page-hero .s3,.svc-hero .s3{left:73.5%;top:35%}.page-hero .s4{left:81%;top:22.5%}

/* ---------- Scene: responsive ---------- */
@media (max-width:1100px){.hero .s1{left:56%}.hero .s2{left:64%}.hero .s3{left:72%}.hero .s4{left:79%}}
@media (max-width:900px){.steps{display:none}}
@media (max-width:700px){
  .hero{height:auto;min-height:840px}
  .svc-hero,.page-hero{height:auto;min-height:760px}
  .hx .scene{top:36%}
  .hi-clouds{display:none}
  .hero-inner,.page-hero .hero-inner,.svc-hero .hero-inner{padding-top:124px}
}
@media (prefers-reduced-motion:reduce){.js .hx .copy>*,.js .hx .scene,.js .hx .step,.js .hx .cl-in{opacity:1;transform:none}}
