/* CoreVork home: 3D product map (hero) and scroll effects. No libraries. */
.cv3{position:relative;width:100%;max-width:600px;margin-left:auto;height:clamp(340px,34vw,470px);touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:grab}
.cv3.drag{cursor:grabbing}
.cv3-cv{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.cv3-tiles{position:absolute;inset:0;margin:0;padding:0}
.cv3-t{position:absolute;left:0;top:0;width:54px;height:54px;margin:0;border-radius:17px;border:1px solid var(--line);background:var(--card);color:var(--acc);display:flex;align-items:center;justify-content:center;text-decoration:none;box-shadow:0 12px 28px -12px rgba(19,40,59,.45),0 2px 4px rgba(19,40,59,.08);will-change:transform;transition:box-shadow .2s,border-color .2s;outline-offset:3px}
.cv3-t svg{width:26px;height:26px;display:block}
.cv3-t.hot,.cv3-t:focus-visible{border-color:var(--acc);box-shadow:0 0 0 4px rgba(29,78,216,.16),0 18px 36px -14px rgba(29,78,216,.55)}
.cv3-t .cv3-n{position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);white-space:nowrap;font:700 11px/1 Inter,system-ui,sans-serif;letter-spacing:.01em;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:5px 9px;pointer-events:none;opacity:0;transition:opacity .18s}
.cv3-t.lbl .cv3-n,.cv3-t.hot .cv3-n,.cv3-t:focus-visible .cv3-n{opacity:1}
.cv3-core{position:absolute;left:50%;top:50%;width:112px;height:112px;margin:-56px 0 0 -56px;z-index:120;pointer-events:none;perspective:600px}
.cv3-slab{position:absolute;inset:0;border-radius:30px;background:linear-gradient(155deg,#1b3a54 0%,#13283B 55%,#0d1c2b 100%);box-shadow:0 30px 60px -20px rgba(19,40,59,.7),0 0 0 1px rgba(255,255,255,.08) inset,0 -3px 0 0 #FFC400 inset;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;transform-style:preserve-3d;will-change:transform}
.cv3-slab img{width:60px;height:auto;display:block}
.cv3-slab b{font:700 10px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.3em;color:#FFC400;padding-left:.3em}
.cv3-pulse{position:absolute;inset:-14px;border-radius:40px;border:1.5px solid rgba(255,196,0,.55);animation:cv3-pulse 3.2s ease-out infinite;pointer-events:none}
.cv3-pulse.b{animation-delay:1.6s}
@keyframes cv3-pulse{0%{transform:scale(.86);opacity:.9}100%{transform:scale(1.55);opacity:0}}
.cv3-hint{position:absolute;left:0;right:0;bottom:-2px;text-align:center;margin:0;font:600 11px/1.2 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);pointer-events:none}

/* hero entrance and headline shine */
@keyframes cv3-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.cvh-hero .cvh-badge,.cvh-hero .cvh-h1,.cvh-hero p.sub,.cvh-hero .cvh-cta,.cvh-hero .cvh-micro{animation:cv3-up .8s cubic-bezier(.16,1,.3,1) both}
.cvh-hero .cvh-h1{animation-delay:.08s}.cvh-hero p.sub{animation-delay:.18s}.cvh-hero .cvh-cta{animation-delay:.28s}.cvh-hero .cvh-micro{animation-delay:.38s}
.cv3-scene-in{animation:cv3-up 1.1s cubic-bezier(.16,1,.3,1) .2s both}
.cvh-h1 em{background-size:220% 100%;animation:cv3-shine 7s ease-in-out infinite alternate}
@keyframes cv3-shine{from{background-position:0% 50%}to{background-position:100% 50%}}

/* scroll progress */
.cv3-prog{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#FFC400,#3b82f6);z-index:1000;pointer-events:none}

/* inside-the-products section */
.cv3-inside .cvh-stage{margin:34px auto 0}

/* product cards: 3D entrance and tilt */
.cv3-js .cv3-fxc{transition:opacity .75s cubic-bezier(.16,1,.3,1),transform .75s cubic-bezier(.16,1,.3,1),border-color .25s,box-shadow .25s}
.cv3-js .cv3-fxc:not(.cv3-in){opacity:0;transform:perspective(900px) rotateX(16deg) translateY(34px) scale(.97)}
.cv3-fxc{position:relative;transform-style:preserve-3d;overflow:hidden}
.cv3-fxc::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(240px circle at var(--mx,50%) var(--my,0%),rgba(255,196,0,.20),transparent 62%);opacity:0;transition:opacity .25s;pointer-events:none}
@media(hover:hover) and (pointer:fine){
 .cv3-fxc.cv3-in:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-5px);transition:transform .12s ease-out,border-color .25s,box-shadow .25s,opacity .3s;box-shadow:0 26px 50px -24px rgba(29,78,216,.45)}
 .cv3-fxc:hover::after{opacity:1}
}

/* phones: scene sits right after the headline */
@media(max-width:940px){
 .cv3{margin:0 auto;height:min(98vw,400px);max-width:520px}
 .cvh-hero .cvh-w{row-gap:18px}
 .cvh-hero .cvh-w>div:first-child{display:contents}
 .cvh-hero .cvh-badge{order:1;justify-self:start}
 .cvh-hero .cvh-h1{order:2}
 .cv3{order:3}
 .cvh-hero p.sub{order:4}
 .cvh-hero .cvh-cta{order:5}
 .cvh-hero .cvh-micro{order:6}
}
@media(max-width:520px){
 .cv3-t{width:46px;height:46px;border-radius:14px}.cv3-t svg{width:21px;height:21px}
 .cv3-core{width:92px;height:92px;margin:-46px 0 0 -46px}.cv3-slab{border-radius:24px;gap:7px}.cv3-slab img{width:48px}
}
@media(prefers-reduced-motion:reduce){
 .cv3-pulse{animation:none;opacity:0}.cv3-scene-in,.cvh-hero .cvh-badge,.cvh-hero .cvh-h1,.cvh-hero p.sub,.cvh-hero .cvh-cta,.cvh-hero .cvh-micro{animation:none}.cvh-h1 em{animation:none}
 .cv3-js .cv3-fxc:not(.cv3-in){opacity:1;transform:none}
}

/* ---------- scroll story: one near miss across the products ---------- */
.cv3-track{position:relative;height:150px;perspective:620px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--bg2),transparent 90%);overflow:hidden}
.cv3-plane{position:absolute;left:0;right:0;top:30px;height:96px;transform:rotateX(42deg);transform-origin:50% 100%;transform-style:preserve-3d}
.cv3-rail{position:absolute;left:8%;right:8%;top:50%;height:4px;margin-top:-2px;border-radius:4px;background:var(--line)}
.cv3-rail i{display:block;height:100%;width:calc(var(--s,0)*33.333%);border-radius:inherit;background:linear-gradient(90deg,#3b82f6,#FFC400);box-shadow:0 0 14px rgba(255,196,0,.7)}
.cv3-node{position:absolute;top:50%;left:calc(8% + var(--i)*28%);width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:16px;border:1px solid var(--line);background:var(--card);color:var(--mut);display:flex;align-items:center;justify-content:center;transform:translateZ(0);transition:transform .45s cubic-bezier(.16,1,.3,1),background .35s,color .35s,border-color .35s,box-shadow .35s;box-shadow:0 10px 18px -10px rgba(19,40,59,.35)}
.cv3-node svg{width:26px;height:26px;display:block}
.cv3-node.done{background:var(--accbg);color:var(--acc);border-color:rgba(59,111,232,.4)}
.cv3-node.cur{transform:translateZ(44px);background:#13283B;color:#fff;border-color:#FFC400;box-shadow:0 0 0 3px rgba(255,196,0,.28),0 26px 34px -12px rgba(255,196,0,.55)}
.cv3-orb{position:absolute;top:50%;left:calc(8% + var(--s,0)*28%);width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3b8,#FFC400 55%,#d99a00);box-shadow:0 0 0 6px rgba(255,196,0,.22),0 0 26px 8px rgba(255,196,0,.55);transform:translateZ(58px)}
.cv3-cap{position:absolute;left:20px;bottom:10px;font:700 10px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
.cv3-cap b{color:var(--ink)}

.cv3-pin::after{content:"";display:none}
.cv3-pin.on{position:relative}
.cv3-pin.on::after{display:block;height:var(--range,150vh)}
.cv3-pin.on .cvh-flow{position:sticky;top:var(--stick,104px);margin-top:44px}
.cv3-pin.on .cvh-rec{position:static}
.cv3-pin.on .cvh-fs{cursor:pointer}
@media(max-width:940px){
 .cv3-pin.cv3-story .cvh-flow{gap:12px;margin-top:28px}
 .cv3-pin.cv3-story .cvh-fsteps{gap:6px}
 .cv3-pin.cv3-story .cvh-fs{padding:10px 14px;gap:12px}
 .cv3-pin.cv3-story .cvh-fs p{display:none}
 .cv3-pin.cv3-story .cvh-fs[aria-selected=true] p{display:block;font-size:.8rem;margin-top:2px}
 .cv3-pin.cv3-story .cvh-fs .n{width:28px;height:28px}
 .cv3-pin.cv3-story .cv3-track{height:112px}.cv3-pin.cv3-story .cv3-plane{top:20px;height:70px}
 .cv3-pin.cv3-story .cv3-node{width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:12px}.cv3-pin.cv3-story .cv3-node svg{width:20px;height:20px}
 .cv3-pin.cv3-story .cvh-ev{padding:9px 14px}.cv3-pin.cv3-story .cvh-ev p{display:none}.cv3-pin.cv3-story .cvh-ev.cur p{display:block}
 .cv3-pin.cv3-story .cvh-rh{padding:10px 14px}.cv3-pin.cv3-story .cvh-recfoot{display:none}
}

/* ---------- closing section ---------- */
.cvh-cta2.cvh-dk{isolation:isolate}
.cv3-end{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.cvh-cta2.cvh-dk .cvh-w{z-index:2}
.cv3-spot{position:absolute;inset:0;background:radial-gradient(520px circle at var(--sx,50%) var(--sy,40%),rgba(255,196,0,.14),transparent 62%)}
.cv3-floor{position:absolute;left:-20%;right:-20%;bottom:-8%;height:62%;perspective:420px;-webkit-mask-image:linear-gradient(to top,#000 10%,transparent 92%);mask-image:linear-gradient(to top,#000 10%,transparent 92%)}
.cv3-floor::before{content:"";position:absolute;inset:0;transform:rotateX(64deg);transform-origin:50% 100%;background-image:linear-gradient(rgba(141,176,255,.35) 1px,transparent 1px),linear-gradient(90deg,rgba(141,176,255,.35) 1px,transparent 1px);background-size:64px 64px;animation:cv3-floor 5s linear infinite}
@keyframes cv3-floor{from{background-position:0 0}to{background-position:0 64px}}
.cv3-ft{position:absolute;width:52px;height:52px;margin:-26px 0 0 -26px;transform:translate3d(calc(var(--px,0)*var(--d,20)*1px),calc(var(--py,0)*var(--d,20)*1px),0)}
.cv3-ft i{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:15px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);color:#8db0ff;backdrop-filter:blur(2px);animation:cv3-bob 6s ease-in-out infinite;animation-delay:var(--t,0s)}
.cv3-ft svg{width:24px;height:24px}
.cv3-ft.y i{color:#FFC400;border-color:rgba(255,196,0,.35)}
@keyframes cv3-bob{0%,100%{transform:translateY(-7px) rotate(-3deg)}50%{transform:translateY(8px) rotate(3deg)}}
.cvh-cta2.cvh-dk .cvh-btn.g{animation:cv3-glowbtn 2.8s ease-in-out infinite}
@keyframes cv3-glowbtn{0%,100%{box-shadow:0 14px 34px -14px rgba(255,196,0,.6)}50%{box-shadow:0 14px 44px -8px rgba(255,196,0,.95),0 0 0 6px rgba(255,196,0,.14)}}
@media(max-width:700px){.cv3-ft{width:42px;height:42px;margin:-21px 0 0 -21px}.cv3-ft i{border-radius:12px}.cv3-ft svg{width:20px;height:20px}.cv3-ft.m{display:none}.cv3-ft:nth-child(n){display:none}.cv3-ft:nth-child(1){display:block;left:10%!important;top:13%!important}.cv3-ft:nth-child(4){display:block;left:88%!important;top:11%!important}.cv3-ft:nth-child(2){display:block;left:13%!important;top:91%!important}.cv3-ft:nth-child(5){display:block;left:87%!important;top:89%!important}.cv3-floor::before{background-size:44px 44px}}
@media(prefers-reduced-motion:reduce){.cv3-floor::before,.cv3-ft i,.cvh-cta2.cvh-dk .cvh-btn.g{animation:none}}
