/* KC CUTTING TOOLS — v27 cinematic depth scene engine.
 * Transform + opacity only for composited motion. NO scroll-driven blur or scroll hijack.
 * Hero becomes a photographic depth plane; first section opens from centre.
 */
@media (prefers-reduced-motion: no-preference){
  body[data-page="home"] main { position:relative; isolation:isolate; }
  body[data-page="home"] .hero {
    position:sticky!important; top:0!important; z-index:0!important;
    overflow:hidden!important; transform:none!important;
    backface-visibility:hidden; -webkit-backface-visibility:hidden;
  }
  body[data-page="home"] .hero .hero-media {
    transform-origin:50% 44%;
    transform:translate3d(0,var(--kc-hero-rise,0px),0) scale(var(--kc-hero-zoom,1));
    will-change:transform; backface-visibility:hidden;
  }
  body[data-page="home"] .hero .hero-video {transform:none!important}
  body[data-page="home"] .kc-hero-depth-shade {
    position:absolute;inset:0;z-index:1;pointer-events:none;
    background:radial-gradient(ellipse 68% 75% at 50% 46%,transparent 25%,rgba(0,0,0,.30) 75%,rgba(0,0,0,.56)),
               linear-gradient(180deg,transparent 0%,#020908 100%);
    opacity:var(--kc-hero-shade,0);will-change:opacity;
  }
  body[data-page="home"] .intro-section {
    position:relative;z-index:2;overflow:hidden;
    backface-visibility:hidden;
    --kc-stage-entry:1;
  }
  body[data-page="home"] .intro-corporate {
    --kc-gate-radius:150%;
    clip-path:circle(var(--kc-gate-radius) at 50% 52%);
    -webkit-clip-path:circle(var(--kc-gate-radius) at 50% 52%);
    transform:translateZ(0);
    contain:paint;
  }
  body[data-page="home"] .intro-section:not(.intro-corporate)::after {
    content:'';pointer-events:none;position:absolute;top:0;left:0;right:0;height:2px;z-index:3;
    background:linear-gradient(90deg,transparent 3%,rgba(4,192,135,.4) 26%,#ffdda1 50%,rgba(6,184,128,.5) 76%,transparent 96%);
    box-shadow:0 0 17px rgba(220,170,83,.35);
    opacity:calc((1 - var(--kc-stage-entry,1)) * .8);
  }
  /* A crisp stage arrival. Text settles once, artwork follows scroll a little. */
  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 {
    filter:none!important;clip-path:none!important;
    animation:none!important;
    transition-property:opacity,transform,translate,border-color,box-shadow!important;
    transition-duration:.95s,1.05s,1.05s,.35s,.35s!important;
    transition-timing-function:cubic-bezier(.16,1,.3,1)!important;
  }
  html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-copy {
    opacity:0!important;transform:translate3d(0,60px,0)!important;
  }
  html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-visual {
    opacity:0!important;transform:translate3d(0,64px,0) scale(.96)!important;
  }
  html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-card {
    opacity:0!important;transform:translate3d(0,65px,0) scale(.965)!important;
  }
  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!important;transform:translate3d(0,0,0) scale(1)!important;filter:none!important;
  }
  /* Independent long-layer drift doesn't disturb the sharp copy and section backgrounds. */
  body[data-page="home"] .kc-corpo-art,
  body[data-page="home"] .kc-products-top-art,
  body[data-page="home"] .kc-sector-art,
  body[data-page="home"] .kc-catalog-art {
    translate:0 var(--kc-art-drift,0px)!important;
    will-change:translate;
  }
  /* Drop older experimental overlay engines and expensive effects. */
  .kc-scene-curtain-v26,.kc-scene-light-v26,.kc-portal-veil,.kc-portal-ring {display:none!important}
  .kc-scroll-reveal.kc-is-inview .kc-product-item {animation:none!important}
  html.kc-scroll-reveal-enabled .kc-product-item.kc-reveal-card:hover {
    transform:translate3d(0,-7px,0) scale(1.015)!important;
  }
}
/* Play action only on browsers that block autoplay. Accessible manual fallback. */
.kc-video-retry {
  position:absolute;z-index:7;left:50%;bottom:clamp(155px,22vh,240px);transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  padding:12px 20px;border:1px solid #e3ba73;border-radius:999px;
  color:#fff4db;background:rgba(4,13,13,.87);
  box-shadow:0 12px 28px rgba(0,0,0,.35),0 0 18px rgba(222,176,89,.17);
  font:800 13px/1.25 Manrope,Arial,sans-serif;cursor:pointer;
}
.kc-video-retry[hidden]{display:none!important}
.kc-video-retry:hover,.kc-video-retry:focus-visible{background:#3b2b15;color:#fff;outline:2px solid #eac784;outline-offset:2px}
.kc-video-retry span:first-child{color:#f5c975;font-size:14px}
/* Mobile: preserve 4 compact cards and visible KC mark from v26, no separate rail. */
@media(max-width:760px){
  body[data-page="home"] .hero {height:100svh!important;min-height:560px!important;max-height:none!important}
  body[data-page="home"] .hero .hero-media{transform-origin:50% 45%}
  body[data-page="home"] .hero .hero-video{object-fit:cover!important;object-position:50% 43%!important}
  .kc-video-retry{bottom:170px;max-width:calc(100vw - 60px);padding:10px 15px;font-size:12px}
  html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-copy{transform:translate3d(0,37px,0)!important}
  html.kc-scroll-reveal-enabled .kc-scroll-reveal:not(.kc-is-inview) .kc-reveal-card{transform:translate3d(0,40px,0) scale(.98)!important}
}
@media(prefers-reduced-motion:reduce){
  body[data-page="home"] .hero {position:relative!important}
  body[data-page="home"] .hero .hero-media{transform:none!important}
  .kc-video-retry{bottom:150px}
}
