.ascent-effects[hidden],.ascent-obstacle[hidden],.ascent-fragments[hidden]{display:none}
.journey.is-ascent{height:calc(var(--view-height) + var(--scroll-distance))}
.is-ascent .story-window{
  position:sticky;top:var(--header-height);
  height:var(--view-height);overflow:clip;isolation:isolate;
  background:linear-gradient(#c7e8f7,#eaf3d9);
}
.is-ascent .chapters{display:contents}
.is-ascent :is(.hero,.chapter){
  --center-gap:clamp(92px,10vw,154px);
  --screen:#e6f4d6;
  display:grid;grid-template:1fr / minmax(0,1fr) var(--center-gap) minmax(0,1fr);
  position:absolute;inset:0;min-height:0;width:100%;
  align-items:center;align-content:center;gap:0;
  padding:18px var(--gutter);
  background:radial-gradient(ellipse at 52% 45%,#fff7,transparent 64%),var(--screen);
  transform:translate3d(0,var(--panel-y,101%),0);
  pointer-events:none;
}
.is-ascent .hero{--screen:#c9ebf8;transform:translate3d(0,var(--panel-y,0%),0)}
.is-ascent #asteroids{--screen:#e0eff9}
.is-ascent #black-hole{--screen:#eee6f7}
.is-ascent #cats{--screen:#f8e9f1}
.is-ascent #horses{--screen:#e9f3d4}
.is-ascent #telemetry{--screen:#e3f2f5}
.is-ascent #grand-prix{--screen:#f9ead1}
.is-ascent #awards{--screen:#fbefcf}
.is-ascent #orbit{--screen:#e0f0f9}
.is-ascent #final{--screen:#e8f4da}
.is-ascent .panel-visible{pointer-events:auto}
.is-ascent :is(.hero-copy,.chapter-copy,.final-copy){grid-area:1/1;margin:0;padding:0;max-width:640px}
.is-ascent :is(.hero-art,.motion-stage){
  grid-area:1/3;max-width:620px;justify-self:center;
  width:100%;min-width:0;max-height:calc(var(--view-height) * .73);
}
.is-ascent .hero-art{width:min(100%,calc(var(--view-height) * .78))}
.is-ascent :is(.chapter:nth-child(even),.final) :is(.chapter-copy,.final-copy){grid-area:1/3;padding:0}
.is-ascent :is(.chapter:nth-child(even),.final) .motion-stage{grid-area:1/1}
.is-ascent .motion-stage{overflow:visible}
.is-ascent .chapter blockquote{margin-top:clamp(12px,2vh,22px)}
.is-ascent .panel-copy-in :is(.hero-copy,.chapter-copy,.final-copy)>*{animation:text-arrive .52s cubic-bezier(.22,.75,.3,1) both}
.is-ascent .panel-copy-in :is(.hero-copy,.chapter-copy,.final-copy)>h2,
.is-ascent .panel-copy-in .hero-copy>h1{animation-delay:45ms}
.is-ascent .panel-copy-in :is(.hero-copy,.chapter-copy,.final-copy)>:nth-child(n+3){animation-delay:105ms}
.is-ascent .panel-copy-in :is(.hero-copy,.chapter-copy,.final-copy)>:nth-child(n+4){animation-delay:175ms}
@keyframes text-arrive{
  from{opacity:.15;translate:0 -14px;filter:blur(2px)}
  to{opacity:1;translate:0 0;filter:blur(0)}
}
.ascent-effects{position:absolute;inset:0;z-index:5;pointer-events:none}
.journey-rocket{
  position:absolute;left:50%;top:0;width:clamp(41px,5vw,72px);
  translate:-50% var(--rocket-y,48svh);transform-origin:50% 30%;
}
.journey-rocket img{width:100%;image-rendering:pixelated;filter:drop-shadow(4px 6px #6539402e)}
.journey-rocket::after{
  position:absolute;content:"";left:50%;top:85%;width:8px;height:clamp(24px,5vh,56px);
  translate:-50% 0;background:repeating-linear-gradient(to bottom,#d48462 0 5px,transparent 5px 11px);
  mask-image:linear-gradient(#000,transparent);
  animation:exhaust 550ms steps(3,end) infinite alternate;
}
@keyframes exhaust{to{scale:.7 1.22;opacity:.58}}
.ascent-obstacle,.ascent-fragments{
  position:absolute;left:50%;top:0;
  translate:-50% var(--obstacle-y,0px);
}
.ascent-obstacle{
  width:clamp(44px,6vw,78px);aspect-ratio:1;
  background:var(--stone,#886e86);box-shadow:inset -9px -8px var(--edge,#614f70),inset 8px 8px var(--shine,#b096a7);
  clip-path:polygon(18% 0,74% 0,74% 11%,88% 11%,88% 25%,100% 25%,100% 74%,87% 74%,87% 88%,74% 88%,74% 100%,25% 100%,25% 88%,12% 88%,12% 75%,0 75%,0 25%,12% 25%,12% 12%,18% 12%);
}
.ascent-obstacle::after{content:"";position:absolute;inset:25% 30% 25% 25%;background:linear-gradient(145deg,var(--shine) 0 30%,transparent 31% 62%,var(--edge) 63%)}
.ascent-effects[data-obstacle="wood"]{--stone:#ae7953;--edge:#886047;--shine:#d19d6a}
.ascent-effects[data-obstacle="stone"]{--stone:#8b819a;--edge:#655b78;--shine:#bda9c7}
.ascent-effects[data-obstacle="ice"]{--stone:#87bfcc;--edge:#6294b0;--shine:#c1e6e7}
.ascent-fragments i{
  position:absolute;width:var(--piece-size);aspect-ratio:1;
  background:var(--stone);border-top:2px solid var(--shine);border-right:2px solid var(--edge);
}
@media(max-width:800px){
  .is-ascent :is(.hero,.chapter,.chapter:nth-child(even),.final){
    grid-template:minmax(0,1fr) minmax(0,.7fr) / minmax(0,1fr);
    align-content:stretch;align-items:center;gap:11px;padding:16px 24px;
  }
  .is-ascent :is(.hero-copy,.chapter-copy,.final-copy),
  .is-ascent :is(.chapter:nth-child(even),.final) :is(.chapter-copy,.final-copy){
    grid-area:1/1;align-self:end;justify-self:start;padding-bottom:24px;
  }
  .is-ascent :is(.hero-art,.motion-stage),.is-ascent :is(.chapter:nth-child(even),.final) .motion-stage{
    grid-area:2/1;align-self:end;justify-self:center;
    width:min(100%,340px,calc(var(--view-height) * .49));
  }
  .is-ascent .hero-art{height:calc(var(--view-height) * .37);aspect-ratio:auto}
  .is-ascent .hero h1,.is-ascent .chapter h2{font-size:clamp(26px,7vw,38px);margin-bottom:11px}
  .is-ascent :is(.eyebrow,.intro,.aside,.chapter-copy>p:not(.eyebrow),.final-copy>p:not(.eyebrow),blockquote){font-size:clamp(13px,3.55vw,17px)}
  .is-ascent .eyebrow{margin-bottom:8px}
  .is-ascent .chapter blockquote{padding:7px 10px;margin-top:10px}
  .is-ascent .aside,.is-ascent .final-copy p+p{margin-top:7px}
  .is-ascent .button{margin-top:11px;min-height:36px}
  .journey-rocket{width:31px}
  .journey-rocket::after{width:5px}
}
