/* Services section on the home page: the scroll-scrubbed container film (services-film.js) and the additional-services doors. Builds on style.css. */
.svc-head{padding-bottom:4rem}
@media (min-width:1024px){.svc-head{padding-bottom:5rem}}
.tp-cue{margin-top:2.5rem;display:inline-flex;align-items:center;gap:.6rem;font-size:.8125rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--navy-500)}
.tp-cue .ph{font-size:18px;color:var(--green-600);animation:tp-bob 2s ease-in-out infinite}
@keyframes tp-bob{50%{transform:translateY(5px)}}

/* the scene: a tall section, the stage sticks to the screen while it scrolls past */
.tp-scroll{position:relative;height:760vh;background:#dfe3ee} /* tall enough that the forklift drives at a believable pace */
.tp-stage{position:sticky;top:var(--nav-h);height:calc(100vh - var(--nav-h));height:calc(100svh - var(--nav-h));overflow:hidden}
.tp-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .8s var(--ease)}
.tp-stage.ready canvas{opacity:1}
/* portrait screens: a small copy of the frame, blurred by the browser, fills the space above and below the film */
.tp-stage #tp-bg{inset:-8%;width:116%;height:116%;-webkit-filter:blur(22px) brightness(.9);filter:blur(22px) brightness(.9);visibility:hidden}
.tp-stage.has-bg #tp-bg{visibility:visible}
/* a gentle lens vignette, like a real camera */
.tp-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 85% 75% at 50% 45%,transparent 55%,rgba(15,20,56,.22) 100%)}

/* caption card, bottom left; swaps with a short fade for every step */
.tp-caption{position:absolute;z-index:2;left:clamp(16px,4vw,64px);bottom:clamp(16px,6vh,64px);width:min(26rem,calc(100% - 32px));padding:1.5rem 1.75rem;border-radius:1.25rem;background:rgba(251,251,253,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.7);box-shadow:0 24px 50px -28px rgba(15,20,56,.45)}
.tp-caption::before{content:"";position:absolute;inset:0 1.25rem auto;height:2px;background:var(--green-500);border-radius:2px}
.tp-cap-title{margin-top:.6rem;font-size:clamp(1.5rem,1.1rem + 1.2vw,2.25rem);line-height:1.08;letter-spacing:-.03em;color:var(--navy-700)}
.tp-cap-text{margin-top:.6rem;font-size:.9375rem;line-height:1.55;color:var(--ink-muted)}
.tp-caption.swap>*{animation:tp-in .45s var(--ease) both}
.tp-caption.swap>:nth-child(2){animation-delay:.04s}.tp-caption.swap>:nth-child(3){animation-delay:.08s}
@keyframes tp-in{from{opacity:0;transform:translateY(8px)}}
/* hidden while the doors open; fades between the two corners */
.tp-caption{transition:opacity .26s var(--ease),visibility .26s}
.tp-caption.off{opacity:0;visibility:hidden}
/* the six services: a larger, clearer card in the top right (over the canal, clear of the quay) */
.tp-caption.svc{background:rgba(251,251,253,.95);box-shadow:0 30px 60px -28px rgba(15,20,56,.55)}
.tp-caption.svc .eyebrow{font-size:.8125rem}
.tp-caption.svc .tp-cap-title{font-size:clamp(2rem,1.2rem + 1.9vw,3rem)}
.tp-caption.svc .tp-cap-text{margin-top:.8rem;font-size:1.0625rem;line-height:1.6;color:var(--ink)}
@media (min-width:721px){.tp-caption.svc{left:auto;right:clamp(16px,3vw,48px);top:clamp(16px,3vh,32px);bottom:auto;width:min(31rem,38vw);padding:2rem 2.25rem}}

/* six dots joined by a line that fills as the crates come out: connecting all dots */
.svc-dots{--fill:0;position:absolute;z-index:2;right:clamp(16px,3vw,48px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:1.6rem;padding:0}
.svc-dots::before,.svc-dots::after{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:2px;margin-left:-1px;background:rgba(40,49,108,.18)}
.svc-dots::after{background:var(--green-500);transform-origin:top;transform:scaleY(var(--fill));transition:transform .4s var(--ease)}
.svc-dots li{position:relative;z-index:1;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid rgba(40,49,108,.35);transition:background-color .3s var(--ease),border-color .3s var(--ease),transform .3s var(--ease)}
.svc-dots li.on{background:var(--green-500);border-color:var(--green-500)}
.svc-dots li.now{transform:scale(1.5);border-color:var(--navy-700)}

/* film could not load: say so plainly instead of an empty grey box */
.tp-fallback{display:none}
.tp-stage.no-webgl{display:flex;align-items:center;justify-content:center;padding:2rem}
.tp-stage.no-webgl .tp-fallback{display:block;max-width:30rem;text-align:center;color:var(--navy-700)}
.tp-stage.no-webgl .tp-fallback p+p{margin-top:.75rem}
.tp-stage.no-webgl .tp-caption,.tp-stage.no-webgl .svc-dots{display:none}

/* phones: caption across the bottom, dots in a row on top */
@media (max-width:720px){
  .tp-scroll{height:680vh}
  .tp-caption{left:12px;right:12px;bottom:12px;width:auto;padding:1.1rem 1.25rem}
  .tp-cap-text{font-size:.875rem}
  .svc-dots{top:14px;right:50%;transform:translateX(50%);flex-direction:row;gap:1.4rem}
  .svc-dots::before,.svc-dots::after{left:6px;right:6px;top:50%;bottom:auto;width:auto;height:2px;margin:-1px 0 0}
  .svc-dots::after{transform-origin:left;transform:scaleX(var(--fill))}
}

/* reduced motion: one still frame (every crate out), no long scroll */
html.tp-still .tp-scroll{height:auto}
html.tp-still .tp-stage{position:relative;top:0;height:min(80vh,44rem)}

/* ---------- additional services: container doors ---------- */
/* open doors stick out about 10% of a card's width on each side (and 4% above and below), so the gaps leave room
   for two open neighbours without their doors touching */
.doors{--gx:5.5rem;margin-top:3.5rem;display:flex;flex-wrap:wrap;justify-content:center;gap:3.5rem var(--gx)}
@media (min-width:600px) and (max-width:959px){.doors{padding-inline:4vw}} /* two per row: keep the outer doors on screen */
.door-card{position:relative;flex:0 0 80%;min-height:17rem;border-radius:1rem;perspective:2400px}
@media (min-width:600px){.door-card{flex-basis:calc((100% - var(--gx)) / 2)}}
@media (min-width:960px){.door-card{flex-basis:calc((100% - 2 * var(--gx)) / 3);min-height:20rem}}
/* the inside of the container: what the doors reveal */
.door-inside{position:absolute;inset:0;display:flex;flex-direction:column;padding:1.75rem;border-radius:1rem;background:radial-gradient(120% 90% at 50% 100%,#2c3474,#171c42 70%);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),inset 0 30px 50px -24px rgba(0,0,0,.7)}
.door-inside::after{content:"";position:absolute;inset:auto 1.75rem 1.5rem;height:3px;border-radius:3px;background:var(--green-500)}
.door-sym{font-size:30px;line-height:1;color:var(--green-300)}
.h-door{margin-top:auto;font-size:clamp(1.3rem,1rem + .6vw,1.625rem);line-height:1.15;letter-spacing:-.02em;color:#fff}
.door-txt{margin-top:.6rem;margin-bottom:1.5rem;max-width:22rem;font-size:.9rem;line-height:1.55;color:var(--navy-200)}
/* the doors: a transparent button over the card holding two leaves, hinged at the outer edges like a real container */
.door-btn{position:absolute;inset:0;z-index:1;padding:0;border:0;border-radius:1rem;background:none;cursor:pointer;color:#fff;font:inherit;transform-style:preserve-3d}
.door-btn:focus-visible{outline:3px solid var(--green-500);outline-offset:3px}
.leaf{position:absolute;top:0;bottom:0;width:50%;transform-style:preserve-3d;transition:transform 1.15s cubic-bezier(.3,0,.15,1)}
.leaf-l{left:0;transform-origin:left center}
.leaf-r{right:0;transform-origin:right center;transition-delay:.08s}
.leaf>*{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.skin,.rear{position:absolute;inset:0}
.skin{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(0,0,0,.2)),linear-gradient(transparent calc(50% - 5px),var(--green-500) calc(50% - 5px),var(--green-500) calc(50% + 5px),transparent calc(50% + 5px)),repeating-linear-gradient(90deg,#28316c 0 14px,#323c80 14px 18px,#222a5e 18px 26px,#28316c 26px 30px);box-shadow:inset 0 0 0 3px #1f2759}
.leaf-l .skin{border-radius:1rem 0 0 1rem;box-shadow:inset 3px 0 0 #1f2759,inset 0 3px 0 #1f2759,inset 0 -3px 0 #1f2759,inset -1px 0 0 #10153a}
.leaf-r .skin{border-radius:0 1rem 1rem 0;box-shadow:inset -3px 0 0 #1f2759,inset 0 3px 0 #1f2759,inset 0 -3px 0 #1f2759,inset 1px 0 0 #10153a}
.rear{transform:rotateY(180deg);background:linear-gradient(90deg,#141938,#232a5c);border-radius:inherit}
.leaf-l .rear{border-radius:0 1rem 1rem 0}.leaf-r .rear{border-radius:1rem 0 0 1rem}
/* two locking bars per leaf, each with a handle that swings out before the doors open */
.bars,.bars::before{position:absolute;top:10px;bottom:10px;width:6px;border-radius:3px;background:linear-gradient(90deg,#9aa1b2,#e4e7ee 45%,#8a91a3)}
.bars{left:34%}
.bars::before{content:"";left:calc(100% + 30%);top:0;bottom:0;width:6px}
.bars::after{content:"";position:absolute;top:58%;left:-2px;width:26px;height:7px;border-radius:3px;background:linear-gradient(#e4e7ee,#9aa1b2);transform-origin:3px 50%;transition:transform .45s var(--ease)}
.leaf-r .bars{left:auto;right:34%}
.leaf-r .bars::before{left:auto;right:calc(100% + 30%)}
.leaf-r .bars::after{left:auto;right:-2px;transform-origin:calc(100% - 3px) 50%}
.door-card.open .leaf-l .bars::after{transform:rotate(-75deg)}
.door-card.open .leaf-r .bars::after{transform:rotate(75deg)}
/* the service symbol: a big round badge centred on the seam and threaded on the green band.
   Each leaf carries its half (clipped), so the badge parts down the middle as the doors open */
.seal{position:absolute;inset:0;overflow:hidden;transform:translateZ(1px)} /* just in front of the bars */
.leaf-l .seal{border-radius:1rem 0 0 1rem}.leaf-r .seal{border-radius:0 1rem 1rem 0}
.badge{position:absolute;top:50%;width:5.5rem;height:5.5rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 50% 35%,#323c80,#1a2150);border:4px solid var(--green-500);box-shadow:0 6px 18px -6px rgba(0,0,0,.6),inset 0 2px 0 rgba(255,255,255,.12);transform:translate(-50%,-50%)}
.leaf-l .badge{left:100%}.leaf-r .badge{left:0}
.badge .ph{font-size:2.75rem;color:#fff}
.door-card.open .leaf-l{transform:rotateY(-96deg)}
.door-card.open .leaf-r{transform:rotateY(96deg)}
.door-btn:hover .leaf-l{transform:rotateY(-6deg)}.door-btn:hover .leaf-r{transform:rotateY(6deg)}
.door-card.open .door-btn:hover .leaf-l{transform:rotateY(-90deg)}.door-card.open .door-btn:hover .leaf-r{transform:rotateY(90deg)}
@media (prefers-reduced-motion:reduce){.leaf,.bars::after{transition:none}}
