/* MOTION-SITES INSPIRED — FORCE TECH MOTION SYSTEM */
html{scroll-behavior:smooth}
body{overflow-x:hidden}

/* Cinematic page reveal */
body{animation:pageReveal .9s cubic-bezier(.2,.75,.2,1) both}
@keyframes pageReveal{from{opacity:0}to{opacity:1}}

/* Hero: depth + floating technical layers */
.hero{perspective:1200px;isolation:isolate;overflow:hidden}
.hero-copy{animation:heroCopyIn 1s .15s cubic-bezier(.16,1,.3,1) both}
.hero-visual{transform-style:preserve-3d;animation:heroVisualIn 1.2s .05s cubic-bezier(.16,1,.3,1) both}
.hero-visual:after{content:'';position:absolute;inset:-20%;background:linear-gradient(115deg,transparent 35%,rgba(245,130,0,.10) 50%,transparent 65%);transform:translateX(-100%) rotate(8deg);animation:heroSweep 5s 1.1s ease-in-out infinite;pointer-events:none;z-index:3}
@keyframes heroCopyIn{from{opacity:0;transform:translateY(55px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes heroVisualIn{from{opacity:0;transform:translate3d(70px,30px,-80px) rotateY(-8deg) scale(.94)}to{opacity:1;transform:none}}
@keyframes heroSweep{0%,65%{transform:translateX(-100%) rotate(8deg)}85%,100%{transform:translateX(100%) rotate(8deg)}}
.hero-logo{animation:logoFloat 5s ease-in-out infinite}
@keyframes logoFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-7px) scale(1.012)}}

/* Scroll reveal */
.section,.stats,.contact,footer{view-timeline-name:--sectionReveal;view-timeline-axis:block;animation-timeline:--sectionReveal;animation-name:sectionReveal;animation-range:entry 5% cover 28%;animation-fill-mode:both}
@keyframes sectionReveal{from{opacity:0;transform:translateY(55px)}to{opacity:1;transform:none}}

/* Section headings */
.section-head,.section-title{position:relative}
.section-head .eyebrow,.section-title .eyebrow{animation:eyebrowIn .8s both;animation-timeline:view(block);animation-range:entry 10% cover 35%}
.section-head h2,.section-title h2{animation:headingIn 1s both;animation-timeline:view(block);animation-range:entry 8% cover 40%}
@keyframes eyebrowIn{from{opacity:0;letter-spacing:.4em;transform:translateX(-25px)}to{opacity:1;letter-spacing:.15em;transform:none}}
@keyframes headingIn{from{opacity:0;transform:translateY(30px);clip-path:inset(100% 0 0 0)}to{opacity:1;transform:none;clip-path:inset(0 0 0 0)}}

/* Services — staggered entrance + magnetic hover */
.service-grid article{animation:cardReveal .8s both;animation-timeline:view(block);animation-range:entry 5% cover 32%}
.service-grid article:nth-child(2){animation-delay:.06s}.service-grid article:nth-child(3){animation-delay:.12s}.service-grid article:nth-child(4){animation-delay:.18s}.service-grid article:nth-child(5){animation-delay:.24s}.service-grid article:nth-child(6){animation-delay:.30s}.service-grid article:nth-child(7){animation-delay:.36s}
@keyframes cardReveal{from{opacity:0;transform:translateY(35px) scale(.97)}to{opacity:1;transform:none}}
.service-grid article{transition:transform .5s cubic-bezier(.16,1,.3,1),border-color .35s,box-shadow .5s}
.service-grid article:hover{transform:translateY(-10px) scale(1.012)}

/* Stats numbers */
.stats b{display:block;animation:statPulse 4s ease-in-out infinite}
.stats div:nth-child(2) b{animation-delay:.5s}.stats div:nth-child(3) b{animation-delay:1s}.stats div:nth-child(4) b{animation-delay:1.5s}
@keyframes statPulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}

/* Project list cinematic sweep */
.project-list article{opacity:0;animation:projectIn .85s cubic-bezier(.16,1,.3,1) both;animation-timeline:view(block);animation-range:entry 2% cover 25%}
.project-list article:nth-child(2){animation-delay:.07s}.project-list article:nth-child(3){animation-delay:.14s}.project-list article:nth-child(4){animation-delay:.21s}.project-list article:nth-child(5){animation-delay:.28s}.project-list article:nth-child(6){animation-delay:.35s}.project-list article:nth-child(7){animation-delay:.42s}
@keyframes projectIn{from{opacity:0;transform:translateX(70px) scale(.98);clip-path:inset(0 0 0 12%)}to{opacity:1;transform:none;clip-path:inset(0)}}
.project-list article:after{transition:opacity .35s,transform .5s cubic-bezier(.16,1,.3,1)}

/* Customer logo wall */
.customer-logo{animation:clientIn .8s both;animation-timeline:view(block);animation-range:entry 4% cover 30%}
@keyframes clientIn{from{opacity:0;transform:translateY(40px) rotateX(5deg)}to{opacity:1;transform:none}}
.customer-logo:hover{transform:translateY(-9px) scale(1.015);transition:transform .5s cubic-bezier(.16,1,.3,1),box-shadow .4s,border-color .3s}

/* Equipment */
.tool-grid div{transition:transform .45s cubic-bezier(.16,1,.3,1),border-color .3s,background .3s}
.tool-grid div:hover{transform:translateY(-7px) rotateX(2deg);border-color:#f58200}

/* Contact CTA */
.contact-card{transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .5s}
.contact-card:hover{transform:translateY(-8px);box-shadow:0 28px 70px rgba(0,0,0,.25)}

/* Cursor-like orange accent */
.btn{position:relative;overflow:hidden;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s}
.btn:after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%);transform:translateX(-120%);transition:transform .6s}
.btn:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(245,130,0,.18)}
.btn:hover:after{transform:translateX(120%)}

/* Project modal cinematic */
.project-modal.open .project-panel{animation:modalIn .75s cubic-bezier(.16,1,.3,1) both}
@keyframes modalIn{from{opacity:0;transform:translateY(60px) scale(.96);clip-path:inset(8% 5% 8% 5%)}to{opacity:1;transform:none;clip-path:inset(0)}}
.project-modal.open .project-slot{animation:slotIn .7s cubic-bezier(.16,1,.3,1) both}
.project-modal.open .project-slot:nth-child(1){animation-delay:.08s}.project-modal.open .project-slot:nth-child(2){animation-delay:.13s}.project-modal.open .project-slot:nth-child(3){animation-delay:.18s}.project-modal.open .project-slot:nth-child(4){animation-delay:.23s}.project-modal.open .project-slot:nth-child(5){animation-delay:.28s}.project-modal.open .project-slot:nth-child(6){animation-delay:.33s}
@keyframes slotIn{from{opacity:0;transform:translateY(25px) scale(.97)}to{opacity:1;transform:none}}

/* Reduced motion accessibility */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
