.flight-progress{--loaded:0%;--flight-ink:var(--positive,#476e0b);width:min(210px,65vw);margin-inline:auto;display:grid;gap:10px}
[data-theme=dark] .flight-progress{--flight-ink:var(--lime,#c2ff4d)}
.flight-track{margin:12px 9px 0;height:3px;background:var(--line,#666);border-radius:3px}
.flight-fill{display:block;position:relative;width:var(--loaded);height:100%;background:var(--flight-ink);border-radius:inherit}
.flight-fill::after{content:'';position:absolute;width:24px;height:24px;right:-12px;bottom:-3px;background:var(--flight-ink);mask:url('/assets/logo.svg') center/contain no-repeat}
.flight-readout{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--muted);font-size:.8rem;line-height:1.4}
.flight-readout b{font-weight:650;font-variant-numeric:tabular-nums;color:var(--ink)}
@media(prefers-reduced-motion:reduce){.flight-fill{transition:none}}

/* In this variant the plane occupies its original 80 units of the 300-unit lockup. */
[data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene){position:relative}
[data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)>:is(img,svg){clip-path:inset(0 0 0 26.66667%)}
[data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::before,
[data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::after{
  content:'';position:absolute;inset:0 auto 0 0;width:26.66667%;pointer-events:none;
  mask:url('/assets/logo.svg') center/contain no-repeat;
  transform:translate(var(--plane-x,-6px),var(--plane-y,4px));

}
[data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::before{background:#666}
[data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::after{background:#c2ff4d;clip-path:inset(0 var(--plane-remainder,100%) 0 0)}
[data-theme=light][data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::before{background:#c5c5c5}
[data-theme=light][data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::after{background:#111}
[data-logo-progress] .flight-track{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;margin:0}
[data-logo-progress] .flight-readout{justify-content:center}
@media(prefers-reduced-motion:reduce){
  [data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::before,
  [data-logo-progress] :is(.launch-screen .rotation-wordmark,#scene)::after{transition:none;transform:none}
}

@media(prefers-reduced-motion:no-preference){
  .mode-curtain[data-complete-hop] :is(.mode-title,.mode-plane),
  [data-logo-progress] [data-complete-hop] :is(.rotation-wordmark,#scene)::before,
  [data-logo-progress] [data-complete-hop] :is(.rotation-wordmark,#scene)::after,
  [data-logo-progress] [data-complete-hop] :is(.rotation-wordmark,#scene)>:is(img,svg){
    animation:plane-complete-hop .42s both;
    transform-origin:50% 58%;
  }
  /* The lettering follows the plane on the same beat, with a smaller vertical lift. */
  [data-logo-progress] [data-complete-hop] :is(.rotation-wordmark,#scene)>:is(img,svg){
    --hop-height:-5px;
    --hop-tilt:0deg;
  }
}
@keyframes plane-complete-hop{
  0%{transform:none;animation-timing-function:cubic-bezier(.2,.66,.34,1)}
  45%{transform:translateY(var(--hop-height,-9px)) rotate(var(--hop-tilt,-4deg));animation-timing-function:cubic-bezier(.43,0,.71,.36)}
  100%{transform:none}
}
