/* Homepage hero only. Loaded exclusively by home.html. */
.kh-hero{--kh-yellow:#ffda00;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(310px,1fr) minmax(220px,.65fr) 285px;gap:24px;align-items:center;min-height:660px;padding:60px 36px;overflow:hidden;background:#0a1013;color:#fff;border-bottom:3px solid var(--kh-yellow);font-family:Arial,Helvetica,sans-serif}
.kh-hero::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(3,7,9,.96) 0%,rgba(3,7,9,.8) 28%,rgba(3,7,9,.12) 61%,rgba(3,7,9,.58) 100%),linear-gradient(0deg,rgba(3,7,9,.82),transparent 60%),url('assets/refinery-projection.png') center/cover no-repeat}
.kh-character{position:absolute;z-index:-1;height:104%;width:auto;max-width:none;bottom:-15%;left:28%;filter:drop-shadow(0 12px 30px #0008);pointer-events:none}
.kh-copy{grid-column:1;z-index:1}.kh-brand{display:flex;align-items:center;gap:12px;margin:0 0 25px;font-size:12px;font-weight:800;letter-spacing:3px}.kh-brand::before,.kh-model h2::before{content:"";width:25px;height:3px;background:var(--kh-yellow);flex-shrink:0}
.kh-copy h1{font-size:clamp(55px,5.5vw,84px);font-weight:900;letter-spacing:-3px;line-height:.98;margin:0 0 25px;color:#fff}.kh-copy h1 span{color:var(--kh-yellow)}
.kh-tagline{font-size:clamp(18px,1.7vw,24px);font-weight:700;line-height:1.3;margin:0 0 18px;letter-spacing:-.4px}.kh-support{max-width:360px;font-size:14px;line-height:1.6;color:#e0e3e4;margin:0 0 27px}
.kh-actions{display:flex;flex-wrap:wrap;gap:10px}.kh-actions a,.kh-actions button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:12px 18px;border-radius:4px;font:700 14px Arial,sans-serif;text-decoration:none;cursor:pointer;transition:background .2s,transform .2s}.kh-actions svg{width:20px;height:20px;flex-shrink:0}.kh-start{background:var(--kh-yellow);color:#080b0e;border:1px solid var(--kh-yellow)}.kh-watch{background:#060b0dcc;border:1px solid #b5bec1;color:#fff}.kh-start:hover{background:#ffea66}.kh-watch:hover{background:#263033}.kh-actions a:focus-visible,.kh-hero button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.kh-model{grid-column:3;padding:24px 18px;border:1px solid #889397;border-radius:6px;background:rgba(5,10,13,.92);box-shadow:0 16px 40px #0005;backdrop-filter:blur(8px)}.kh-model h2{display:flex;align-items:center;gap:10px;margin:0 0 20px;font-size:14px;line-height:1.4;letter-spacing:.3px;color:#fff}.kh-model ol{list-style:none;padding:0;margin:0;display:grid;gap:10px}.kh-model li{display:flex;align-items:center;gap:14px;border:1px solid #485257;border-radius:4px;padding:14px 10px}.kh-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;background:var(--kh-yellow);color:#070c0e;border-radius:50%}.kh-icon svg{width:24px;height:24px}.kh-model li strong{display:block;font-size:14px;margin-bottom:4px}.kh-model li div>span{display:block;font-size:12px;line-height:1.4;color:#e0e4e6}.kh-model>p{border-top:1px solid var(--kh-yellow);padding-top:18px;margin:22px 0 0;font-size:13px;line-height:1.6;font-weight:700}
.kh-demo-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
@media(min-width:1500px){.kh-character{left:33%}}
@media(max-width:1100px){.kh-hero{grid-template-columns:minmax(280px,1fr) 255px;min-height:650px;padding:45px 24px;gap:20px}.kh-copy{max-width:365px}.kh-model{grid-column:2;align-self:end;margin-top:190px}.kh-character{left:27%;height:100%;bottom:-8%}.kh-copy h1{font-size:64px}}
@media(max-width:700px){.kh-hero{grid-template-columns:1fr;padding:36px 22px 24px;gap:28px;min-height:0}.kh-copy{max-width:100%;padding-top:5px}.kh-copy h1{font-size:clamp(48px,12vw,68px);letter-spacing:-2px;max-width:290px}.kh-brand{margin-bottom:24px}.kh-tagline{max-width:290px;font-size:20px;text-shadow:0 2px 10px #000}.kh-support{max-width:260px}.kh-character{height:490px;left:auto;right:-170px;top:20px;bottom:auto;opacity:.55}.kh-hero::before{background:linear-gradient(90deg,#030709ef,#03070990),url('assets/refinery-projection.png') 57% top/auto 580px no-repeat}.kh-model{grid-column:1;margin-top:0;padding:20px;background:#080e12f5}.kh-model ol{gap:8px}.kh-model li{padding:10px 12px}.kh-model>p{margin-top:16px;padding-top:14px}.kh-actions{gap:10px}.kh-actions a,.kh-actions button{flex:1;padding:12px 10px;gap:10px;font-size:13px}.kh-demo-head{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.kh-actions a,.kh-actions button{transition:none}}
/* Bring the pointing character and model panel together without shifting the hero grid. */
@media(min-width:701px){.kh-character{transform:translateX(20px) scale(1.05);transform-origin:bottom center}.kh-model{transform:translateX(-20px)}}
.kh-demo{width:min(880px,92vw);max-height:90dvh;padding:20px;background:#0b1115;color:white;border:1px solid #647077;border-radius:8px;overflow:auto}
.kh-demo::backdrop{background:#000c;backdrop-filter:blur(5px)}
.kh-demo h2{font-size:18px;margin:0}
.kh-close{color:white;background:#263038;border:1px solid #78848b;border-radius:4px;padding:10px 14px;cursor:pointer;font:inherit}
.kh-demo video{display:block;width:100%;max-height:65dvh;background:#000}
.kh-video-status{font-size:13px;margin:10px 0 0}
.kh-video-status:empty{display:none}
.kh-demo h2{font-size:16px}
