body{background:#050511;color:#f6f3ff}
#space-field{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.shell{position:relative}
.sidebar{background:linear-gradient(178deg,#100e20f7,#090a16ec);border-color:#27243f}
.topbar{background:#0b0c1ade;border-color:#24233b}
.panel,.card,.stat,.home-story>div{background:linear-gradient(135deg,#161428f2,#0c1121f5);border-color:#332c4b}
.card:hover{border-color:#a166e4}
:root{--cyan:#9debf8;--amber:#ffae79}
#motion-toggle{margin:0 0 10px;padding:5px 8px;font-size:10px;max-width:100%}
.hero{min-height:575px;background:#080610 url("/assets/ignition.webp") center / cover no-repeat;border-color:#514064;box-shadow:0 20px 100px #01010870}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#080714 5%,#080714df 34%,#08071426 70%,transparent),linear-gradient(0deg,#080714a0,transparent 33%);pointer-events:none}
.hero-copy{width:61%;align-self:center;padding-block:60px;z-index:2}
.hero h1{font-size:clamp(55px,8.8vw,145px);line-height:.92;letter-spacing:-.085em}
.hero h1 em{display:block;font-style:normal;color:#ffb28d;background:linear-gradient(96deg,#fff4f1,#ff9d67 55%,#ff6c4f);background-clip:text;-webkit-text-fill-color:transparent}
.hero-copy>p{max-width:430px;color:#d9d3e8}
.hero-note{color:#bfb0ce}
.hero-actions .primary{background:#ffc2a0;color:#180e20;border-color:#ffd5bc;box-shadow:0 0 28px #ff8a5835}
.flame-art{pointer-events:none;overflow:hidden}
#flame-field{position:absolute;inset:0;width:100%;height:100%;mix-blend-mode:screen}
.flame-art figcaption{color:#efe0fa;background:#0a0715d9;padding:6px 9px;border-radius:4px}
.orbit-track{position:absolute;inset:20% 9% 20% 1%;border:1px dashed #e1b1fa45;border-radius:50%;transform:rotate(-24deg)}
.astronaut-flight{position:absolute;width:clamp(36px,6vw,82px);left:68%;top:70%;filter:drop-shadow(0 0 14px #777ceaa0);animation:astronaut-drift 15s ease-in-out infinite}
.astronaut-flight img{display:block;width:100%}
.astronaut-flight::before{content:"";position:absolute;right:92%;top:26%;width:70%;height:45%;background:radial-gradient(ellipse at right,#c4f9ffbb,#99bfff50 32%,transparent 72%);transform-origin:right;animation:spray 15s linear infinite}
.ignition{position:fixed;inset:0;z-index:8;pointer-events:none;background:radial-gradient(ellipse at 70% 46%,transparent 5%,#100819 77%);animation:ignition-reveal 1s ease-out both}
.hero-copy{animation:arrival .8s ease-out both}
@keyframes ignition-reveal{from{opacity:1}to{opacity:0;visibility:hidden}}
@keyframes arrival{from{opacity:.35;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes astronaut-drift{0%,100%{transform:translate(0,0) rotate(-17deg)}32%{transform:translate(-100%,-195%) rotate(22deg)}67%{transform:translate(55%,-125%) rotate(-38deg)}}
@keyframes spray{0%,28%,47%,100%{opacity:0;transform:scale(.4)}34%,42%{opacity:.8;transform:scale(1.15)}}
.motion-paused .hero-copy,.motion-paused .ignition,.motion-paused .astronaut-flight,.motion-paused .astronaut-flight::before{animation:none}
.motion-paused .ignition{display:none}
@media(max-width:850px){.hero{min-height:465px}.hero-copy{width:70%}}
@media(max-width:650px){.hero{min-height:0;background-size:auto 75%;background-position:68% bottom}.hero::before{background:linear-gradient(#080714 30%,#0807149f 60%,transparent 86%)}.hero-copy{width:100%;padding:32px 18px 12px}.hero h1{font-size:clamp(44px,11vw,74px);overflow-wrap:normal}.flame-art{height:245px}.orbit-track{inset:14% 12% 13% 13%}#motion-toggle{font-size:8px;padding:5px 2px}}
.flame-art::before{content:"";position:absolute;inset:12% 4% 13% 2%;background:radial-gradient(ellipse,#fc7d4e28 3%,#b965f331 33%,#6268e022 48%,transparent 68%);mix-blend-mode:screen;animation:gas-pulse 6s ease-in-out infinite alternate}
@keyframes gas-pulse{0%{transform:translate(-3%,2%) scale(.86);opacity:.42}55%{transform:translate(4%,-3%) scale(1.05,.94);opacity:.9}100%{transform:translate(2%,1%) scale(.96,1.12);opacity:.55}}
.motion-paused .flame-art::before{animation:none}

.hero-copy>.challenge-title{font-size:clamp(12px,1.2vw,15px);line-height:1.45;margin:8px 0 16px;color:#ddd2ed}

/* A large gaseous flame, rising and settling inside the hero. */
.hero{min-height:clamp(570px,75vh,900px);background:radial-gradient(ellipse at 83% 61%,#180e28,#080714 68%);isolation:isolate}
.hero::before{z-index:1;background:linear-gradient(90deg,#080714 4%,#080714e8 29%,#0807149c 44%,transparent 72%),linear-gradient(0deg,#080714a8,transparent 21%)}
.hero-copy{z-index:2}
.flame-art{width:100%;overflow:hidden;display:block;z-index:0}
.fire-definitions{position:absolute}
.gas-arrival{position:absolute;width:clamp(650px,75vw,1380px);aspect-ratio:1;left:71%;top:52%;transform:translate(-50%,-50%);animation:gas-rise 3.1s cubic-bezier(.16,.77,.23,1) both;mix-blend-mode:screen}
.gas-volume,.gas-surface,.gas-eddies{position:absolute;inset:0}
.gas-volume{animation:gas-rotation 54s linear infinite}
.gas-surface{filter:url(#gas-flow)}
.gas-surface img{display:block;width:100%;height:100%;object-fit:contain;mask-image:radial-gradient(ellipse,#000 56%,#000e 65%,transparent 75%)}
.gas-eddies{background:url("/assets/gas-volume.webp") center / contain no-repeat;mix-blend-mode:screen;mask-image:radial-gradient(ellipse,transparent 14%,#000 44%,transparent 70%);animation:gas-eddy 8s ease-in-out infinite alternate;opacity:.42}
.flame-art::before,.orbit-track{display:none}
.flame-art figcaption{z-index:3;position:absolute}
.astronaut-flight{left:82%;top:76%}
#flame-field{opacity:.54}
@keyframes gas-rise{
 from{transform:translate(-50%,34%) scale(.45);opacity:.15}
 52%{opacity:1}
 to{transform:translate(-50%,-50%) scale(1);opacity:1}
}
@keyframes gas-rotation{to{transform:rotate(360deg)}}
@keyframes gas-eddy{
 from{transform:rotate(-11deg) scale(.96,.91);filter:brightness(.74)}
 to{transform:rotate(13deg) scale(1.09,1.03);filter:brightness(1.25)}
}
.motion-paused .gas-arrival,.motion-paused .gas-volume,.motion-paused .gas-eddies{animation:none}
.motion-paused .gas-surface{filter:none}
@media(max-width:850px){.gas-arrival{left:76%}.hero{min-height:510px}}
@media(max-width:650px){
 .hero{min-height:0}
 .hero::before{background:linear-gradient(180deg,#080714 12%,#0807148c 55%,transparent 76%);z-index:0}
 .flame-art{height:340px}
 .gas-arrival{width:clamp(360px,106vw,630px);left:56%;top:55%}
 .astronaut-flight{left:73%;top:77%}
}

/* EVA sequence: ignition, approach, spray, extinguishment. */
#replay-eva{margin-top:12px}
.gas-arrival,.astronaut-flight,.eva-spray{animation:none}
.astronaut-flight{width:clamp(100px,20vw,290px);left:auto;right:1%;top:auto;bottom:8%;z-index:2;transform:translate(12%,-8%) rotate(-12deg)}
.astronaut-flight::before{display:none}
.eva-spray{position:absolute;z-index:1;right:12%;bottom:30%;width:23%;height:16%;opacity:0;transform-origin:right center;border-radius:60%;background:radial-gradient(ellipse at right,#e9fdffdc,#8bd9ff8c 28%,#7875ee43 57%,transparent 72%);filter:blur(5px)}
.eva-active .gas-arrival{animation:eva-flame 11s cubic-bezier(.25,.7,.26,1) both}
.eva-active .astronaut-flight{animation:eva-approach 11s ease-in-out both}
.eva-active .eva-spray{animation:eva-suppressant 11s linear both}
@keyframes eva-flame{
 0%{transform:translate(-50%,35%) scale(.35);opacity:0}
 28%,61%{transform:translate(-50%,-50%) scale(1);opacity:1}
 75%{transform:translate(-48%,-48%) scale(.63);opacity:.85}
 91%{transform:translate(-48%,-46%) scale(.18);opacity:.58}
 96%,100%{transform:translate(-48%,-45%) scale(.06);opacity:0}
}
@keyframes eva-approach{
 0%,26%{transform:translate(80%,65%) rotate(24deg);opacity:0}
 49%{transform:translate(-21%,-23%) rotate(-19deg);opacity:1}
 62%,83%{transform:translate(-28%,-28%) rotate(-23deg);opacity:1}
 100%{transform:translate(12%,-8%) rotate(-12deg);opacity:1}
}
@keyframes eva-suppressant{
 0%,58%,95%,100%{opacity:0;transform:translate(-3%,-8%) rotate(22deg) scale(.3)}
 64%,77%{opacity:.82;transform:translate(-17%,-64%) rotate(22deg) scale(1.25)}
 88%{opacity:.42;transform:translate(-21%,-74%) rotate(22deg) scale(1.45)}
}
@media(max-width:650px){.astronaut-flight{width:clamp(90px,28vw,170px);right:3%;bottom:10%}.eva-spray{width:32%;right:16%}}
.eva-active .gas-surface img{animation:eva-heat 11s linear both}
@keyframes eva-heat{
 0%,54%{filter:brightness(1) saturate(1.02)}
 63%{filter:brightness(1.21) saturate(1.17)}
 86%{filter:brightness(.8) saturate(.72)}
 100%{filter:brightness(.4) saturate(.48)}
}
.motion-paused .gas-surface img{animation:none}

/* The live projection uses the Blender suit's depth-sorted 3D mesh. */
#eva-projection{display:none;width:100%;height:100%;position:absolute;inset:0}
.astronaut-flight.mesh-ready>img{visibility:hidden}
.astronaut-flight.mesh-ready #eva-projection{display:block}
.astronaut-flight.mesh-ready{filter:drop-shadow(0 0 11px #63edff9a)}
.astronaut-flight.mesh-ready::after{content:"";position:absolute;inset:5% 5% 9%;background:repeating-linear-gradient(0deg,transparent 0 5px,#6ff7ff55 6px,transparent 8px);mix-blend-mode:screen;mask-image:radial-gradient(ellipse,#000 17%,transparent 71%)}
.flame-art::after{content:"";position:absolute;inset:auto 0 0;height:33%;background:repeating-linear-gradient(90deg,transparent 0 51px,#59d3e42b 52px,transparent 53px),repeating-linear-gradient(0deg,transparent 0 32px,#59d3e42c 33px,transparent 34px);transform:perspective(330px) rotateX(55deg) scale(1.3);transform-origin:bottom;mask-image:linear-gradient(transparent,#000 80%)}
#eva-projection{display:block;visibility:hidden}
.astronaut-flight.mesh-ready #eva-projection{visibility:visible}

@keyframes eva-approach{
 0%,28%{transform:translate(12%,-8%) rotate(-12deg);opacity:1}
 49%,83%{transform:translate(-28%,-28%) rotate(-23deg);opacity:1}
 100%{transform:translate(12%,-8%) rotate(-12deg);opacity:1}
}
#eva-guide{margin-top:12px}
#eva-chat{position:fixed;right:18px;bottom:18px;left:auto;top:auto;margin:0;max-width:420px;max-height:85dvh;border:1px solid #65d8ee77;border-radius:14px;background:#0b1324;color:#eef7ff;padding:18px}
#eva-chat header{display:flex;align-items:center;gap:12px}
#eva-chat header img{width:55px;height:68px;object-fit:contain;filter:drop-shadow(0 0 6px #5bdbff)}
#eva-chat header button{margin-left:auto}
#eva-chat-form{display:flex;gap:8px;flex-wrap:wrap}
#eva-chat-form input[type=search]{flex:1;min-width:130px}
#eva-chat-ai-label{width:100%}
#eva-chat-log{max-height:42dvh;overflow:auto;padding:6px 0 14px}
#eva-chat-log article{padding:10px 0;border-bottom:1px solid #324863}
#eva-chat-log a{display:block}
#eva-guide-global{position:fixed;right:18px;bottom:18px;z-index:4;box-shadow:0 0 22px #51c9ff40}
.astronaut-flight.mesh-ready.guide-thinking{filter:drop-shadow(0 0 24px #9df5ff)}
#eva-guide-global[hidden],#eva-chat-ai-label[hidden]{display:none}

/* Keep the detailed EVA suit legible against the effects. */
#collision-field{position:fixed;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.astronaut-flight>img{visibility:visible;filter:drop-shadow(0 0 7px #63edff78)}
.astronaut-flight.guide-thinking>img{filter:drop-shadow(0 0 17px #9df5ff)}
.motion-paused #collision-field{display:none}

.astronaut-flight{padding:0;border:0;background:none;pointer-events:auto;cursor:pointer}
.astronaut-flight:hover>img,.astronaut-flight:focus-visible>img{filter:drop-shadow(0 0 12px #81f2ff)}
.eva-controls{margin-top:12px}
.eva-controls button{padding:6px 8px;margin:4px 4px 0 0;color:#ecf5ff;background:#172744;border:1px solid #587b97;border-radius:5px}
.eva-voice{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#eva-voice-status{width:100%;margin:0;color:#bad6eb}
.eva-speaking header img{animation:eva-speaking .95s ease-in-out infinite alternate}
@keyframes eva-speaking{to{transform:translateY(-3px);filter:drop-shadow(0 0 13px #65f6ff)}}
.eva-active .astronaut-flight[data-move],.astronaut-flight[data-move]{animation-duration:5.2s;animation-timing-function:ease-in-out;animation-fill-mode:both}
.eva-active .astronaut-flight[data-move=walk],.astronaut-flight[data-move=walk]{animation-name:eva-walk}
.eva-active .astronaut-flight[data-move=fly],.astronaut-flight[data-move=fly]{animation-name:eva-fly}
.eva-active .astronaut-flight[data-move=clap],.astronaut-flight[data-move=clap]{animation-name:eva-clap;animation-duration:2.5s}
.eva-active .astronaut-flight[data-move=burst],.astronaut-flight[data-move=burst]{animation-name:eva-clap}
.eva-active .astronaut-flight[data-move=rocket],.astronaut-flight[data-move=rocket]{animation-name:eva-rocket}
@keyframes eva-walk{0%,100%{transform:translateX(0)}37%,55%{transform:translateX(-19vw)}}
@keyframes eva-fly{0%,100%{transform:translate(0,0)}29%{transform:translate(-20vw,-90%) rotate(-26deg)}65%{transform:translate(-9vw,-155%) rotate(28deg)}}
@keyframes eva-clap{0%,100%{transform:translateY(0)}45%,65%{transform:translateY(-9%)}}
@keyframes eva-rocket{0%,100%{transform:translate(0,0)}28%,65%{transform:translate(-17vw,-130%) rotate(-31deg)}}
.eva-action-effect{pointer-events:none;position:absolute}
[data-move=burst] .eva-action-effect{width:120%;height:26%;right:55%;top:40%;background:radial-gradient(ellipse at right,#fff4cc,#ff7a42 20%,#ff403b88 38%,transparent 70%);animation:eva-burst .65s linear 6 both}
@keyframes eva-burst{from{transform:scale(.3);opacity:0}40%{opacity:1}to{transform:translateX(-30%) scale(1.4);opacity:0}}
[data-move=rocket] .eva-action-effect{left:31%;bottom:-3%;height:45%;width:27%;background:url('/assets/eva-rocket.svg') center/contain no-repeat}
.palm-ready.eva-active .eva-spray{animation:none}
@keyframes eva-approach{
 0%,22%{transform:translate(12%,-8%) rotate(-6deg)}
 49%,84%{transform:translate(-28%,-28%) rotate(-6deg)}
 100%{transform:translate(12%,-8%) rotate(-6deg)}
}

#eva-scroll-guide{position:fixed;right:14px;bottom:16px;z-index:6;width:114px;padding:6px;background:#09182ae8;color:#d9fbff;border:1px solid #65d8ee96;border-radius:12px;box-shadow:0 0 22px #51c9ff40;animation:eva-hover 2.8s ease-in-out infinite alternate}
#eva-scroll-guide[hidden]{display:none}
#eva-scroll-guide img{display:block;width:100%;height:116px;object-fit:contain}
#eva-scroll-guide span{display:block;font-weight:700;padding:4px}
@keyframes eva-hover{to{transform:translateY(-9px)}}
.motion-paused #eva-scroll-guide{animation:none}
@media(max-width:650px){#eva-scroll-guide{width:76px}#eva-scroll-guide img{height:77px}}

#eva-workspace-guide{position:fixed;bottom:16px;right:16px;z-index:5;display:grid;justify-items:center;gap:3px}
#eva-workspace-guide[hidden]{display:none}
#eva-workspace-guide #eva-guide-global{position:static}
#eva-wave{position:relative;padding:0;border:0;background:none;cursor:pointer;animation:eva-hover 2.8s ease-in-out infinite alternate}
#eva-wave img{display:block;width:108px;height:143px;object-fit:contain;filter:drop-shadow(0 0 9px #6ce7fa75)}
#eva-wave span{position:absolute;right:-3px;top:10px;padding:3px 7px;border:1px solid #65d8ee96;border-radius:10px;background:#102637;color:#e3fbff}
.motion-paused #eva-wave{animation:none}
@media(max-width:650px){#eva-wave img{width:76px;height:98px}}
