@import url('fonts.css');
@import url('suspension-v2.css');
body{background:#20292f;color:#f4eddd;font-family:'Space Grotesk',Arial,sans-serif}#space{position:fixed;inset:0;opacity:0;background:radial-gradient(ellipse at 58% 43%,#394448,#20292f 65%,#182126);overflow:hidden}.galaxy{position:absolute;inset:-20%;background:url('galaxie-graphite-v46.webp') center/cover no-repeat;filter:invert(1);mix-blend-mode:screen;opacity:.22;animation:space-drift 50s ease-in-out infinite alternate}.stars{position:absolute;inset:0;animation:star-drift 60s linear infinite alternate}.stars i{position:absolute;aspect-ratio:1;background:#eee8da;border-radius:50%;box-shadow:0 0 3px #e8e5c24d}#stage{background:transparent}#balloons{pointer-events:none}#balloon-targets{position:fixed;inset:0;pointer-events:none;z-index:6}.balloon-hit{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border-radius:50%;padding:0;background:transparent;border:2px solid transparent;min-height:44px;cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M10 3h12l-3 6v7l4 4H9l5-5V9Z' fill='%23dccaa7' stroke='%23383d42' stroke-width='1.4'/%3E%3Cpath d='M16 20v10' stroke='%23f9f1de' stroke-width='2'/%3E%3C/svg%3E") 16 30,pointer}.balloon-hit:hover{background:radial-gradient(ellipse,#fff3,transparent 70%)}.balloon-hit:focus-visible{outline:2px dashed #f3daa0;outline-offset:4px}.balloon-hit[hidden]{display:none}.study{color:#f4eddd}.study p{color:inherit;text-shadow:0 1px 8px #20292f}.study p:first-child{font-size:10px;opacity:.7}body[data-phase=ascent] .study{color:#41483e}.skip-intro{position:fixed;top:20px;right:25px;z-index:15;color:#f4eddd;background:#253239b3;border-color:#a8afa166;font-size:11px}#invitation{position:fixed;top:37%;left:66%;width:260px;z-index:7;padding:22px;background:#f4efdf;color:#37413b;border:1px solid #b9b9a6;border-radius:22px 22px 22px 4px;box-shadow:0 6px 35px #0002}#invitation h1{font-family:'Caveat',cursive;font-size:29px;margin:0 0 12px}#invitation p{font-size:12px;line-height:1.6;margin:0 0 10px}#invitation #counter{margin:0;font-size:10px;letter-spacing:.04em;color:#657365}#result{position:fixed;left:6%;top:27%;max-width:400px;z-index:7;animation:result-in .65s ease both}#result h2{font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(32px,4vw,52px);font-weight:500;line-height:1.12}#result h2 em{font-family:'Caveat',cursive;font-weight:400}#result p{font-size:14px;line-height:1.8}#result a{display:inline-block;margin-top:16px;padding:12px 0;color:inherit;text-underline-offset:6px}.study-controls{left:20px;right:auto;bottom:12px;border:0;padding:0;background:transparent;gap:8px}.study-controls button{font-size:11px;color:#f4eddd;background:#26343abf;border-color:#a8afa166}.study-controls[hidden],[hidden]{display:none!important}#planet{bottom:40px}.study-note{display:none}@keyframes space-drift{from{transform:translate(-10px,8px) rotate(-2deg)}to{transform:translate(18px,-14px) rotate(1deg)}}@keyframes star-drift{to{transform:translate(8px,14px)}}@keyframes result-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}body[data-phase=ascent] .study-controls button{color:#36423b;background:#f4efdfd9}@media(max-width:600px){#planet{bottom:60px;left:54%;width:min(78vw,340px)}.skip-intro{top:15px;right:12px;font-size:10px;padding:6px 10px;min-height:36px}.study{max-width:48%;left:14px}.study #phase{font-size:10px;line-height:1.5}#invitation{top:auto;bottom:105px;left:8%;width:84%;padding:16px 20px}#invitation h1{font-size:26px;margin-bottom:6px}#invitation p{font-size:11px;margin-bottom:6px}#result{left:7%;right:7%;top:20%;max-width:none}#result h2{font-size:35px;margin-bottom:16px}#result p{font-size:12px;max-width:320px}.study-controls{left:12px}}@media(max-height:620px){#planet{width:min(28vw,180px);bottom:36px}#invitation{top:30%;left:auto;right:3%;bottom:auto;width:230px;padding:16px}#result{top:21%;max-width:320px}#result h2{font-size:30px;margin:0 0 12px}#result p{font-size:11px}}@media(prefers-reduced-motion:reduce){.galaxy,.stars,#result{animation:none!important}}
body.motion-paused .galaxy,body.motion-paused .stars{animation-play-state:paused}@media(max-width:600px) and (min-height:621px){#invitation{top:52%;bottom:auto}}

/* The invitation belongs to the scene, without a panel or an interactive surface. */
#invitation{top:30%;left:66%;right:auto;bottom:auto;width:min(30vw,360px);padding:0;background:none;border:0;border-radius:0;box-shadow:none;color:#f5edda;pointer-events:none;transform-origin:25% 50%;animation:invitation-appear .7s ease both,invitation-float 7s ease-in-out .7s infinite alternate}
#invitation h1{font:400 clamp(40px,4.7vw,62px)/1.04 'Caveat',cursive;margin:0;letter-spacing:-.02em;text-shadow:0 2px 14px #101a224d}
#invitation h1 span{display:block;font-size:.55em;line-height:1.3;letter-spacing:0;margin-top:17px;color:#d9ded1}
#invitation #counter{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes invitation-appear{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:blur(0)}}
@keyframes invitation-float{from{transform:translate3d(0,-5px,0) rotate(-1deg)}to{transform:translate3d(3px,5px,0) rotate(.4deg)}}
body.motion-paused #invitation{animation-play-state:paused}
@media(max-width:600px){#invitation{top:52%;left:8%;right:auto;bottom:auto;width:84%;padding:0;text-align:center;transform-origin:center}#invitation h1{font-size:44px;line-height:1}#invitation h1 span{font-size:25px;margin-top:12px}}
@media(max-height:620px){#invitation{top:29%;left:auto;right:3%;bottom:auto;width:27%;padding:0;text-align:left}#invitation h1{font-size:36px}#invitation h1 span{font-size:23px;margin-top:10px}}
@media(prefers-reduced-motion:reduce){#invitation{animation:none;transform:none}}

/* Camera rises through a continuous atmosphere, revealing the permanent space. */
#space{opacity:1}
.intro-clouds{background:transparent;opacity:1;mask-image:none!important}
.atmosphere{position:absolute;z-index:0;left:0;right:0;top:-200vh;height:300vh;will-change:transform;background:none;pointer-events:none}
body[data-phase=ascent][data-altitude=space] .study{color:#f4eddd}
@media(prefers-reduced-motion:reduce){.atmosphere{will-change:auto}}

/* The sky stays pale blue between cloud banks. Its cloud-shaped upper edge
   travels down with the scene, exposing space above it rather than fading. */
.atmosphere{top:-90vh;height:210vh;background:#b7d4df;mask-image:url('cloud-bank.webp'),linear-gradient(#000,#000);mask-mode:alpha,alpha;mask-repeat:no-repeat,no-repeat;mask-size:170% 85vh,100% calc(100% - 32vh);mask-position:center top,center bottom}

.atmosphere{left:-35vw;right:auto;width:170vw;background:none;mask-image:none}
.sky-fill{position:absolute;inset:0;background:#b7d4df;clip-path:url(#cloud-sky-profile)}
.sky-edge{position:absolute;top:0;left:0;width:100%;height:85vh;object-fit:fill;pointer-events:none}
.atmosphere{filter:blur(3px)}

/* A perceptible, continuous rotation; the other planes keep their own rhythm. */
.galaxy{inset:auto;left:59%;top:48%;width:max(150vw,150vh);height:auto;aspect-ratio:1;transform-origin:50% 50%;opacity:.25;animation:galaxy-orbit 240s linear infinite;will-change:transform}
.nebula{position:absolute;inset:-15%;background:url('galaxie-graphite-v46.webp') 38% 62%/cover no-repeat;filter:invert(1);mix-blend-mode:screen;opacity:.065;animation:nebula-breathe 24s ease-in-out infinite alternate;pointer-events:none}
.stars{animation:stellar-depth 42s ease-in-out infinite alternate}
.stars i{opacity:var(--low);animation:stellar-shimmer var(--period) ease-in-out var(--delay) infinite alternate;box-shadow:0 0 3px #e8e5c240}
.stars .star-far{box-shadow:none}
.stars .star-near:after{content:'';position:absolute;inset:-3px;background:radial-gradient(ellipse,#f5eedb20,transparent 70%);pointer-events:none}
@keyframes galaxy-orbit{from{transform:translate(-50%,-50%) rotate(-10deg)}to{transform:translate(-50%,-50%) rotate(350deg)}}
@keyframes nebula-breathe{from{transform:translate(-12px,10px) scale(1)}to{transform:translate(16px,-12px) scale(1.035)}}
@keyframes stellar-depth{from{transform:translate(-4px,-3px)}to{transform:translate(9px,6px)}}
@keyframes stellar-shimmer{from{opacity:var(--low)}to{opacity:var(--high)}}
.sky-fill{will-change:transform}
body.motion-paused .nebula,body.motion-paused .stars i{animation-play-state:paused}
body.scene-hidden #space *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.galaxy,.nebula,.stars,.stars i{animation:none!important;will-change:auto}.galaxy{transform:translate(-50%,-50%) rotate(-10deg)}.stars i{opacity:var(--high)}}

/* Travel through depth rather than rotating a flat image on its centre. */
#space{background:radial-gradient(ellipse at 76% 25%,#273843 0%,#1b262e 55%,#141e26 100%)}
.galaxy{inset:-18% -15%;left:-15%;top:-18%;width:auto;height:auto;aspect-ratio:auto;background-size:100% auto;background-position:center top;filter:none;opacity:.28;mask-image:linear-gradient(90deg,transparent 4%,#000 35%);animation:galactic-current 26s ease-in-out infinite alternate;transform-origin:70% 30%}
.nebula{inset:-12%;background-image:url('prototype-espace/poussiere-graphite.webp');background-position:25% 80%;filter:blur(2px);opacity:.055;mask-image:radial-gradient(ellipse at 35% 80%,#000,transparent 65%);animation:nebular-current 34s ease-in-out infinite alternate}
.stars{animation:none}
.star-plane{position:absolute;inset:-4%;pointer-events:none}
.plane-far{animation:stars-distant 44s ease-in-out infinite alternate}
.plane-mid{animation:stars-middle 32s ease-in-out infinite alternate}
.plane-near{animation:stars-close 24s ease-in-out infinite alternate}
.stars i{background:var(--star-color);animation:stellar-shimmer var(--period) ease-in-out var(--delay) infinite alternate}
.stars .star-near{box-shadow:0 0 5px #efe6ca80}
.stars .star-near:before{content:'';position:absolute;width:1px;height:9px;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(transparent,#fff8dc60,transparent)}
.stars .star-near:after{content:'';position:absolute;width:9px;height:1px;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent,#fff8dc50,transparent)}
@keyframes galactic-current{from{transform:translate(14px,8px) rotate(-1deg) scale(1.01)}to{transform:translate(-32px,-16px) rotate(.6deg) scale(1.035)}}
@keyframes nebular-current{from{transform:translate(8px,7px)}to{transform:translate(-22px,-11px)}}
@keyframes stars-distant{to{transform:translate(-5px,-3px)}}
@keyframes stars-middle{to{transform:translate(-14px,-7px)}}
@keyframes stars-close{to{transform:translate(-26px,-12px)}}
body.motion-paused .star-plane{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.galaxy,.nebula,.star-plane,.stars i{animation:none!important}.galaxy{transform:none}}

.galaxy{animation-delay:-9s}
.nebula{animation-delay:-14s}
.plane-far{animation-delay:-19s}.plane-mid{animation-delay:-7s}.plane-near{animation-delay:-11s}
@media(max-width:600px){.galaxy{inset:-12% -32%;left:-32%;top:-12%;background-size:auto 90%;background-position:75% 10%;opacity:.22;mask-image:linear-gradient(180deg,#000 0%,#000 75%,transparent 100%)}}

.contact-shadow{position:absolute;height:8px;z-index:1;transform:translate(-50%,-40%);border-radius:50%;background:radial-gradient(ellipse,#343e3c 0%,#343e3c80 35%,transparent 72%);pointer-events:none;opacity:0}
