/* WAHAJ GSAP motion layer */
:root{--motion-progress:0;--hero-digital:0;--pointer-x:50%;--pointer-y:42%;--spot-size:150px;--theme-wipe-x:50%;--theme-wipe-y:50%}
html.motion-ready{scroll-behavior:auto}
body.motion-lock{overflow:hidden}
.motion-preload{position:fixed;inset:0;z-index:9999;background:#020504;display:grid;place-items:center;pointer-events:none}
.motion-preload__mark{display:grid;place-items:center;gap:14px;color:#fff;font-weight:900;letter-spacing:.18em}
.motion-preload__logo{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 0 28px rgba(186,255,0,.48))}
.motion-preload__line{width:180px;height:2px;background:rgba(255,255,255,.1);overflow:hidden;border-radius:99px}
.motion-preload__line::after{content:"";display:block;width:100%;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:right;animation:motionLoad 1.1s cubic-bezier(.16,1,.3,1) forwards}
@keyframes motionLoad{to{transform:scaleX(1)}}
.theme-wipe{position:fixed;z-index:9998;left:var(--theme-wipe-x);top:var(--theme-wipe-y);width:20px;height:20px;border-radius:50%;pointer-events:none;background:var(--surface);transform:translate(-50%,-50%) scale(0);box-shadow:0 0 0 1px var(--line)}
.gsap-reveal{will-change:transform,opacity}
.motion-word{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
.motion-word>span{display:inline-block;will-change:transform}
.hero{--hero-scroll:0}
.hero-grid{will-change:transform}
.hero-copy,.hero-visual{will-change:transform,opacity}
.hero-copy h1{perspective:900px}
.hero-copy .motion-line{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.hero-copy .motion-line>span{display:block;transform-origin:100% 100%;will-change:transform}
.hero-visual{cursor:crosshair;touch-action:pan-y}
.hero-visual::after{content:"";position:absolute;inset:8% 5% 4%;z-index:7;pointer-events:none;background:radial-gradient(circle var(--spot-size) at var(--pointer-x) var(--pointer-y),rgba(186,255,0,.12),rgba(186,255,0,.025) 38%,transparent 72%);opacity:calc(.18 + var(--hero-digital)*.64);mix-blend-mode:screen}
.person-stage{transform-style:preserve-3d;will-change:transform}
.person-base{will-change:transform,filter,opacity}
.person-digital{opacity:calc((var(--effect-opacity) + var(--hero-digital)) * .46)!important;mask-image:radial-gradient(circle var(--spot-size) at var(--pointer-x) var(--pointer-y),#000 0 54%,rgba(0,0,0,.85) 68%,transparent 100%)!important;-webkit-mask-image:radial-gradient(circle var(--spot-size) at var(--pointer-x) var(--pointer-y),#000 0 54%,rgba(0,0,0,.85) 68%,transparent 100%)!important}
.person-wire{opacity:clamp(0,calc(var(--effect-opacity) + var(--hero-digital)*.72),1)!important;mask-image:radial-gradient(circle calc(var(--spot-size) * 1.18) at var(--pointer-x) var(--pointer-y),#000 0 58%,rgba(0,0,0,.8) 70%,transparent 100%)!important;-webkit-mask-image:radial-gradient(circle calc(var(--spot-size) * 1.18) at var(--pointer-x) var(--pointer-y),#000 0 58%,rgba(0,0,0,.8) 70%,transparent 100%)!important}
.scanner{left:var(--pointer-x)!important;top:var(--pointer-y)!important;opacity:clamp(0,calc(var(--effect-opacity) + var(--hero-digital)*.55),1)!important;will-change:transform,opacity}
.particle-canvas{position:absolute;inset:0;z-index:6;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen;opacity:calc(.28 + var(--hero-digital)*.72);will-change:opacity}
.face-hotspot{position:absolute;z-index:10;left:19%;top:8%;width:55%;height:70%;border-radius:48% 48% 43% 43%;pointer-events:none}
.face-data-trails{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden;opacity:calc(.22 + var(--hero-digital)*.7)}
.face-data-trails i{position:absolute;left:44%;top:43%;height:1px;width:clamp(90px,15vw,230px);background:linear-gradient(90deg,var(--accent),transparent);transform-origin:left center;filter:drop-shadow(0 0 4px var(--accent));opacity:.28}
.face-data-trails i:nth-child(1){rotate:-34deg}.face-data-trails i:nth-child(2){rotate:-18deg;width:190px}.face-data-trails i:nth-child(3){rotate:-5deg;width:250px}.face-data-trails i:nth-child(4){rotate:12deg;width:220px}.face-data-trails i:nth-child(5){rotate:28deg;width:175px}.face-data-trails i:nth-child(6){rotate:44deg;width:140px}
.hero-scroll-hint{position:absolute;left:12px;bottom:38px;z-index:12;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;letter-spacing:.18em;writing-mode:vertical-rl}
.hero-scroll-hint::after{content:"";height:64px;width:1px;background:linear-gradient(var(--accent),transparent)}
.magnetic{will-change:transform}
.tilt-card{transform-style:preserve-3d;will-change:transform}
.tilt-card>*{transform:translateZ(1px)}
.cursor-glow{position:fixed;z-index:9996;width:280px;height:280px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(186,255,0,.09),transparent 67%);translate:-50% -50%;opacity:0;mix-blend-mode:screen}
.motion-horizontal{display:flex!important;gap:22px!important;width:max-content!important;overflow:visible!important}
.motion-horizontal .project-card{flex:0 0 min(420px,76vw);min-height:520px}
.motion-horizontal .project-card img{height:330px}
.motion-section-active .section-badge{box-shadow:0 0 28px color-mix(in srgb,var(--accent) 28%,transparent)}
.counter-value{font-variant-numeric:tabular-nums}
.site-header.motion-scrolled{background:color-mix(in srgb,var(--glass-strong) 92%,transparent);box-shadow:0 18px 60px rgba(0,0,0,.34);border-color:var(--line-strong)}
.site-header{will-change:transform,background-color,box-shadow}
.service-mini,.service-card,.project-card,.why-card,.testimonial,.stat-item,.tool-chip,.info-card,.price-card,.blog-card,.contact-card,.metric-card,.panel{will-change:transform,opacity}
.faq-answer{height:0;overflow:hidden;display:block!important;opacity:0}
.faq-item.open .faq-answer{height:auto;opacity:1}
.faq-question span:last-child{will-change:transform}
.cta-panel{position:relative;overflow:hidden;isolation:isolate}
.cta-panel::after{content:"";position:absolute;z-index:-1;inset:-40%;background:conic-gradient(from 180deg,transparent,var(--accent),transparent 30%);opacity:.09;animation:ctaSpin 12s linear infinite}
@keyframes ctaSpin{to{transform:rotate(360deg)}}
html[data-theme="light"] .cursor-glow{mix-blend-mode:multiply;background:radial-gradient(circle,rgba(80,125,12,.09),transparent 68%)}
html[data-theme="light"] .hero-visual::after{mix-blend-mode:multiply}
html[data-theme="light"] .person-digital,html[data-theme="light"] .particle-canvas{mix-blend-mode:multiply}
.admin-motion-ready .metric-card,.admin-motion-ready .panel,.admin-motion-ready .collection-card{will-change:transform,opacity}
.builder-page.motion-builder-ready .builder-nav,.builder-page.motion-builder-ready .builder-inspector,.builder-page.motion-builder-ready .preview-frame-wrap{will-change:transform,opacity}
.motion-settings-card{border:1px solid #2b382f;background:#0e1511;border-radius:9px;padding:10px;margin-top:9px}
.motion-settings-card strong{display:block;font-size:11px;margin-bottom:7px;color:#dfe8e1}
.motion-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#1b2a10;color:var(--accent);font-size:10px;border:1px solid #3d5b16}
@media(max-width:1099px){.hero-scroll-hint{display:none}.motion-horizontal{width:100%!important}.motion-horizontal .project-card{flex:1 1 100%}}
@media(max-width:768px){:root{--spot-size:105px}.cursor-glow{display:none}.face-data-trails i{width:100px!important}.hero-visual::after{inset:2%}.motion-preload__logo{width:60px;height:60px}.particle-canvas{opacity:calc(.14 + var(--hero-digital)*.48)}}
@media(prefers-reduced-motion:reduce){.motion-preload,.cursor-glow,.hero-scroll-hint,.theme-wipe{display:none!important}.particle-canvas,.face-data-trails{display:none!important}.cta-panel::after{animation:none!important}}

/* Visual builder section targeting and motion controls */
.builder-preview-mode [data-builder-id]{position:relative;outline:1px dashed transparent;outline-offset:-7px;transition:outline-color .22s ease,box-shadow .22s ease}
.builder-preview-mode [data-builder-id]:hover{outline-color:rgba(186,255,0,.58);box-shadow:inset 0 0 0 1px rgba(186,255,0,.08)}
.builder-preview-mode [data-builder-id].selected,.builder-preview-mode [data-builder-selected="true"]{outline:2px solid var(--accent);box-shadow:inset 0 0 44px rgba(186,255,0,.055),0 0 0 4px rgba(186,255,0,.08)}
.builder-preview-mode [data-builder-id]::before{content:attr(data-builder-label);position:absolute;z-index:100;top:9px;right:10px;padding:5px 9px;border-radius:8px;background:var(--accent);color:#081000;font-size:10px;font-weight:900;opacity:0;transform:translateY(-5px);pointer-events:none;transition:.2s ease}
.builder-preview-mode [data-builder-id]:hover::before,.builder-preview-mode [data-builder-id].selected::before{opacity:1;transform:none}
.builder-hint{font-size:11px;color:var(--muted);line-height:1.8;margin:8px 0 0}
.motion-preview-button{border-color:rgba(186,255,0,.35)!important;background:linear-gradient(135deg,rgba(186,255,0,.12),rgba(186,255,0,.025))!important;color:var(--text)!important}
.motion-preview-button:hover{border-color:var(--accent)!important;box-shadow:0 0 24px rgba(186,255,0,.12)}
[data-motion-type]{--section-motion:1}

/* Admin motion polish */
.admin-sidebar,.admin-topbar,.metric-card,.panel,.builder-top,.builder-nav,.builder-inspector,.builder-canvas-area{will-change:transform,opacity}
.builder-canvas-area{overflow:hidden}
.preview-frame-wrap{transition:width .34s cubic-bezier(.2,.8,.2,1),box-shadow .34s ease}
.tree-item,.control-group,.builder-field{will-change:transform,opacity}
.metric-card{transform-style:preserve-3d}

/* Light-mode contrast corrections for animated layers */
html[data-theme="light"] .cursor-glow{opacity:.18!important;mix-blend-mode:multiply}
html[data-theme="light"] .hero-visual::after{mix-blend-mode:multiply;opacity:.25}
html[data-theme="light"] .person-wire{mix-blend-mode:multiply;filter:drop-shadow(0 0 8px rgba(92,135,0,.23))}
html[data-theme="light"] .face-data-trails i{background:linear-gradient(90deg,transparent,rgba(75,110,0,.55),transparent)}
html[data-theme="light"] .motion-preload{background:#f4f7f2}
html[data-theme="light"] .motion-preload__mark{color:#172016}
html[data-theme="light"] .motion-preload__line{background:rgba(10,25,8,.12)}
html[data-theme="light"] .theme-wipe{box-shadow:0 0 0 1px rgba(20,35,20,.12)}

@media(max-width:1099px){
  .hero-visual{cursor:default}
  .cursor-glow{display:none}
  .face-data-trails{opacity:.7}
}
@media(prefers-reduced-motion:reduce){
  [data-motion-type],.admin-sidebar,.admin-topbar,.metric-card,.panel,.builder-top,.builder-nav,.builder-inspector,.builder-canvas-area{opacity:1!important;transform:none!important}
  .motion-preload,.cursor-glow,.theme-wipe{display:none!important}
}

/* Readable light palette: keep the neon identity for actions while using a darker green for text */
html[data-theme="light"]{--accent-readable:#5f9200}
html[data-theme="light"] .hero h1 span,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .service-mini a,
html[data-theme="light"] .service-card a,
html[data-theme="light"] .card-link,
html[data-theme="light"] .section-badge,
html[data-theme="light"] .stat-item strong,
html[data-theme="light"] .hero-kpi strong,
html[data-theme="light"] .watch-link .play-dot{color:var(--accent-readable)!important}
html[data-theme="light"] .hero h1 span{text-shadow:0 8px 28px rgba(95,146,0,.16)}
html[data-theme="light"] .service-mini h3,
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .project-card h3,
html[data-theme="light"] .why-card h3,
html[data-theme="light"] .testimonial strong,
html[data-theme="light"] .section-head h2{color:#172016!important;opacity:1!important}
html[data-theme="light"] .service-mini p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .hero-description,
html[data-theme="light"] .watch-link{color:#536157!important;opacity:1!important}
html[data-theme="light"] .secondary-btn{background:#fff!important;color:#172016!important;border-color:rgba(27,48,31,.22)!important;box-shadow:0 8px 28px rgba(25,48,31,.08)}
html[data-theme="light"] .secondary-btn:hover{border-color:#7eb800!important;background:#f8fbf5!important}
html[data-theme="light"] .service-mini,
html[data-theme="light"] .service-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .testimonial,
html[data-theme="light"] .why-card{background:rgba(255,255,255,.92);box-shadow:0 18px 50px rgba(28,48,34,.075)}

/* WAHAJ CMS 6.2 identity transformation motion safeguards */
.hero-visual{--assembly-progress:0}
.target-reveal,.assembly-piece,.transform-beam,.transform-brackets i,.transform-pixels i{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.builder-preview-mode .hero-visual{cursor:crosshair}

/* WAHAJ CMS 6.5 final light-theme motion compatibility */
html[data-theme="light"] .project-card{background:#06100a!important;border-color:rgba(40,75,47,.24)!important;box-shadow:0 20px 52px rgba(25,48,31,.15)!important}
html[data-theme="light"] .project-card img{opacity:1!important;filter:saturate(1.08) contrast(1.05)!important}
html[data-theme="light"] .service-card img{opacity:1!important;filter:saturate(1.05) contrast(1.04)!important}
.hero-visual[data-pointer-leaving="true"] .person-target-final,
.hero-visual[data-pointer-leaving="true"] .assembly-piece[data-piece="headwear-top"]{opacity:0!important;visibility:hidden!important;transition:none!important}
