/* kcs-world.css (1.4.15). Styles for the KCS scroll world (page template GK Brand: KCS).
   Every rule sits under #kcs-world, so nothing reaches the rest of the site. Mobile first. */
#kcs-world{--bg:#05070d;--ink:#eef2f8;--mut:#dde4ef;--c1:#4cc9f0;--c2:#ffb703;--card:rgba(5,7,13,.9);
  position:relative;isolation:isolate;background:var(--bg);color:var(--ink);overflow:clip;clip-path:inset(0);
  font:1.0625rem/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;box-sizing:border-box}
#kcs-world *,#kcs-world *::before,#kcs-world *::after{box-sizing:border-box}
#kcs-world a{color:inherit}
#kcs-world h1,#kcs-world h2,#kcs-world h3{line-height:1.12;margin:0 0 .5em;letter-spacing:-.02em;color:var(--ink);font-family:inherit;font-weight:700}
#kcs-world h1{font-size:clamp(1.95rem,7.6vw,3.7rem)}
#kcs-world h2{font-size:clamp(1.6rem,6.2vw,2.5rem)}
#kcs-world h3{font-size:1.2rem}
#kcs-world p{margin:0 0 1em;color:inherit}
#kcs-world .eyebrow{font-size:.8125rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;margin:0 0 1rem;color:var(--c1)}
#kcs-world .wrap{max-width:68rem;margin:0 auto;padding:0 max(16px,env(safe-area-inset-left))}
#kcs-world .btn{display:inline-block;padding:.8rem 1.25rem;border-radius:999px;font-weight:600;text-decoration:none;font-size:1rem;margin:0 .5rem .6rem 0;min-height:44px}
#kcs-world .btn1{background:var(--c2);color:#111}
#kcs-world .btn2{border:1px solid var(--c1);color:var(--c1)}
#kcs-world .chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.4rem}
#kcs-world .chips a{display:inline-block;padding:.6rem 1rem;border-radius:999px;font-size:1rem;text-decoration:none;min-height:44px;border:1px solid rgba(255,255,255,.28)}
#kcs-world .tool input{width:100%;font:inherit;font-size:1rem;padding:.9rem 1rem;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:transparent;color:inherit;min-height:48px}
#kcs-world .tool label{display:block;margin:.6rem 0}
#kcs-world .tool-head{display:flex;justify-content:space-between;gap:1rem;font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .4rem}
#kcs-world .tool-head span{color:var(--c1)}
#kcs-world .kcs-vrow{display:flex;gap:.7rem;margin:.7rem 0}
#kcs-world .kcs-vrow p{margin:0}
#kcs-world .kcs-mark{flex:0 0 1.6rem;height:1.6rem;border-radius:50%;text-align:center;line-height:1.6rem;font-weight:700;font-size:.9rem;background:#64748b;color:#fff}
#kcs-world .kcs-mark.kcs-pass{background:#16a34a}
#kcs-world .kcs-mark.kcs-fail{background:#dc2626}
#kcs-world .also{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:820px){#kcs-world .also{grid-template-columns:repeat(3,1fr)}}
#kcs-world .also h3 a{text-decoration:none}
#kcs-world .studio{font-size:.9375rem;color:var(--mut);margin-top:1.2rem}
#kcs-world.nogl{background:radial-gradient(120% 80% at 50% 0,#14213d,#05070d)}
#kcs-world.nogl canvas{display:none}
#kcs-gl{position:-webkit-sticky;position:sticky;top:0;width:100%;height:100vh;height:100svh;margin-bottom:-100vh;margin-bottom:-100svh;z-index:0;display:block;max-width:none}
#kcs-world main,#kcs-world .kcs-main{position:relative;z-index:1;display:block}
#kcs-world .st{min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;padding:3rem 0 max(2.5rem,env(safe-area-inset-bottom))}
#kcs-world .card{color:var(--ink);background:var(--card);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:1.4rem 1.25rem;max-width:34rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#kcs-world .hero .card{background:transparent;border:0;padding:0;max-width:44rem;-webkit-backdrop-filter:none;backdrop-filter:none}
#kcs-world .sub{font-size:1.15rem;color:var(--ink);text-shadow:0 1px 2px rgba(0,0,0,.9),0 0 18px rgba(0,0,0,.85)}
#kcs-world .hero .card{position:relative}#kcs-world .hero .card::before{content:"";position:absolute;inset:-1.5rem -1rem;z-index:-1;background:radial-gradient(closest-side,rgba(5,7,13,.78),rgba(5,7,13,0));pointer-events:none}
#kcs-world .card.wide{max-width:40rem}
#kcs-world .fadein{opacity:0;transform:translateY(18px);transition:opacity .7s,transform .7s}
#kcs-world .fadein.on{opacity:1;transform:none}
#kcs-world .last .card{border-color:rgba(255,183,3,.45)}
#kcs-world .last .eyebrow{color:var(--c2)}
@media(min-width:820px){#kcs-world .st{padding-bottom:4rem}#kcs-world .card{padding:2rem}#kcs-world .st .wrap{max-width:none;margin:0;padding-left:max(6vw,16px)}#kcs-world .hero .card{max-width:36rem}}
@media(prefers-reduced-motion:reduce){#kcs-world .fadein{opacity:1;transform:none;transition:none}}
/* jump menu: absolute on phones (scrolls away), sticky on desktop */
#kcs-world .menu{display:flex;flex-direction:column;align-items:flex-end;position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:5}
#kcs-world .menu button{font:inherit;font-size:1rem;font-weight:600;min-height:44px;padding:.55rem 1.1rem;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(5,7,13,.78);color:var(--ink);cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#kcs-world .menu ul{list-style:none;margin:.5rem 0 0;padding:.4rem;border-radius:16px;background:rgba(5,7,13,.94);border:1px solid rgba(255,255,255,.18);min-width:13.5rem;display:none}
#kcs-world .menu.open ul{display:block}
#kcs-world .menu li{margin:0;padding:0}
#kcs-world .menu li a{display:flex;align-items:center;gap:.6rem;min-height:44px;padding:.5rem .8rem;border-radius:10px;text-decoration:none;color:var(--ink)}
#kcs-world .menu li a::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:rgba(255,255,255,.25)}
#kcs-world .menu li a[aria-current="true"]{color:var(--c2);font-weight:600}
#kcs-world .menu li a[aria-current="true"]::before{background:var(--c2)}
#kcs-world .menu button:focus-visible,#kcs-world .menu a:focus-visible,#kcs-world .back:focus-visible,#kcs-world .btn:focus-visible,#kcs-world .chips a:focus-visible{outline:3px solid var(--c2);outline-offset:2px}
#kcs-world .back{display:inline-block;min-height:44px;padding:.5rem 0;color:var(--mut)}
@media(min-width:820px){#kcs-world .menu{position:sticky;top:12px;right:auto;height:0;margin-right:16px;margin-left:auto;width:max-content}#kcs-world .menu ul{position:absolute;top:48px;right:0}}

/* 1.4.15: phone layout. The 3D object sits in the top half, the card in the bottom part, and the canvas ends with the world so the footer stays visible. */
@media(max-width:819px){
#kcs-world .st{align-items:flex-end;padding:2rem 0 max(1.5rem,env(safe-area-inset-bottom))}
#kcs-world .card{padding:1.15rem 1.1rem;border-radius:18px;line-height:1.55;max-height:none}
#kcs-world .card p{margin:0 0 .8em}
#kcs-world .card h2{font-size:clamp(1.45rem,6vw,2.1rem)}
#kcs-world .hero .card{padding:1.1rem .5rem .2rem}
#kcs-world .hero .card::before{inset:-2rem -1.5rem;background:radial-gradient(closest-side,rgba(5,7,13,.88),rgba(5,7,13,.55) 70%,rgba(5,7,13,0))}
}
#kcs-world .tool input::placeholder{color:#c3cddc;opacity:1}

/* 1.4.21: phone layout. The 3D visual gets its own band at the top of the screen. The text sits below it and scrolls under the band, never on top of the visual. */
@media(max-width:820px){
body.page-template-gk-kcs #kcs-gl{height:47vh;height:47svh;margin-bottom:-47vh;margin-bottom:-47svh;z-index:2;background:var(--bg);border-bottom:1px solid rgba(255,255,255,.12)}
body.page-template-gk-kcs #kcs-world .st{align-items:flex-start;min-height:100vh;min-height:100svh;padding:calc(47vh + 1.25rem) 0 max(1.5rem,env(safe-area-inset-bottom))}
body.page-template-gk-kcs #kcs-world .st{padding-top:calc(47svh + 1.25rem)}
body.page-template-gk-kcs #kcs-world .wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
body.page-template-gk-kcs #kcs-world .card{max-width:none;width:100%}
body.page-template-gk-kcs #kcs-world .hero .card{padding:.5rem 0 0}
body.page-template-gk-kcs #kcs-world .hero .card::before{display:none}
}

/* 1.4.25: phone menu. The script moves the menu above the 3D band. It sits in the page flow, so it scrolls away (never pinned),
   never covers the band or the text, and the open list pushes the band down. Every item is a 44px tap target. */
@media(max-width:820px){
body.page-template-gk-kcs #kcs-world>.menu{position:relative;top:auto;right:auto;left:auto;height:auto;width:auto;margin:0;z-index:3;display:flex;flex-direction:column;align-items:flex-end;
  padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));background:var(--bg);border-bottom:1px solid rgba(255,255,255,.12)}
body.page-template-gk-kcs #kcs-world>.menu ul{position:static;width:100%;min-width:0;margin:.5rem 0 0}
body.page-template-gk-kcs #kcs-world>.menu li a{min-height:48px;font-size:1.0625rem}
}
/* 1.4.25: the site menu on this page also gets 44px tap targets on a phone. */
@media(max-width:820px){body.page-template-gk-kcs .navbar .nav-link{min-height:44px;display:flex;align-items:center}body.page-template-gk-kcs .navbar-toggler{min-width:44px;min-height:44px}}
