/* Smaller screen layouts keep the hero and the rest of the page in normal flow. */
@media (max-width:1100px),(pointer:coarse) and (max-width:1366px){
 .route-gallery{--lane-width:clamp(176px,24vw,238px);--lane-gap:10px}
 .lane-stage{padding-top:calc(var(--hero-bar-height) + 27px);padding-bottom:36px}
 .lane-title{margin-bottom:21px;gap:9px}
 .lane-title h2{font-size:clamp(2.6rem,6vw,4.8rem)}
 .lane-card{min-height:clamp(110px,13svh,135px)}
 .lane-city h3{font-size:clamp(1.15rem,2.25vw,1.53rem)}
 .lane-window{scroll-snap-type:x proximity;touch-action:pan-x pan-y pinch-zoom}
 .lane-card:nth-child(3n+1){scroll-snap-align:start;scroll-margin-inline-start:var(--lane-inset)}
 .is-pinned .lane-window{scroll-snap-type:none;touch-action:pan-y pinch-zoom}
 .lane-footer .lane-skip{min-height:44px;display:inline-flex;align-items:center}
 .story-screen{padding-block:clamp(54px,8vw,96px)}
 .story-tile{padding:clamp(16px,2.3vw,24px)}
 .story-tile h3,.service h3{overflow-wrap:anywhere}
 .service{min-height:0;padding:22px}
 .clients-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:681px) and (max-width:1100px){
 .orbit-track{height:calc(207svh + var(--orbit-cover,0px))}
 .orbit-hero{min-height:530px}
 .planet{left:72%;width:min(87vw,111svh,920px)}
 .orbit-copy h1{font-size:clamp(3.15rem,7.1vw,5.65rem)}
 .orbit-intro{max-width:33ch;margin-top:19px;line-height:1.45}
 .orbit-base{padding-bottom:21px}
 .section-head,.story-screen h2{margin-bottom:22px}
}
@media (min-width:681px) and (max-width:960px) and (orientation:portrait){
 .orbit-hero{--globe-row:min(53vw,45svh,472px);grid-template-rows:var(--hero-bar-height) var(--globe-row) 1fr auto;min-height:max(830px,100svh)}
 .orbit-track{height:calc(194svh + var(--orbit-cover,0px));min-height:calc(1250px + var(--orbit-cover,0px))}
 .planet{left:50%;top:calc(var(--hero-bar-height) + var(--globe-row) * .49);width:min(79vw,63svh,690px)}
 .orbit-copy{grid-row:3;align-self:end;padding-block:0 12px}
 .orbit-copy h1{font-size:clamp(3.5rem,7vw,5rem);line-height:1.01}
 .orbit-copy h1 span{display:inline-block}.orbit-copy h1 span+span{margin-left:.17em}
 .orbit-intro{max-width:49ch;margin-top:14px}.orbit-copy .buttons{margin-top:17px}
 .orbit-base{grid-row:4}
 .orbit-hero::after{background:linear-gradient(0deg,#070b13 4%,#070b13dd 24%,#070b1360 43%,transparent 62%)}
}
@media (max-width:680px){
 .wrap{width:calc(100% - 32px)}
 :root{--hero-bar-height:64px}
 .site-header .bar{gap:8px}.logo img{width:clamp(103px,31vw,132px)}
 .site-header .right{gap:7px}.site-header .right button{flex-shrink:0}
 .site-header .top-link{display:inline-flex;min-height:44px;max-width:144px;line-height:1.15;text-align:center;font-size:.79rem;padding:6px 10px}
 .orbit-track{height:calc(163svh + var(--orbit-cover,0px));min-height:calc(1060px + var(--orbit-cover,0px))}
 .orbit-hero{--globe-row:clamp(206px,min(70vw,39svh),334px);grid-template-rows:var(--hero-bar-height) var(--globe-row) 1fr auto;height:auto;min-height:100svh}
 .planet{top:calc(var(--hero-bar-height) + var(--globe-row) * .45);left:50%;width:clamp(257px,min(99vw,53svh),490px)}
 .orbit-copy{grid-row:3;align-self:end;padding:0 0 10px}
 .orbit-copy h1{font-size:clamp(2.03rem,8.5vw,4.8rem);line-height:1.02}
 .orbit-copy h1 span+span{margin-inline-start:.12em}
 .orbit-intro{font-size:clamp(.94rem,3.65vw,1.04rem);max-width:44ch;line-height:1.43;margin-top:11px}
 .orbit-copy .buttons{margin-top:13px;gap:8px}
 .orbit-copy .pill{font-size:.87rem;min-height:45px;padding:8px 12px}
 .orbit-base{grid-row:4;grid-template-columns:minmax(0,1fr) auto;padding-block:3px 13px;column-gap:7px}
 .route-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .orbit-base .route-choice{font-size:clamp(.63rem,2.7vw,.77rem);padding:6px 7px;gap:5px;min-height:44px;line-height:1.1;text-align:left}
 .route-choice i{flex-shrink:0;width:6px;height:6px}
 .orbit-base .scroll-cue{display:inline-grid;place-items:center;width:44px;height:44px}
 .orbit-note{font-size:.72rem}
 .orbit-hero::after{background:linear-gradient(0deg,#070b13 4%,#070b13ed 19%,#070b1360 43%,transparent 61%)}
 .route-gallery{--lane-width:clamp(140px,43vw,225px);--lane-gap:8px;--lane-inset:16px;margin-top:-9svh}
 .lane-stage{padding-top:calc(var(--hero-bar-height) + 17px);padding-bottom:28px}
 .lane-title h2{font-size:clamp(2rem,8vw,3.7rem)}
 .lane-title>p:last-child{font-size:.89rem}
 .lane-card{min-height:96px}
 .lane-city h3{font-size:clamp(1.03rem,4.3vw,1.42rem)}
 .lane-footer{margin-top:9px}
 .story-screen,.about,.services{padding-block:49px}
 .service{padding:15px}.service p{font-size:.93rem;line-height:1.44}
 .clients-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .clients-grid li{padding:7px;min-height:66px}.clients-grid img{height:45px}
 .contact-links{display:grid}
}
@media (max-width:390px){
 .orbit-copy h1 span{display:block}.orbit-copy h1 span+span{margin-inline-start:0}
 .services .grid{grid-template-columns:1fr}
}
@media (max-width:680px) and (max-height:720px){
 .orbit-track{height:auto;min-height:0}.orbit-hero{position:relative}
 .route-gallery{margin-top:0}
}
@media (min-width:681px) and (max-width:1100px) and (max-height:650px){
 .orbit-track{height:calc(175svh + var(--orbit-cover,0px))}
 .orbit-copy h1{font-size:clamp(2.85rem,5.5vw,4.5rem)}
}
@media(prefers-reduced-motion:reduce){
 .orbit-track{height:auto;min-height:0}
 .route-gallery{margin-top:0}
}
@media (max-width:680px) and (min-height:760px){
 .orbit-hero .planet{top:calc(var(--hero-bar-height) + var(--globe-row) * .54)}
 .orbit-copy{align-self:center;padding:10px 0}
}
@media (max-width:350px){
 .orbit-hero .planet{width:min(95vw,50svh,320px)}
}
@media (min-width:681px) and (max-width:960px) and (orientation:portrait){
 .orbit-hero .planet{top:calc(var(--hero-bar-height) + var(--globe-row) * .54)}
 .orbit-copy{align-self:center;padding:12px 0}
}

/* The next section overlays a stationary hero. Extending its sticky containing
   block and cancelling the extra space in flow leaves the gallery where it was. */
@media(prefers-reduced-motion:no-preference){
 .orbit-track{--orbit-cover:112svh;margin-block-end:calc(0px - var(--orbit-cover))}
 .orbit-hero{position:sticky;top:min(0px,calc(100svh - var(--orbit-frame-height,100svh)))}
}
.orbit-cover-spacer{height:var(--orbit-cover,0px);pointer-events:none}
/* Preserve the gallery's rounded sticky handoff to the figures section. */
.route-gallery.is-pinned .lane-stage > *{translate:0 var(--stage-ease,0px)}
.lane-window{scroll-snap-type:none}
@media(prefers-reduced-motion:reduce){
 .route-gallery.is-pinned .lane-stage > *{translate:none}
}

/* Let the first painted frame settle into the interactive globe, rather
   than swapping the poster and canvas on a single composited frame. */
.planet .night-poster{visibility:visible;opacity:1;transition:opacity 400ms ease}
.planet.is-rendered .night-poster{visibility:visible;opacity:0}
.planet #atlas,.planet #atlas-gpu,.planet #routes,.planet #pulses,.planet #labels{display:block;opacity:0;transition:opacity 380ms ease}
.planet.is-rendered:not(.uses-gpu) #atlas,.planet.uses-gpu.is-rendered #atlas-gpu,.planet.is-rendered #routes,.planet.is-rendered #pulses,.planet.is-rendered #labels{opacity:1}
