/* Final shared layer: preserves the visual system while fixing restored overrides. */
:root{--km-focus:#f1bd51;--km-readable:#cbc5d4;--km-nav-height:72px}
[hidden]{display:none!important}
html{scroll-padding-top:88px}
body{padding-bottom:0!important}
main,main section,main .col{min-width:0}
main a:not(.btn):not(.door):not(.case a){text-underline-offset:.2em;text-decoration-thickness:.08em}
main p a,main li a,.pol a,.km-pilot-terms a{text-decoration:underline}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--km-focus)!important;outline-offset:4px!important;border-radius:5px}
:where(input,textarea,select){scroll-margin-top:110px}
:where(input,textarea,select)[aria-invalid="true"]{border-color:#ff8e9d!important;box-shadow:0 0 0 2px #ff8e9d55}
.km-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.skip-link{position:fixed;left:16px;top:12px;z-index:5000;padding:12px 18px;background:#f1bd51;color:#17151c;border-radius:10px;transform:translateY(-160%);font-weight:700}
.skip-link:focus{transform:none}
.note{font-size:clamp(.9rem,1vw,.98rem);line-height:1.65;color:var(--km-readable)}

/* Decoration stays out of the text column. JS also stops drawing when hidden. */
#stage{clip-path:inset(0 0 0 56%)!important;opacity:.3!important;pointer-events:none!important;z-index:0!important}
body.km-motion-paused #stage{visibility:hidden!important}
.km-motion-toggle{position:fixed;right:18px;top:90px;z-index:35;min-height:40px;padding:9px 13px;border:1px solid #ffffff30;border-radius:10px;background:#24212ded;color:#e6e2d8;font:500 13px/1.3 Inter,system-ui,sans-serif;cursor:pointer}
.km-motion-toggle:hover{border-color:var(--km-focus)}
.shero,.shero.hv-uni,.shero.hv-right{min-height:0!important;justify-content:flex-start!important;align-items:stretch!important;padding-top:128px!important;padding-bottom:48px!important}
.shero .col,.shero.hv-uni .col,.shero.hv-right .col{position:relative;isolation:isolate;text-align:left!important;margin:0 auto 0 max(5vw,calc((100vw - 1180px)/2))!important;padding:0!important;width:min(680px,90vw)!important;max-width:680px!important;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
.shero .col::before{content:""!important;position:absolute;z-index:-1;inset:-24px!important;width:calc(100% + 48px);border-radius:22px;background:linear-gradient(105deg,#2b2a31fa 72%,#2b2a31e8 88%,#2b2a3100)!important;pointer-events:none}
.shero.hm-hero .col.hm-col{width:min(90vw,1180px)!important;max-width:1180px!important;margin-inline:auto!important}
.shero.hm-hero .col.hm-col::before{right:auto!important;max-width:760px}
.shero h1,.shero.hv-uni h1{font-size:clamp(2.35rem,4vw,3.8rem)!important;line-height:1.1!important;max-width:19ch!important;margin:0!important;letter-spacing:-.035em}
.shero .lead{max-width:62ch!important;margin-top:20px!important;line-height:1.6!important}
.shero .actions{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start!important;gap:12px!important;margin-top:24px!important}
.shero .actions .btn{min-height:48px}
.shero .hticker{margin-left:0!important}
.shero .kicker{margin-bottom:14px}
.shero .crumbs{margin-bottom:16px}
.shero.hm-hero .doors{margin-top:30px!important}
.shero.hm-hero .door{background:#302b38ed!important}
main>section:not(.shero):not(.kband):not(.kduo):not(.ksplit){padding-block:42px}
.kmad{padding-block:42px!important}
.kband{margin-top:0!important}

/* One navigation implementation. hidden is authoritative on small screens. */
nav{z-index:100!important;min-height:72px!important;padding:12px max(4vw,calc((100vw - 1280px)/2))!important;background:#27242ff5!important;border-bottom:1px solid #ffffff12;backdrop-filter:blur(12px)}
nav .links{align-items:center}
nav .links a{min-height:44px;display:inline-flex;align-items:center}
nav .kmburg{flex:none;min-width:44px;min-height:44px;margin-left:8px;border:1px solid #ffffff30;background:#ffffff08;color:#eee9df}
nav .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}

/* User-controlled video; the action button is below the picture, never over a face. */
.kmad .fv{aspect-ratio:auto!important;overflow:hidden!important;background:#19151f!important}
.kmad .fv>video{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;background:#141019}
.kmad .snd{position:static!important;inset:auto!important;display:inline-flex!important;min-height:44px;margin:12px!important;padding:10px 16px!important;transform:none!important;backdrop-filter:none!important;border-radius:10px!important;background:#39303f!important;color:#f4f0fa!important;font:600 .95rem/1.4 Inter,system-ui,sans-serif!important}
.kmad .snd:hover{background:#493951!important;border-color:var(--km-focus)!important}
.kmad .bar{display:none!important}
.kmad li.on{color:#f5edff!important}
.kmad li.on::before{color:var(--gold,#ecaa2a)!important}
.km-video-error{display:block;color:#ffd2d8;padding:0 14px 14px;font-size:.9rem}
.xt summary small{color:#d1c8dd!important}

/* Demos can be expanded deliberately; the summary remains keyboard operable. */
details[data-expand]{width:min(92vw,1180px);max-width:100%;margin:18px auto;border:1px solid #ffffff24;border-radius:16px;background:#29252f;overflow:clip;scroll-margin-top:90px}
details[data-expand]>summary{padding:18px 22px;cursor:pointer;font:650 1.05rem/1.5 Manrope,Inter,system-ui,sans-serif;color:#eee8f8}
details[data-expand]>summary:hover{color:#e9bb58;background:#ffffff05}
details[data-expand]>:not(summary){max-width:100%!important}
details[data-expand]>.km-expand-content{padding:0 18px 20px;min-width:0}
details[data-expand] .col{width:100%!important;max-width:100%!important;margin-inline:auto!important}
details[data-expand] section{padding-block:18px!important;max-width:100%!important}
details[data-expand] summary small{display:block;font-weight:400;font-size:.92rem;color:#c5bbd2}

/* Existing sticky CTA is useful only after the first screen, away from the form. */
#rzbar{display:none!important}

@media (max-width:1100px) and (min-width:901px){
  nav{gap:14px!important;padding-inline:24px!important}
  nav .links{gap:15px!important}
  nav .links a{font-size:.86rem!important}
  nav .btn{padding-inline:12px!important}
  nav .brand{font-size:1rem!important}
}
@media (max-width:900px){
  :root{--km-nav-height:66px}
  html{scroll-padding-top:82px}
  #stage,.km-motion-toggle{display:none!important}
  nav{min-height:66px!important;padding:10px 16px!important;gap:8px!important}
  nav .brand{font-size:1rem!important;gap:7px!important;white-space:nowrap}
  nav .btn{margin-left:auto!important;padding:9px 12px!important;font-size:.83rem!important;white-space:nowrap}
  nav .kmburg{display:inline-flex!important;order:3;margin-left:0!important;align-items:center;justify-content:center;flex-direction:column;gap:5px}
  nav .links{position:absolute!important;inset:100% 0 auto 0!important;max-height:calc(100dvh - 66px);overflow:auto;overscroll-behavior:contain;flex-direction:column!important;align-items:stretch!important;gap:0!important;margin:0!important;padding:8px 18px 18px!important;background:#292530!important;border-bottom:1px solid #ffffff24;box-shadow:0 18px 40px #0006}
  nav.mopen .links:not([hidden]){display:flex!important}
  nav .links[hidden]{display:none!important}
  nav .links a{min-height:46px;padding:10px 4px!important;font-size:1rem!important;line-height:1.4;border-bottom:1px solid #ffffff14}
  .shero,.shero.hv-uni,.shero.hv-right{padding-top:108px!important;padding-bottom:32px!important;min-height:0!important}
  .shero .col,.shero.hv-uni .col,.shero.hv-right .col,.shero.hm-hero .col.hm-col{width:calc(100% - 32px)!important;max-width:680px!important;margin-inline:auto!important;padding:0!important;background:none!important}
  .shero .col::before{display:none!important}
  .shero .crumbs{display:none!important}
  .shero h1,.shero.hv-uni h1{font-size:clamp(1.95rem,6.5vw,2.65rem)!important;line-height:1.13!important;letter-spacing:-.03em!important;max-width:23ch!important}
  .shero .kicker{margin-bottom:13px!important;font-size:.75rem!important;line-height:1.5!important;letter-spacing:.08em!important}
  .shero .lead{font-size:1rem!important;line-height:1.6!important;margin-top:18px!important}
  .shero .actions{gap:10px!important;margin-top:20px!important}
  .shero .actions .btn{min-height:48px!important;font-size:.94rem!important;padding:11px 15px!important}
  .shero .hticker{margin-top:18px!important;gap:8px!important}
  .shero .hticker span{font-size:.86rem!important;line-height:1.5!important}
  .shero.hm-hero .doors{margin-top:26px!important;gap:14px!important}
  .shero.hm-hero .door{padding:22px!important}
  main>section:not(.shero):not(.kband):not(.kduo):not(.ksplit){padding-block:30px!important}
  main.sub>section:not(.kmad):not(.shero)>.col{width:calc(100% - 32px)!important}
  .kmad{padding-block:30px!important}
  .kmad .adw{width:calc(100% - 32px)!important;grid-template-columns:1fr!important;gap:18px!important}
  .kmad .fv{order:0!important;border-radius:16px!important}
  .kmad .col{order:0!important}
  .kmad h2{font-size:clamp(1.65rem,5.8vw,2.25rem)!important;line-height:1.15!important}
  .kmad li{font-size:.95rem;line-height:1.5;padding-block:10px!important}
  .kband,.ksplit,.kduo{width:calc(100% - 32px)!important;max-width:680px!important;margin:20px auto!important}
  .ksplit,.ksplit.rev,.kduo,.kduo.kone{grid-template-columns:1fr!important;gap:18px!important}
  .ksplit.rev figure{order:0!important}
  .kband figure,.ksplit figure,.kduo figure{display:flex!important;flex-direction:column;aspect-ratio:auto!important;height:auto!important;max-height:none!important;margin:0!important;border-radius:18px!important;overflow:hidden!important;background:#25212d!important}
  .kband figure img,.ksplit figure img,.kduo figure img,.kduo figure video{display:block!important;flex:none;width:100%!important;height:auto!important;max-height:280px!important;min-height:0!important;aspect-ratio:16/10!important;object-fit:cover!important;animation:none!important;transform:none!important}
  .kband figcaption,.kduo figcaption{position:static!important;inset:auto!important;padding:16px!important;background:#25212d!important;gap:8px!important}
  .kband figcaption b,.kduo figcaption b{font-size:1.22rem!important;line-height:1.3!important;max-width:none!important}
  .kband figcaption span,.kduo figcaption span{font-size:.95rem!important;line-height:1.55!important;color:#d2cbdc!important}
  .kband figcaption i,.kduo figcaption i{font-size:.75rem!important;line-height:1.5!important}
  .kband .kchip,.ksplit .kchip,.kduo .kchip{position:static!important;inset:auto!important;align-self:flex-start;opacity:1!important;transform:none!important;max-width:calc(100% - 24px)!important;margin:12px 12px 0!important;font-size:.82rem!important;line-height:1.5!important;background:#3a3046!important;backdrop-filter:none!important;border-radius:10px!important}
  details[data-expand]{width:calc(100% - 32px)!important;margin-block:16px!important}
  details[data-expand]>summary{padding:16px!important;font-size:1rem!important;line-height:1.5!important}
  details[data-expand]>.km-expand-content{padding:0 10px 14px!important}
  details[data-expand] .col{width:100%!important;padding-inline:0!important}
  details[data-expand] section{padding-block:14px!important}
  /* Simulation controls must fit their panel; the factory world keeps its own coordinates. */
  .ks,.ks-tabs,.ks-tab,.ks-rules,.ks-rule,.ks-ctl,.ks-tabh{min-width:0!important;max-width:100%!important;box-sizing:border-box}
  .ks-rules{grid-template-columns:minmax(0,1fr)!important}
  .ks-rule{width:100%!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .ks-rule .lb{flex:0 1 auto!important;min-width:0!important;max-width:100%!important;overflow-wrap:anywhere}
  .ks-rule>.ks-seg{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;overflow:visible!important;box-sizing:border-box}
  .ks-rule>.ks-seg button{flex:1 1 7.5rem!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}
  .ks-rule>.ks-sw{align-self:flex-start;flex:0 0 auto!important}
  .ks-rule>.ks-rng{min-width:0!important;max-width:100%!important;flex-wrap:wrap}
  .ks-rule>.ks-rng input{flex:1 1 110px;min-width:0;max-width:100%}
  .ks-ctl{flex-wrap:wrap!important;justify-content:flex-start!important}
  .ks-ctl>.ks-seg{flex:0 1 auto;max-width:100%;min-width:0}
  .ks-ctl>select{flex:1 1 9rem!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
  .ks-ctl>.ks-ib{flex:none}
  .ks-tabh{flex-wrap:wrap!important}
  .ks-tabh button{flex:1 1 8rem;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  body.km-has-sticky{padding-bottom:82px!important}
  #rzbar{display:flex!important;position:fixed!important;z-index:40!important;left:12px!important;right:82px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;min-height:48px;max-height:72px;padding:12px!important;white-space:normal!important;justify-content:center;align-items:center;border-radius:12px!important;background:#9d6ff8!important;color:#17141d!important;font-weight:700!important;font-size:.9rem!important;line-height:1.35!important;box-shadow:0 10px 35px #0007!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;transform:translateY(150%)!important;transition:transform .2s,opacity .2s!important}
  #rzbar.km-sticky-on{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}
  .km-pilot-terms .col{padding-block:10px!important}
}
@media (max-width:380px){
  nav{padding-inline:12px!important;gap:6px!important}
  nav .brand{font-size:.92rem!important;gap:6px!important}
  nav .brand i{width:10px!important;height:10px!important}
  nav .btn{padding-inline:9px!important;font-size:.78rem!important}
  .shero h1,.shero.hv-uni h1{font-size:1.93rem!important}
  .shero .actions .btn{font-size:.9rem!important;padding-inline:13px!important}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  #stage,.km-motion-toggle{display:none!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .kband img,.ksplit img,.kduo img{animation:none!important;transform:none!important}
}
.calc small{color:#d1c8dd!important}
body[data-page="lab-complex"] .kicker,body[data-page="lab-complex"] .shero .kicker,body[data-page="lab-complex"] .kicker[style]{color:#b1baff!important}
main #contact .kicker{color:#efbd59!important}
footer .km-footer-group{padding:0;margin:0;border:0;background:none}
footer .km-footer-group>summary{cursor:pointer;list-style:none;position:relative;padding-right:20px}
footer .km-footer-group>summary::-webkit-details-marker{display:none}
footer .km-footer-group>summary::after{content:'+';position:absolute;right:0;top:0;color:#bca2e6;font-size:18px}
footer .km-footer-group[open]>summary::after{content:'−'}
footer .km-footer-group>summary h4{display:inline-block;margin-top:0}
footer .km-footer-group>a{display:block}
@media(max-width:900px){footer .fcols{gap:20px!important}footer .km-footer-group{border-bottom:1px solid #ffffff24}footer .km-footer-group>summary{min-height:48px;padding:12px 28px 12px 0}footer .km-footer-group>summary::after{top:10px}footer .km-footer-group>summary h4{margin:0!important}footer .km-footer-group>a{min-height:42px;padding-block:8px}}
footer.site .fcols>.km-footer-column{display:block!important}
