/* A static, fully composed hero until the visitor interacts. */
.terminal-hero { position:relative;padding:0;perspective:1250px;isolation:isolate; }
.hero-sheet {padding-top:clamp(1rem,3.2vh,2.2rem);position:relative;transform-origin:7% 88%;isolation:isolate; }
.hero-sheet-fold {display:none;pointer-events:none;}
[data-motion-surface] {cursor:pointer;touch-action:manipulation;}
[data-motion-surface]:focus-visible {outline:3px solid #147354;outline-offset:3px;}
.route-card [data-motion-surface]:focus-visible {outline-offset:-4px;}
.terminal-hero:not(.gesture-active) :is(.terminal-copy .eyebrow,.terminal-copy h1 span,.terminal-copy >p,.terminal-copy .hero-actions,.terminal-scene img,.terminal-fold-light),
.handover-feature:not(.gesture-active) .handover-art img {animation:none!important;}
.terminal-scene .terminal-fold-light {display:none!important;}
.terminal-hero:not(.gesture-active) .terminal-flyer {opacity:0;}
.terminal-hero .terminal-scene{touch-action:pan-y;}
.route-card .freight-image .route-vehicle{opacity:0;}
.route-card[data-active] .freight-image .route-vehicle{opacity:1;}
.handover-feature .handover-crossing{display:none;}
@media(max-width:760px){.hero-sheet {padding-top:.9rem;}}
@media(prefers-reduced-motion:reduce){[data-motion-surface]{cursor:inherit;}}
@media(prefers-reduced-motion:no-preference){
 /* The curled edge is independent from the page artwork. It sweeps off as the page flattens. */
 .terminal-hero.gesture-active{background:#232d7d;}
 .terminal-hero.gesture-active .hero-sheet{
  background:radial-gradient(ellipse at 50% 95%,var(--cream),var(--paper) 70%);
  animation:peel-sheet .88s cubic-bezier(.17,.65,.24,1) both;
 }
 .terminal-hero.gesture-active .hero-sheet-fold{
  display:block;position:absolute;inset:0;z-index:6;
  background:linear-gradient(128deg,#e9f7ed00 36%,#6d98a932 47%,#335d6d79 50%,#fafff8df 53%,#d3efdf55 56%,#edf7ec00 62%);
  clip-path:polygon(1% 72%,97% 3%,97% 24%,1% 98%);
  animation:peel-crease .88s cubic-bezier(.28,.48,.33,1) both;
 }
 .terminal-hero.gesture-active .terminal-copy .eyebrow{animation:copy-resolve .52s .55s both;}
 .terminal-hero.gesture-active .terminal-copy h1 span{animation:line-resolve .66s .61s both;}
 .terminal-hero.gesture-active .terminal-copy h1 span:nth-child(2){animation-delay:.79s;}
 .terminal-hero.gesture-active .terminal-copy >p:not(.eyebrow){animation:copy-resolve .55s .98s both;}
 .terminal-hero.gesture-active .terminal-copy .hero-actions{animation:copy-resolve .56s 1.12s both;}
 .terminal-hero.gesture-active .terminal-scene>img:first-child{animation:hero-warehouse-in 1.04s 1.08s cubic-bezier(.18,.67,.24,1) both;}
 .terminal-hero.gesture-active .terminal-scene .terminal-truck{animation:hero-left-truck-in 1.09s .95s cubic-bezier(.17,.66,.26,1) both;}
 .terminal-hero.gesture-active .terminal-scene .terminal-foreground-truck{animation:hero-diagonal-truck-in 1.18s 1.09s cubic-bezier(.16,.68,.25,1) both;}
 .terminal-hero.gesture-active .terminal-scene .terminal-parcels{animation:hero-parcel-in .74s 1.49s cubic-bezier(.2,.69,.3,1) both;}
 .terminal-hero.gesture-active .terminal-scene .terminal-flyer{animation:terminal-diagonal 3s cubic-bezier(.33,.12,.63,.98) .61s 1 both;}
 .terminal-scene .terminal-flyer{transform:translate(-50%,-50%) rotate(-13deg);}
 .freight.gesture-active .freight-heading>div{animation:copy-resolve .45s both;}
 .freight.gesture-active .freight-card{animation:copy-resolve .55s var(--delay,0ms) both;}
 .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:through-sky-card 10.5s linear infinite both;}
 .handover-feature.gesture-active .handover-crossing{
  display:block;position:absolute;left:46%;top:44%;z-index:3;width:clamp(5.5rem,15vw,12rem);height:auto;
  animation:handover-drive 2s cubic-bezier(.18,.67,.26,1) both;
 }
 .handover-feature.gesture-active .handover-art img {animation:hero-warehouse-in .9s both;}
 .contact-banner.gesture-active .contact-motion-art{animation:hero-warehouse-in .85s both;}
 .home-contact .contact-motion-art img{transform:none;}
 @keyframes peel-sheet{
  0%{clip-path:polygon(0 15%,80% 0,91% 87%,12% 100%);transform:perspective(1250px) rotateX(17deg) rotateY(-14deg) rotateZ(-2deg) scale(.93);box-shadow:0 24px 40px #081c4b4c;}
  43%{clip-path:polygon(0 0,94% 1%,99% 93%,1% 100%);transform:perspective(1250px) rotateX(-7deg) rotateY(-5deg) rotateZ(.7deg) scale(.99);}
  77%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:perspective(1250px) rotateX(2deg) rotateY(1deg);}
  100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:none;}
 }
 @keyframes peel-crease{
  0%{transform:translate(-38%,18%) skewX(-25deg) rotate(7deg);opacity:.13;}
  34%{opacity:.9;}
  62%{opacity:.43;}
  100%{transform:translate(52%,-26%) skewX(0deg);opacity:0;}
 }
 @keyframes copy-resolve{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
 @keyframes line-resolve{0%{opacity:0;filter:blur(2px);transform:translateY(10px);}60%{filter:blur(0);}100%{opacity:1;filter:none;transform:none;}}
 @keyframes hero-warehouse-in{from{opacity:0;transform:translateX(11%);}to{opacity:1;transform:none;}}
 @keyframes hero-left-truck-in{from{opacity:0;transform:translateX(-96%);}to{opacity:1;transform:none;}}
 @keyframes hero-diagonal-truck-in{from{opacity:0;transform:translate(64%,25%) scale(.72);}to{opacity:1;transform:none;}}
 @keyframes hero-parcel-in{from{opacity:0;transform:translateY(16px) scale(.91);}to{opacity:1;transform:none;}}
 @keyframes handover-drive{0%{opacity:0;transform:translate(-205%,-115%) rotate(-7deg) scale(.82);}20%{opacity:1;}57%{transform:translate(-109%,-45%) rotate(-4deg);}100%{opacity:1;transform:translate(12%,61%) scale(.85);}}
}
/* Vehicles and road plates share coordinates. The 3D background never animates scale independently from its road. */
.terminal-scene{--scene-height:clamp(9.2rem,43svh,23rem);min-height:var(--scene-height);}
.terminal-world{position:relative;display:grid;width:min(100%,59rem,calc(var(--scene-height)*2.5263));aspect-ratio:1440/570;isolation:isolate;align-self:center;}
.terminal-scene .terminal-world .terminal-base{display:block;position:relative;width:100%;height:100%;aspect-ratio:auto;object-fit:fill;animation:none;}
.terminal-scene .terminal-world :is(.terminal-truck,.terminal-foreground-truck,.terminal-parcels){right:auto;bottom:auto;height:auto;aspect-ratio:auto;object-fit:contain;translate:-50% -77%;filter:drop-shadow(0 3px 2px #14232a40);}
.terminal-scene .terminal-world .terminal-truck{width:16%;left:28%;top:86%;}
.terminal-scene .terminal-world .terminal-foreground-truck{width:14%;left:87%;top:82%;translate:-50% -77%;scale:-1 1;}
.terminal-scene .terminal-world .terminal-parcels{width:7%;left:68%;top:64%;translate:-50% -81%;}
.handover-world{display:grid;position:relative;width:min(100%,28rem);aspect-ratio:4/3;margin:auto;isolation:isolate;overflow:hidden;}
.handover-feature .handover-world img.handover-base{display:block;width:100%;height:100%;max-height:none;object-fit:contain;animation:none;}
.handover-feature .handover-world img.handover-crossing{display:block;position:absolute;left:66%;top:79%;width:47%;height:auto;translate:-50% -77%;max-height:none;animation:none;}
.route-card.route-truck .freight-image img.route-vehicle{width:47%;bottom:auto;top:78%;translate:0 -77%;}
.route-card.route-parcel .freight-image img.route-vehicle{width:30%;bottom:8%;}
@media(max-width:760px){.terminal-scene{--scene-height:clamp(8.05rem,34svh,18rem);}}
@media(max-width:360px){.terminal-scene{--scene-height:clamp(7.7rem,29svh,13rem);}}
@media(prefers-reduced-motion:no-preference){
 .terminal-hero.gesture-active .terminal-world {animation:grounded-warehouse-in 1.04s 1.08s cubic-bezier(.18,.67,.24,1) both;}
 .terminal-hero.gesture-active .terminal-world .terminal-base{animation:none;}
 .terminal-hero.gesture-active .terminal-world .terminal-truck{animation:grounded-inbound 1.40s 1.01s cubic-bezier(.16,.57,.22,1) both;}
 .terminal-hero.gesture-active .terminal-world .terminal-foreground-truck{animation:grounded-loading-bay 1.42s 1.16s cubic-bezier(.14,.61,.24,1) both;}
 .terminal-hero.gesture-active .terminal-world .terminal-parcels{animation:grounded-cargo .62s 1.65s cubic-bezier(.2,.69,.3,1) both;}
 .handover-feature.gesture-active .handover-world img.handover-crossing{animation:drive-into-bay 2s cubic-bezier(.18,.67,.26,1) both;}
 .route-card.route-truck[data-active] .freight-image img.route-vehicle{animation:through-driveway 11s linear infinite both;}
 .route-card.route-parcel[data-active] .freight-image img.route-vehicle{animation:through-card 11s linear infinite both;}
 @keyframes grounded-warehouse-in{from{opacity:0;transform:translateX(9%);}to{opacity:1;transform:none;}}
 @keyframes grounded-inbound{0%{left:1%;top:65%;opacity:0;}14%{opacity:1;}60%{left:20%;top:80%;}100%{left:28%;top:86%;opacity:1;}}
 @keyframes grounded-loading-bay{0%{left:103%;top:70%;opacity:0;}14%{opacity:1;}100%{left:87%;top:82%;opacity:1;}}
 @keyframes grounded-cargo{from{opacity:0;transform:translateY(9%);}to{opacity:1;transform:none;}}
 @keyframes drive-into-bay{0%{left:0%;top:70%;opacity:0;}17%{opacity:1;}65%{left:48%;top:76%;}100%{left:66%;top:79%;opacity:1;}}
 @keyframes through-driveway{0%{left:-38%;top:73%;opacity:0;}12%,81%{opacity:1;}94%,100%{left:102%;top:87%;opacity:0;}}
}
/* Final hero direction: still scene, text, one grounded truck and the plane. */
.terminal-hero.gesture-active{background:radial-gradient(ellipse at 50% 95%,var(--cream),var(--paper) 70%);}
.terminal-hero.gesture-active .hero-sheet,.terminal-hero.gesture-active .terminal-world{animation:none;}
.terminal-hero .hero-sheet-fold,.terminal-hero .terminal-fold-light{display:none!important;}
@media(prefers-reduced-motion:no-preference){
 .terminal-hero.gesture-active .terminal-copy .eyebrow{animation-delay:0s}
 .terminal-hero.gesture-active .terminal-copy h1 span{animation-delay:.10s}
 .terminal-hero.gesture-active .terminal-copy h1 span:nth-child(2){animation-delay:.25s}
 .terminal-hero.gesture-active .terminal-copy>p:not(.eyebrow){animation-delay:.46s}
 .terminal-hero.gesture-active .terminal-copy .hero-actions{animation-delay:.59s}
 .terminal-hero.gesture-active .terminal-world .terminal-truck{animation-delay:.31s}
 .terminal-hero.gesture-active .terminal-scene .terminal-flyer{animation-delay:.66s}
}
