/* Home page only. The poster below is what you see with no JS, no WebGL, reduced motion or a slow connection. */
body.home{--ink:#FFF6E5;--cream:#0c0a16;--surface:#17120A;--muted:#D2C4A6;--green:#6FD79A;overflow-x:clip;
background:radial-gradient(60% 45% at 78% 28%,rgba(255,190,100,.38),rgba(255,160,60,0) 70%),linear-gradient(#0c0a16,#141022 70%,#0c0a16)}
#stage{position:fixed;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .8s;z-index:0}
.gl #stage{opacity:1}
body.home header,body.home main{max-width:72rem}
body.home header{position:fixed;top:0;left:0;right:0;z-index:3}
body.home main,body.home footer{position:relative;z-index:1}
body.home footer{max-width:none;margin-top:0;background:#0c0a16;padding-inline:max(1rem,calc((100% - 72rem)/2 + 1rem))}
.brand{display:block;line-height:0}
.brand img{display:block;height:28px;width:auto}
header nav{display:flex;align-items:center;gap:1rem}
header nav a{margin-left:0}
.btn{line-height:1.15}
.btn small{display:block;font-size:.7rem;font-weight:600;opacity:.75}
.btn.sm{min-height:0;padding:.45rem .9rem;box-shadow:2px 2px 0 #141414;color:#141414;text-decoration:none}
.btn.alt{background:#FFF6E5}
.cta{display:flex;flex-wrap:wrap;gap:.9rem;margin:1.5rem 0 .5rem}
.cta .btn{min-width:11rem;transition:transform .15s,box-shadow .15s}
.cta .btn:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 #141414}
.scene{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:6rem 0 3rem}
.hero h1{font-size:clamp(2.2rem,6vw,4.5rem);line-height:1.05;max-width:14ch;margin:1rem 0 .5rem;text-shadow:0 2px 18px #0c0a16}
.hero .lead{max-width:32rem;text-shadow:0 1px 12px #0c0a16}
.home .card{max-width:26rem;box-shadow:4px 4px 0 var(--keke)}
.home .card h2{margin-top:0}
.hint{display:none;margin:.25rem 0 0;font-size:.85rem;color:var(--muted)}
.gl .hint{display:block}
.clicked .hint{display:none}
/* hero intro: words rise out of a mask, a status line cycles like a loader */
.w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.1em}
.w>span{display:inline-block;transform:translateY(110%);animation:wup .9s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(var(--i)*80ms + 150ms)}
@keyframes wup{to{transform:none}}
.status{position:relative;width:15.5rem;height:2rem;margin:0;border:2px solid var(--keke);border-radius:99px;font-size:.85rem;font-weight:600;overflow:hidden}
.status::before{content:"";position:absolute;left:.8rem;top:50%;width:.5rem;height:.5rem;margin-top:-.25rem;border-radius:50%;background:var(--keke);animation:pulse 1.2s infinite}
.status span{position:absolute;left:2rem;right:.5rem;top:0;line-height:calc(2rem - 4px);opacity:0;animation:cycle 8s infinite}
.status span:nth-child(2){animation-delay:2s}.status span:nth-child(3){animation-delay:4s}.status span:nth-child(4){animation-delay:6s}
@keyframes cycle{0%{opacity:0;transform:translateY(70%)}4%,22%{opacity:1;transform:none}26%,100%{opacity:0;transform:translateY(-70%)}}
@keyframes pulse{50%{opacity:.25}}
/* ticker band */
.ticker{position:relative;left:50%;width:106vw;transform:translateX(-50%) rotate(-1.5deg);overflow:hidden;background:var(--keke);color:#141414;padding:.7rem 0;margin:1rem 0;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:1.05rem}
.track{display:flex;width:max-content;animation:tick 40s linear infinite}
.track span{padding:0 1.2rem}
.track i{width:.55rem;height:.55rem;margin:auto 0;background:#141414;border-radius:50%}
@keyframes tick{to{transform:translateX(-50%)}}
/* scroll reveals (only when main.ts decided this device gets the effects) */
.fx .rv{opacity:0;transform:translateY(32px) scale(.97);transition:opacity .7s,transform .8s cubic-bezier(.2,.8,.2,1)}
.fx .rv.in{opacity:1;transform:none}
@media (max-width:700px){.scene{justify-content:flex-end;padding-bottom:2.5rem}.hero{justify-content:center}.hide-sm{display:none}}
@media (prefers-reduced-motion:reduce){.w>span{transform:none;animation:none}.status span,.status::before,.track{animation:none}.status span:first-child{opacity:1}}
/* Lenis smooth scroll */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
