/* KC Tools Beta v21 — responsive refinements and understated section reveal. */
/* Reveal only when JavaScript is actually supported and observer has been installed. */
html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-copy,
html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-visual,
html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-card {
  opacity:0;
  transform:translate3d(0,22px,0);
}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-copy,
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-visual,
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-card {
  transition:opacity .72s ease,transform .78s cubic-bezier(.22,1,.36,1);
  will-change:opacity,transform;
}
html.kc-scroll-reveal-enabled .kc-scroll-reveal.kc-is-inview .kc-reveal-copy,
html.kc-scroll-reveal-enabled .kc-scroll-reveal.kc-is-inview .kc-reveal-visual,
html.kc-scroll-reveal-enabled .kc-scroll-reveal.kc-is-inview .kc-reveal-card {
  opacity:1;
  transform:translate3d(0,0,0);
}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-copy:nth-child(2){transition-delay:.09s}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-copy:nth-child(3){transition-delay:.16s}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-copy:nth-child(4){transition-delay:.22s}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-visual{transition-delay:.13s}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-card:nth-child(2){transition-delay:.07s}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-card:nth-child(3){transition-delay:.14s}
html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-card:nth-child(4){transition-delay:.21s}
/* Protect section and card hover animations from conflicts: reveal uses the content element, not parent sections. */
html.kc-scroll-reveal-enabled .kc-product-item.kc-reveal-card{transition:opacity .72s ease, transform .45s cubic-bezier(.22,1,.36,1), border-color .3s ease,box-shadow .3s ease}
html.kc-scroll-reveal-enabled .kc-product-item.kc-reveal-card:hover{transform:translateY(-6px)}
/* CSS fixes shared across every page. */
html, body{max-width:100%;overflow-x:clip}
.intro-section,.kc-location,.kc-footer{max-width:100%}
.kc-sector-layout>*{min-width:0}
.kc-sector-desc{z-index:3}
.kc-sector-art{pointer-events:none}
.kc-product-item,.category-card{min-width:0}
/* Tablets and small laptop screens. */
@media(max-width:1050px){
  .kc-sector-layout{gap:clamp(20px,3vw,42px)}
  .kc-sector-desc .section-copy{max-width:480px}
  .kc-visual-products .kc-products-top-art{max-width:70vw!important}
  .kc-visual-products .kc-products-inner>h2{max-width:59%}
  .kc-visual-products .product-list{margin-top:clamp(110px,15vw,160px)}
}
/* Mobile and portrait tablets: avoid wide artwork overlapping text and keep CNC visible. */
@media(max-width:760px){
  :root{--pad:clamp(16px,4.8vw,28px)}
  .intro-section h2{overflow-wrap:break-word;text-wrap:pretty}
  .kc-visual-corporate .kc-corpo-text{padding-top:clamp(54px,8vw,78px);padding-bottom:6px}
  .kc-visual-corporate .kc-corpo-text :is(h1,h2){font-size:clamp(36px,8.8vw,60px);max-width:100%;line-height:1.13}
  .kc-visual-corporate .kc-corpo-text .section-copy{max-width:100%;line-height:1.67}
  .kc-visual-corporate .kc-corpo-art{width:100%;max-width:540px;margin:0 auto;padding-bottom:24px}
  .kc-visual-corporate .kc-corpo-product-image{max-height:420px;width:100%;height:auto;object-fit:contain}
  /* Sector section now follows corporate: text always sits above its image. */
  .kc-visual-industries{min-height:0!important}
  .kc-visual-industries .kc-sector-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;padding-top:66px;padding-bottom:clamp(210px,52vw,330px);gap:22px;align-items:start}
  .kc-sector-layout h2{font-size:clamp(36px,8.4vw,58px);max-width:100%;line-height:1.12}
  .kc-sector-desc{max-width:100%;padding:0!important;align-self:start}
  .kc-sector-desc .section-copy{max-width:100%;font-size:clamp(15px,3.7vw,18px);line-height:1.7}
  .kc-visual-industries .kc-sector-art{z-index:0;top:auto;right:-3%;bottom:0;width:min(100%,620px);height:clamp(215px,52vw,330px);opacity:.76;mask-image:linear-gradient(to bottom,transparent,#000 27%,#000 100%);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 27%,#000 100%);background-size:cover;background-position:right 45%}
  /* Dedicated rows for title and CNC art, ensuring it cannot be hidden by cards. */
  .kc-visual-products{padding:60px 0 78px!important}
  .kc-visual-products .kc-products-inner>h2{max-width:100%!important;font-size:clamp(35px,8.3vw,57px);line-height:1.13;letter-spacing:-.035em}
  .kc-visual-products .kc-products-top-art{position:relative!important;display:block;z-index:1;top:auto!important;right:auto!important;width:100%!important;max-width:none!important;height:clamp(220px,52vw,375px)!important;margin:10px 0 -2px;background-position:center right!important;background-size:contain!important;opacity:.87!important;pointer-events:none}
  .kc-visual-products .product-list{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px!important;gap:12px}
  .kc-visual-products .kc-product-item{min-height:clamp(275px,52vw,350px);padding:15px;border-radius:14px}
  .kc-visual-products .kc-product-item h3{font-size:clamp(16px,3.8vw,22px);line-height:1.16}
  .kc-visual-products .kc-product-item .kc-product-desc{font-size:clamp(11px,2.7vw,13px);line-height:1.45;overflow-wrap:anywhere}
  .kc-visual-products .kc-product-item::before{inset:16px 6px 72px!important;background-position:center!important;background-size:contain!important}
  .kc-visual-catalog .kc-catalog-inner{display:grid;grid-template-columns:1fr;gap:0;min-height:0}
  .kc-visual-catalog .kc-catalog-copy{padding:64px 0 8px}
  .kc-visual-catalog .kc-catalog-copy h2{font-size:clamp(37px,9vw,59px)}
  .kc-visual-catalog .kc-catalog-art{min-height:clamp(250px,64vw,430px);background-size:contain;background-repeat:no-repeat}
  .kc-location__grid{grid-template-columns:minmax(0,1fr)}
  .kc-location__details,.kc-location__map-shell{min-width:0}
  .kc-location__map-footer{flex-wrap:wrap}
  .kc-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
}
@media(max-width:540px){
  .kc-sector-layout h2{font-size:clamp(34px,9vw,46px)}
  .kc-visual-industries .kc-sector-layout{padding-bottom:clamp(200px,55vw,275px)}
  .kc-visual-industries .kc-sector-art{height:clamp(200px,55vw,275px);opacity:.7}
  .kc-visual-products .kc-products-top-art{height:clamp(205px,60vw,295px)!important;margin-top:8px}
  .kc-visual-products .kc-products-inner>h2{font-size:clamp(34px,8.5vw,46px)}
  .kc-visual-products .product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .kc-visual-products .kc-product-item{min-height:262px;padding:12px}
  .kc-visual-products .kc-product-item h3{font-size:clamp(15px,4vw,18px)}
  .kc-visual-products .kc-product-item .kc-product-desc{font-size:11px;max-height:4.5em}
  .kc-visual-products .kc-product-item .product-symbol{right:11px;bottom:9px;font-size:17px}
  .kc-visual-products .kc-product-item::before{inset:12px 1px 77px!important}
  .kc-footer__grid{grid-template-columns:minmax(0,1fr)}
  .kc-location__directions{max-width:100%;white-space:normal;text-align:center}
}
@media(max-width:365px){
  .kc-visual-products .product-list{grid-template-columns:1fr;gap:11px}
  .kc-visual-products .kc-product-item{min-height:300px}
  .kc-visual-products .kc-product-item::before{inset:10px 10px 79px!important}
  .kc-visual-products .kc-product-item h3{font-size:19px}
  .kc-sector-layout h2{font-size:33px}
}
@media(prefers-reduced-motion:reduce){
  html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-copy,
  html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-visual,
  html.kc-scroll-reveal-enabled .kc-scroll-reveal .kc-reveal-card{opacity:1!important;transform:none!important;transition:none!important;will-change:auto}
}
