/* Motion controls, compact hero and independent vehicle layers. */
.terminal-hero{padding-top:clamp(1.0rem,3.2vh,2.2rem)}
.terminal-hero h1{font-size:clamp(2.08rem,4.1vw,3.55rem);line-height:1.01}
.terminal-hero .eyebrow{margin-bottom:.55rem}
.terminal-hero p:not(.eyebrow){margin:.7rem auto .8rem;max-width:62ch}
.terminal-hero .hero-actions{gap:.38rem 1.25rem}
.terminal-scene{margin-top:.18rem}
.terminal-scene>img:first-child{height:clamp(9.2rem,43svh,23rem);width:min(100%,59rem)}
.terminal-scene .terminal-truck{width:clamp(4.4rem,13vw,10.1rem);left:14%;bottom:1%;z-index:2}
.terminal-flight-lane{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}
.terminal-scene .terminal-flight-lane img.terminal-flyer{position:absolute;top:19%;left:-15%;transform:translate(-50%,-50%);width:clamp(4.7rem,12vw,10rem);height:auto;aspect-ratio:auto;object-fit:contain;filter:drop-shadow(0 4px 4px #17244526);animation:none}
.terminal-scene .hero-motion-toggle,.route-toggle{position:absolute;display:none;align-items:center;gap:.42rem;min-height:44px;border:1px solid #9bb9b0;border-radius:3rem;background:#f8fcf9;color:#172445;padding:.3rem .68rem;font-weight:700;font-size:.79rem;line-height:1.1;z-index:4;white-space:nowrap}
.terminal-scene .hero-motion-toggle{right:0;bottom:.35rem}
.terminal-scene .hero-motion-toggle:focus-visible,.freight-card .route-toggle:focus-visible{outline-color:#0d6949;outline-offset:3px}
.route-glyph{display:block;width:10px;height:10px;background:currentColor;clip-path:polygon(14% 0,100% 50%,14% 100%);flex:none}
.hero-motion-toggle:not([data-paused]) .route-glyph,.route-toggle[aria-pressed=true] .route-glyph{clip-path:polygon(0 0,34% 0,34% 100%,0 100%,0 0,66% 0,100% 0,100% 100%,66% 100%,66% 0)}
.route-card .freight-copy a{text-decoration:none;border-bottom:1px solid transparent}
.route-card .freight-copy a:hover,.route-card .freight-copy a:focus-visible{border-bottom-color:var(--rust)}
.route-card:focus-within .freight-copy a{text-underline-offset:.21em}
.route-card .freight-image{aspect-ratio:1.53;isolation:isolate}
.route-card .freight-image img.route-backdrop{object-fit:cover;width:100%;height:100%;position:absolute;inset:0;padding:0;transform:none;transition:none}
.route-card .freight-image::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0c233333,transparent 66%);z-index:1;pointer-events:none}
.route-track{z-index:2;position:absolute;inset:0;overflow:hidden;pointer-events:none}
.route-card .freight-image img.route-vehicle{position:absolute;inset:auto;left:-35%;bottom:15%;width:46%;height:auto;max-width:none;aspect-ratio:auto;transform:none;object-fit:contain;padding:0;filter:drop-shadow(0 4px 4px #14232a5c);transition:none}
.route-card.route-plane .freight-image img.route-vehicle{width:49%;bottom:31%}
.route-card.route-ship .freight-image img.route-vehicle{width:53%;bottom:13%}
.route-toggle{right:.48rem;bottom:.48rem}
.route-card .route-toggle::before{content:"";position:absolute;inset:-4px 0}
.route-card .route-toggle:hover,.hero-motion-toggle:hover{background:#d6ebe2}
@media(prefers-reduced-motion:no-preference){
 .motion-ready .route-toggle,.motion-ready .terminal-scene .hero-motion-toggle{display:flex}
 .motion-ready .terminal-scene .terminal-flight-lane img.terminal-flyer{animation:terminal-flight 15s linear 350ms infinite both}
 .motion-ready .terminal-scene.is-paused .terminal-flight-lane img.terminal-flyer,.motion-ready .terminal-scene.is-out-of-view .terminal-flight-lane img.terminal-flyer{animation-play-state:paused}
 .terminal-copy h1 span,.terminal-copy .eyebrow,.terminal-copy>p:not(.eyebrow),.terminal-copy .hero-actions{animation-duration:.98s}
 .terminal-scene>img:first-child{animation-duration:1.2s}
 .terminal-scene .terminal-truck{animation-duration:2.35s}
 .route-card[data-active] .freight-image img.route-vehicle{animation:through-card 11s linear infinite both}
 .route-card.route-ship[data-active] .freight-image img.route-vehicle{animation-duration:13s}
 .route-card.route-plane[data-active] .freight-image img.route-vehicle{animation-name:through-sky-card;animation-duration:10.5s}
 .route-card[data-active][data-paused] .freight-image img.route-vehicle{animation-play-state:paused}
 @keyframes terminal-flight{0%{left:-15%;top:30%;opacity:0}10%{opacity:1}72%{opacity:1}84%,100%{left:115%;top:8%;opacity:0}}
 @keyframes through-card{0%{left:-58%;opacity:0}7%,85%{opacity:1}96%,100%{left:115%;opacity:0}}
 @keyframes through-sky-card{0%{left:-58%;bottom:18%;opacity:0}8%,83%{opacity:1}94%,100%{left:115%;bottom:51%;opacity:0}}
}
@media(max-width:760px){
 .terminal-hero{padding-top:.9rem}
 .terminal-hero h1{font-size:clamp(1.96rem,6.4vw,3.1rem)}
 .terminal-hero .eyebrow{font-size:.73rem}
 .terminal-hero p:not(.eyebrow){font-size:1rem;line-height:1.43;margin:.48rem auto .52rem;max-width:48ch}
 .terminal-scene>img:first-child{height:clamp(8.05rem,34svh,18rem);width:100%;object-fit:contain}
 .terminal-scene .terminal-truck{left:8%}
 .terminal-scene .hero-motion-toggle{right:.18rem;bottom:.15rem}
}
@media(max-width:360px){
 .terminal-hero .hero-actions{gap:.22rem .75rem}
 .terminal-hero .button,.terminal-hero .service-jump{min-height:44px;font-size:.94rem}
 .terminal-scene .hero-motion-toggle{font-size:.72rem;padding-inline:.49rem}
}
/* The illustration is the motion hit area. The service name remains a normal link. */
.route-card .route-toggle{inset:0;width:100%;height:100%;padding:.45rem;border:0;border-radius:0;background:none;justify-content:flex-end;align-items:flex-end}
.route-card .route-toggle::before{content:none}
.route-card .route-toggle:focus-visible{outline-offset:-4px}
.motion-pill{display:inline-flex;align-items:center;gap:.42rem;min-height:44px;padding:.3rem .68rem;background:#f8fcf9;border:1px solid #9bb9b0;border-radius:3rem}
.route-card .route-toggle:hover .motion-pill{background:#d6ebe2}
@media(max-width:360px){
 .terminal-hero h1{font-size:1.77rem}
 .terminal-hero .eyebrow{font-size:.68rem;letter-spacing:.095em}
 .terminal-hero .hero-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:18rem;margin-inline:auto}
 .terminal-hero .hero-actions a{justify-content:center;white-space:nowrap;padding-inline:.36rem;font-size:.86rem}
 .terminal-scene>img:first-child{height:clamp(7.7rem,29svh,13rem)}
}
/* Dioramas stay on their own plane so the moving cutouts pass in front. */
.route-card .freight-image img.route-backdrop{object-fit:contain;padding:5%;object-position:center}
.route-card .freight-image{background:radial-gradient(ellipse at 50% 66%,#d3e9e1,#edf5f3 70%)}
.route-card .freight-image::after{background:linear-gradient(0deg,#33625912,transparent 58%)}
.is-home .example-visual{background:#e5f0eb}
.is-home .example-visual img{object-fit:contain;object-position:center;padding:.28rem}
/* Separate entry beats, with the actual warehouse left intact. */
.terminal-scene img.terminal-foreground-truck,.terminal-scene img.terminal-parcels{
 position:absolute;bottom:2%;height:auto;aspect-ratio:auto;object-fit:contain;pointer-events:none;animation:none
}
.terminal-scene img.terminal-foreground-truck{z-index:2;right:12%;width:clamp(4.4rem,11vw,9.2rem)}
.terminal-scene img.terminal-parcels{z-index:2;right:27%;bottom:4%;width:clamp(2.9rem,6vw,5.25rem)}
.handover-feature{position:relative;isolation:isolate}
.handover-crossing{display:none;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .motion-ready .terminal-copy h1 span{animation:fidel-type-resolve 1.05s cubic-bezier(.21,.67,.28,1) both}
 .motion-ready .terminal-copy h1 span:nth-child(2){animation-delay:130ms}
 .motion-ready .terminal-scene>img:first-child{animation:warehouse-assembly 1.65s .10s cubic-bezier(.17,.65,.28,1) both}
 .motion-ready .terminal-scene img.terminal-foreground-truck{animation:foreground-truck-assembly 2.45s .20s cubic-bezier(.17,.60,.25,1) both}
 .motion-ready .terminal-scene img.terminal-parcels{animation:parcels-assembly 1.2s .8s cubic-bezier(.20,.69,.32,1) both}
 .motion-ready .terminal-scene.is-paused img{animation-play-state:paused}
 @keyframes fidel-type-resolve{from{opacity:0;filter:blur(2px);transform:translateY(.6rem)}60%{filter:blur(0)}to{opacity:1;transform:translateY(0)}}
 @keyframes warehouse-assembly{from{opacity:0;transform:translateX(8%) translateY(.42rem)}to{opacity:1;transform:none}}
 @keyframes foreground-truck-assembly{from{opacity:0;transform:translate(60%,34%) scale(.82)}to{opacity:1;transform:none}}
 @keyframes parcels-assembly{from{opacity:0;transform:translateY(.75rem)}to{opacity:1;transform:none}}
 @supports (animation-timeline:view()) {
  .motion-ready .handover-crossing{display:block;position:absolute;left:49%;top:47%;z-index:3;width:clamp(7.5rem,14vw,12.5rem);height:auto;animation:truck-before-type linear both;animation-timeline:view();animation-range:entry 3% cover 61%}
  @keyframes truck-before-type{
   0%{opacity:0;transform:translate(-155%,-72%) rotate(-6deg) scale(.85)}
   20%{opacity:1}
   48%{opacity:1;transform:translate(-90%,-37%) rotate(-3deg)}
   100%{opacity:1;transform:translate(40%,75%) rotate(0) scale(.86)}
  }
 }
}
@media(max-width:760px){
 .terminal-scene img.terminal-foreground-truck{right:9%;bottom:2%}
 .terminal-scene img.terminal-parcels{right:28%;bottom:5%}
 @media(prefers-reduced-motion:no-preference){
  .motion-ready .handover-crossing{left:45%;top:45%;width:clamp(5.5rem,21vw,8rem)}
 }
}
.terminal-fold-light{display:none;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .motion-ready .terminal-scene .terminal-flight-lane img.terminal-flyer{
  left:-12%;top:93%;transform:translate(-50%,-50%) rotate(-13deg);
  animation:terminal-diagonal 3s cubic-bezier(.33,.12,.63,.98) 120ms 1 both
 }
 .motion-ready .terminal-scene[data-flight-loop] .terminal-flight-lane img.terminal-flyer{animation:terminal-diagonal-loop 8s linear infinite both}
 .motion-ready .terminal-scene.is-paused .terminal-flight-lane img.terminal-flyer,.motion-ready .terminal-scene.is-out-of-view .terminal-flight-lane img.terminal-flyer{animation-play-state:paused}
 @keyframes terminal-diagonal{
  0%{left:-13%;top:96%;opacity:0}
  10%,87%{opacity:1}
  100%{left:112%;top:1%;opacity:0}
 }
 /* 3s of travel, then a quiet interval before the next fly-through. */
 @keyframes terminal-diagonal-loop{
  0%,62.5%{left:-13%;top:96%;opacity:0}
  66%,95%{opacity:1}
  100%{left:112%;top:1%;opacity:0}
 }
 @supports(clip-path:polygon(0 0,100% 0,100% 100%,0 100%)){
  .motion-ready .terminal-scene>img:first-child{
   transform-origin:12% 86%;
   animation:fidel-unfurl 2.58s cubic-bezier(.26,.71,.25,1) .15s 1 both
  }
  .motion-ready .terminal-scene .terminal-fold-light{
   display:block;position:absolute;z-index:2;inset:4% 11% 0;
   background:linear-gradient(115deg,transparent 41%,#c3ebdd65 48%,#fafffe9c 50%,#39695721 53%,transparent 61%);
   clip-path:polygon(0 58%,100% 7%,100% 25%,0 82%);
   animation:fidel-fold-highlight 2.58s cubic-bezier(.22,.62,.34,1) .15s 1 both
  }
  .motion-ready .terminal-scene.is-paused>img:first-child{animation:none}
  .motion-ready .terminal-scene.is-paused .terminal-fold-light{animation:none;opacity:0}
  @keyframes fidel-unfurl{
   0%{opacity:.18;clip-path:polygon(0 76%,25% 25%,54% 100%,0 100%);transform:perspective(850px) rotateX(32deg) skewY(-4deg) scale(.93)}
   48%{opacity:1;clip-path:polygon(0 12%,77% 0,89% 100%,0 100%);transform:perspective(850px) rotateX(-8deg) skewY(1.3deg) scale(.99)}
   79%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:perspective(850px) rotateX(3deg) skewY(-.35deg)}
   100%{opacity:1;clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:none}
  }
  @keyframes fidel-fold-highlight{
   0%{opacity:0;transform:translate(-46%,20%) skewX(-20deg)}
   22%{opacity:.86}
   69%{opacity:.36}
   100%{opacity:0;transform:translate(55%,-15%) skewX(-5deg)}
  }
 }
}
