/* FLEXO LINE V3.2 - purposeful, accessible, compositor-friendly motion. */
:root { --fl-motion-ease: cubic-bezier(.19,1,.22,1); --fl-motion-red: #c8102e; }
html { scroll-padding-top: 88px; }
/* A fine progress rule provides motion feedback without a distracting loading graphic. */
.fl-scroll-progress { position:fixed; top:0;left:0;right:0;height:2px;background:var(--fl-motion-red);z-index:400;pointer-events:none;transform:scaleX(0);transform-origin:left;opacity:.94; }
/* Hero content arrives in a coordinated sequence, but is always readable if JS is absent. */
@media (prefers-reduced-motion:no-preference) {
 .v3-hero-copy .v3-eyebrow { animation:fl32-enter .8s var(--fl-motion-ease) both; }
 .v3-hero-copy h1 { animation:fl32-enter .95s .11s var(--fl-motion-ease) both; }
 .v3-hero-copy .v3-hero-lead { animation:fl32-enter .9s .23s var(--fl-motion-ease) both; }
 .v3-hero-copy .v3-hero-buttons { animation:fl32-enter .9s .35s var(--fl-motion-ease) both; }
 .v3-hero-copy .v3-hero-proof { animation:fl32-enter .9s .48s var(--fl-motion-ease) both; }
 .v31-hero-stage .v31-macro-photo { animation:fl32-photo-arrive 1.45s .12s var(--fl-motion-ease) both !important; }
 .v31-macro-caption { animation:fl32-enter .75s .85s var(--fl-motion-ease) both; }
 @keyframes fl32-enter { from {opacity:0;transform:translate3d(0,22px,0)} to {opacity:1;transform:translate3d(0,0,0)} }
 @keyframes fl32-photo-arrive { from {opacity:0;transform:scale(1.025)} to {opacity:1;transform:scale(1)} }
 /* Scroll reveals are added by JS only after feature detection; never invisible otherwise. */
 body.fl-motion-on .fl-reveal {opacity:0;transform:translate3d(0,24px,0);transition:opacity .85s var(--fl-motion-ease),transform .85s var(--fl-motion-ease);transition-delay:var(--fl-delay,0ms)}
 body.fl-motion-on .fl-reveal.fl-in-view {opacity:1;transform:translate3d(0,0,0)}
}
/* A slow, small shift adds life to the product photograph without the choppy cut-out orbit.
   Runs only on larger screens; animation pauses when hero is outside the viewport. */
.v31-hero-stage .fl-photo-drift {position:absolute;inset:0;isolation:isolate;}
.v31-hero-stage .fl-photo-drift .v31-macro-photo {inset:0;position:absolute;width:100%;height:100%;object-fit:cover;}
@media (min-width:901px) and (prefers-reduced-motion:no-preference) {
 .v31-hero-stage .fl-photo-drift {animation:fl32-cinematic 22s 1.5s ease-in-out infinite alternate;}
 .v31-hero-stage.fl-offscreen .fl-photo-drift {animation-play-state:paused;}
 @keyframes fl32-cinematic {from {transform:translate3d(-5px,0,0) scale(1.012)} to {transform:translate3d(8px,-5px,0) scale(1.052)}}
}
/* The subtle animated red trace is limited to the upper edge, not a rotating halo. */
.v3-hero-stage.v31-hero-stage::before {content:'';position:absolute;left:7%;right:7%;top:5%;height:2px;z-index:4;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(215,27,56,.1) 40%,rgba(231,43,70,.83),transparent);transform-origin:left;transform:scaleX(0);}
@media (min-width:901px) and (prefers-reduced-motion:no-preference) {
 .v3-hero-stage.v31-hero-stage::before {animation:fl32-trace 1.5s .5s var(--fl-motion-ease) both;}
 @keyframes fl32-trace {0% {opacity:0;transform:scaleX(0)} 100% {opacity:.9;transform:scaleX(1)}}
}
/* Staggered product cards and respectful pointer-specific interactions. */
.v3-family {outline-offset:5px;}
.v3-family-photo img {background:transparent;}
.v3-family-arrow {transition:background .25s,color .25s,transform .35s var(--fl-motion-ease);}
.v3-btn>span, .enquiry-btn .v2-cta-arrow, .v3-inline-link>span {display:inline-block;transition:transform .3s var(--fl-motion-ease);}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .v3-family:hover .v3-family-arrow {transform:translate3d(2px,-2px,0);}
 .v3-btn:hover>span,.enquiry-btn:hover .v2-cta-arrow,.v3-inline-link:hover>span {transform:translate3d(3px,-3px,0);}
 .v3-family-photo img {transition:transform .65s var(--fl-motion-ease);}
 .v3-family:hover .v3-family-photo img {transform:scale(1.065);}
 .product-card .product-image img {transition:transform .55s var(--fl-motion-ease);}
 .product-card:hover .product-image img {transform:scale(1.04);}
}
/* Factory photo scroll motion: image itself moves slightly within a clipping frame.
   The static CSS background remains the no-JS fallback. */
@media (min-width:901px) and (prefers-reduced-motion:no-preference) {
 .v3-expertise-image.fl-factory-parallax {overflow:hidden;isolation:isolate;background:#17191a;}
 .v3-expertise-image.fl-factory-parallax::before {content:'';position:absolute;z-index:0;inset:-28px;background:linear-gradient(180deg,rgba(15,18,20,.10),rgba(15,18,20,.35)),url('https://images.unsplash.com/photo-1730705788367-dbd288c40ee7?auto=format&fit=crop&w=1400&q=82') center / cover, url('../images/v2-factory.svg') center / cover;transform:translate3d(0,var(--fl-factory-y,0px),0);pointer-events:none;}
 .v3-expertise-image.fl-factory-parallax>* {position:relative;z-index:1;}
}
/* Improve native focus, clean mobile hit targets, and avoid decorative animations in reduced motion. */
.v3-hero a:focus-visible,.v3-family:focus-visible,.v3-btn:focus-visible,.v3-inline-link:focus-visible,.menu-toggle:focus-visible,.chat-launch:focus-visible {outline:3px solid #ea526a;outline-offset:4px;}
@media(max-width:900px) {
 .v31-hero-stage .fl-photo-drift {animation:none!important;transform:none!important;}
 .v3-expertise-image.fl-factory-parallax::before {transform:none!important;}
}
@media(max-width:650px) {
 .v3-hero-foot a {min-height:44px;display:inline-flex;align-items:center;}
 .v3-family-photo img {transition:none!important;}
 .v3-family:hover {transform:none;}
 .v3-hero-stage.v31-hero-stage::before {display:none;}
 .fl-scroll-progress {height:2px;}
}
@media(prefers-reduced-motion:reduce) {
 body.fl-motion-on .fl-reveal,body.fl-motion-on .fl-reveal.fl-in-view {opacity:1!important;transform:none!important;transition:none!important;}
 .v31-hero-stage .fl-photo-drift,.v31-hero-stage .v31-macro-photo,.v3-hero-stage.v31-hero-stage::before,.v3-hero-copy>* {animation:none!important;transform:none!important;}
 .v3-family,.v3-family img,.v3-family-arrow,.v3-btn>span {transition:none!important;}
 .v3-expertise-image::before {transform:none!important;}
}
/* Ensure content remains visible when JavaScript is disabled or motion setup fails. */
.reveal {opacity:1;transform:none;}
/* Keep full product composition and caption within the viewport on desktop. */
@media (min-width:901px){
  .v31-hero-stage {width:calc(100% + 22px); margin-right:-22px;}
  .v31-macro-caption {right:22px;bottom:36px;}
  .v31-hero-stage .v31-macro-photo {object-position:48% 49%;}
}
