/* The desktop's real graph, on a phone-sized camera stage. Keep this sheet last.
   Timeline: mark > Booking > complete graph + signals > drift > hero, in 3.43s.
   All overrides are phone-only; desktop geometry and timing stay in style.css. */
@media (max-width:640px) and (prefers-reduced-motion:no-preference){
  /* The compact hero is shorter than the screen. Its opening canvas must not be. */
  .opening .hero{z-index:9;overflow:visible}
  .opening .hero-art{position:fixed;inset:0;height:100svh;z-index:0;overflow:hidden}
  .opening .hero-art::before{
    content:"";position:absolute;inset:0;z-index:-1;
    background:radial-gradient(ellipse at 49% 28%,#e2edfa 0%,transparent 70%),linear-gradient(180deg,#edf4fa 0%,#e5eff8 51%,#f7f9fd 100%);
    animation:phone-opening-backdrop .62s 2.70s ease both;
  }
  .opening .opening-mark{top:calc(46% - 108px);width:92px;animation-duration:1.21s}
  .opening .map-scene{top:46%;animation:phone-map-camera 3.43s linear both;will-change:transform}
  .opening .teaser-tile{transition:opacity .18s ease,transform .27s var(--ease)}
  .opening .teaser-tile:not(.is-arrived){transition:none}
  .opening.map-dispersed .teaser-tile.is-arrived{
    /* The hero wash softens the transition without seven per-frame SVG blurs. */
    filter:none;
    transition:opacity .60s ease,transform .67s cubic-bezier(.24,.72,.27,1);
  }
  .opening .bundle-wires{animation-duration:2s;animation-delay:1.107s}
  .opening .bundle-wires path{animation-duration:.227s}
  /* Preserve thin native routes without letting the full-map zoom erase them. */
  .opening .bundle-wires path{vector-effect:non-scaling-stroke;stroke-width:1}
  .opening .bar{animation-duration:.233s;animation-delay:2.78s}
  .opening .mascot,.opening .eyebrow{animation-duration:.267s;animation-delay:2.72s}
  .opening .intro h1{animation-duration:.347s;animation-delay:2.807s}
  .opening .lede{animation-duration:.287s;animation-delay:2.873s}
  .opening .composer,.opening .hero-actions{animation-duration:.267s;animation-delay:2.927s}
  .opening .hero-try{animation:copy-in .267s 2.927s var(--ease) both}
  .opening .demo-caption,.opening footer{animation-duration:.213s;animation-delay:3.04s}
  .opening .story-jump{animation-duration:.213s;animation-delay:3.12s}
  .opening .hero-controls{animation-duration:.213s;animation-delay:3.127s}
  .opening .opening-layer{animation-delay:3.64s}
  #skip-opening{min-height:44px;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));padding:10px 16px}

  @keyframes phone-opening-backdrop{from{opacity:1}to{opacity:0}}
  @keyframes phone-map-camera{
    0%,16%{transform:var(--root-view);animation-timing-function:cubic-bezier(.25,.15,.30,1)}
    29%{transform:var(--mid-view);animation-timing-function:cubic-bezier(.35,0,.25,1)}
    49%,68%{transform:var(--phone-full-view);animation-timing-function:cubic-bezier(.36,0,.24,1)}
    93%,100%{transform:var(--wide-view)}
  }
}
