/* Page layout. Components live in components.css, values in tokens.css. */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 20; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--action); color: var(--on-action); font-weight: 600; }
.skip-link:focus { top: var(--space-2); outline: 2px solid var(--signal); outline-offset: 2px; }

/* Header floats over the hero. While over the video it is see-through with white text (.is-transparent, set in
   main.js); hover, keyboard focus, an open menu or scrolling past the hero bring back the solid white bar. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; transition: background-color .2s ease, border-color .2s ease; }
.site-header .px-logo, .site-header .px-nav a, .site-header .px-menu, .site-header > .px-btn { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.site-header.is-transparent:not(:hover):not(:focus-within):not(.is-open) { background: transparent; border-bottom-color: transparent; }
.site-header.is-transparent:not(:hover):not(:focus-within):not(.is-open) .px-logo,
.site-header.is-transparent:not(:hover):not(:focus-within):not(.is-open) .px-nav a { color: var(--on-action); }
.site-header.is-transparent:not(:hover):not(:focus-within):not(.is-open) .px-menu { background: transparent; border-color: var(--on-action); color: var(--on-action); }
.site-header.is-transparent:not(:hover):not(:focus-within):not(.is-open) > .px-btn--primary { background: var(--surface-raised); border-color: var(--surface-raised); color: var(--ink); }
.site-header.is-transparent:not(:hover):not(:focus-within):not(.is-open) > .px-btn:not(.px-btn--primary) { background: transparent; border-color: var(--on-action); color: var(--on-action); }
.site-header > .px-btn + .px-btn { margin-left: calc(var(--space-2) - var(--space-6)); }

/* Menu CTAs: only inside the open small-screen menu. */
.px-nav .nav-cta { display: none; }

/* With two header buttons the bar needs ~960px, so collapse to the menu below that
   (the design system's own breakpoint is 640px). */
@media (max-width: 959px) {
  .px-menu { display: inline-flex; align-items: center; justify-content: center; }
  .px-nav, .px-header > .px-btn { display: none; }
  .px-header.is-open .px-nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: var(--space-2) var(--space-6) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
  .px-header.is-open .px-nav .nav-cta { display: inline-flex; margin-top: var(--space-4); padding: 0 var(--space-6); color: var(--ink); text-decoration: none; }
  .px-header.is-open .px-nav .nav-cta.px-btn--primary { margin-top: var(--space-6); color: var(--on-action); }
  .px-header.is-open .px-nav .nav-cta + .nav-cta { margin-top: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .px-logo, .site-header .px-nav a, .site-header .px-menu, .site-header > .px-btn { transition: none; }
}

/* Hero fills the whole screen behind the header. svh keeps it stable as mobile browser bars show and hide. */
.px-hero { min-height: 100vh; min-height: 100svh; }
.px-hero__content { padding-top: calc(64px + var(--space-12)); }

/* Hero text arrives like parcels on a conveyor: each block slides in from the left, one after another,
   and settles with a small bump. */
.hero-conveyor > * { animation: hero-conveyor .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.hero-conveyor > :nth-child(1) { animation-delay: .1s; }
.hero-conveyor > :nth-child(2) { animation-delay: .25s; }
.hero-conveyor > :nth-child(3) { animation-delay: .4s; }
.hero-conveyor > :nth-child(4) { animation-delay: .55s; }
.hero-conveyor > :nth-child(5) { animation-delay: .7s; }
@keyframes hero-conveyor {
  from { opacity: 0; transform: translateX(-48px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Split-flap departure board. Monospace so flipping characters don't shift the layout. */
.hero-board { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-6); padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--action); color: var(--on-action); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 20px; letter-spacing: .04em; }
.hero-board__route { min-width: 9ch; }
.hero-board__ref { min-width: 16ch; color: var(--line); }
.hero-board__status { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 17ch; font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; }
.hero-board__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: hero-blink 1.2s steps(2, jump-none) infinite; }
.hero-board.is-paused .hero-board__status::before { animation: none; }
@keyframes hero-blink { 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .hero-conveyor > *, .hero-board__status::before { animation: none; }
}

.container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }

.section { padding: var(--space-12) 0; }
.section--alt { background: var(--surface-alt); }
.section__title { margin: 0; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.01em; }
.section__lead { margin: var(--space-4) 0 0; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.px-dark .section__lead { color: var(--on-action); }

.section .px-cards { margin-top: var(--space-6); padding: 0; background: none; }
.px-card__title { font-size: 24px; }

.contact .px-btn { margin-top: var(--space-6); }


@media (min-width: 768px) {
  .section { padding: calc(var(--space-12) * 2) 0; }
}

[hidden] { display: none !important; }

/* Services: dark "manifest" headers over white cards, on a dot-grid floor. */
.services { background-color: var(--surface); background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.services__title { margin-top: var(--space-4); max-width: 720px; text-wrap: balance; }
.svc-grid { display: grid; gap: var(--space-6); margin-top: var(--space-12); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }

.svc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); transition: transform .25s ease, border-color .25s ease; }
.svc-card:hover, .svc-card:focus-within { transform: translateY(-4px); border-color: var(--ink); }

.svc-card__media { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); min-height: 176px; padding: var(--space-6); background: var(--action); color: var(--on-action); overflow: hidden; }
.svc-card__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--line); }
.svc-card__tag { position: absolute; top: var(--space-6); right: var(--space-6); }
.svc-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); transition: transform .25s ease, border-color .25s ease; }
.svc-card__icon svg { width: 32px; height: 32px; }
.svc-card:hover .svc-card__icon { transform: translateX(6px); border-color: var(--on-action); }
.svc-card--dg .svc-card:hover .svc-card__icon, .svc-card--dg:hover .svc-card__icon { border-color: var(--signal); color: var(--signal); }

/* Flight path: BOM - - - FRA, bottom right of the air cargo header. */
.svc-route { position: absolute; right: var(--space-6); bottom: calc(var(--space-6) + 20px); display: flex; align-items: center; gap: var(--space-2); width: 45%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .06em; color: var(--line); }
.svc-route i { position: relative; flex: 1; height: 0; border-top: 2px dashed var(--line-strong); }
.svc-route i::before, .svc-route i::after { content: ""; position: absolute; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.svc-route i::before { left: -2px; }
.svc-route i::after { right: -2px; background: var(--on-action); }

/* Hazard tape along the bottom of the dangerous goods header. */
.svc-tape { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--action) 12px 24px); }

.svc-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }
.svc-card__title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.svc-card__text { margin: 0; color: var(--ink-muted); }

/* How it works: numbered stops joined by a line. */
.svc-steps { display: flex; margin: var(--space-2) 0 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); list-style: none; }
.svc-steps li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; }
.svc-steps li + li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.svc-steps__dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: var(--on-action); font-size: 13px; }
.svc-card--dg .svc-steps__dot { background: var(--signal); color: var(--ink); }

.svc-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.svc-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.svc-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }

.svc-card__cta { align-self: flex-start; margin-top: auto; }
.svc-card__cta svg { transition: transform .2s ease; }
.svc-card__cta:hover svg, .svc-card__cta:focus-visible svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-card__icon, .svc-card__cta svg { transition: none; }
  .svc-card:hover, .svc-card:focus-within, .svc-card:hover .svc-card__icon { transform: none; }
}

/* About: a dark operations band. An amber parcel travels the route (js/main.js) and lights each stop it reaches. */
.about { background-color: var(--action); background-image: radial-gradient(var(--action-hover) 1.2px, transparent 1.2px); background-size: 24px 24px; color: var(--on-action); }
.about__intro { display: grid; gap: var(--space-6); }
.about__title { margin-top: var(--space-4); max-width: 560px; font-size: 44px; line-height: 52px; text-wrap: balance; }
.about__lead { margin-top: 0; color: var(--line); }
.about__company { margin: var(--space-4) 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }

.chain-wrap { position: relative; margin-top: var(--space-12); }
.chain { display: grid; gap: var(--space-6); margin: 0; padding: 0 0 0 72px; list-style: none; }
/* Each stop draws the dashed segment from its station to the next one. */
.chain__stop:not(:last-child)::before { content: ""; position: absolute; top: 44px; left: -45px; height: calc(100% + var(--space-6)); border-left: 2px dashed var(--line-strong); }
.chain__stop { position: relative; padding: var(--space-4) var(--space-6) var(--space-6); border: 1px solid var(--action-hover); border-radius: var(--radius-md); background: var(--action-hover); transition: transform .35s ease, border-color .35s ease; }
.chain__station { position: absolute; z-index: 1; top: var(--space-4); left: -72px; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--action); color: var(--on-action); box-shadow: 0 0 0 6px var(--action); transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.chain__station svg { width: 24px; height: 24px; }
.chain__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; letter-spacing: .08em; color: var(--signal); }
.chain__title { margin: var(--space-2) 0 0; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--on-action); }
.chain__text { margin: var(--space-2) 0 0; color: var(--line); }
.chain__stop:hover, .chain__stop.is-active { transform: translateY(-4px); border-color: var(--signal); }
.chain__stop:hover .chain__station, .chain__stop.is-active .chain__station { border-color: var(--signal); background: var(--signal); color: var(--ink); }

/* The parcel: an amber crate that hops from station to station. Hidden until the script places it. */
.chain__parcel { position: absolute; z-index: 2; top: 0; left: 0; width: 20px; height: 16px; border-radius: var(--radius-sm); background: var(--signal); box-shadow: 0 0 0 3px var(--action); opacity: 0; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1), opacity .3s ease; pointer-events: none; }
.chain__parcel::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); opacity: .35; }
.chain__parcel.is-visible { opacity: 1; }
.chain__parcel.no-move { transition: opacity .3s ease; }

@media (min-width: 900px) {
  .about__intro { grid-template-columns: 5fr 6fr; gap: var(--space-12); align-items: end; }
  .chain { grid-template-columns: repeat(4, 1fr); padding: 0; }
  .chain__stop { margin-top: 88px; }
  .chain__stop:not(:last-child)::before { top: -61px; left: 52px; width: calc(100% + var(--space-6)); height: 0; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .chain__station { top: -88px; left: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  .chain__stop, .chain__station { transition: none; }
  .chain__stop:hover { transform: none; }
  .chain__parcel { display: none; }
}

/* Contact: an amber call-to-action band between the dark About section and the dark footer. */
.contact { background: var(--signal); color: var(--ink); }
.contact .section__lead { color: var(--ink); }

/* Footer: dark dotted band with an amber ticker, link columns, a dangerous goods callout and a legal line. */
.site-footer { background-color: var(--action); background-image: radial-gradient(var(--action-hover) 1.2px, transparent 1.2px); background-size: 24px 24px; color: var(--on-action); }

.footer-ticker { overflow: hidden; background: var(--signal); color: var(--ink); }
.footer-ticker__track { display: flex; width: max-content; animation: footer-ticker 40s linear infinite; }
.footer-ticker__track span { display: inline-flex; align-items: center; gap: var(--space-6); padding: var(--space-2) var(--space-6) var(--space-2) 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.footer-ticker__track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.footer-ticker:hover .footer-ticker__track { animation-play-state: paused; }
@keyframes footer-ticker { to { transform: translateX(-50%); } }

.footer-main { display: grid; gap: var(--space-12) var(--space-6); padding-top: var(--space-12); padding-bottom: var(--space-12); }
.footer-brand__name { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--on-action); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.footer-brand__mark { width: 36px; height: 36px; }
.footer-brand__text { margin: var(--space-4) 0 0; max-width: 340px; color: var(--line); }

.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-links__title, .footer-callout__title { margin: 0 0 var(--space-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.footer-links a { color: var(--line); text-decoration: none; padding: 2px 0; }
.footer-links a:hover { color: var(--on-action); text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid var(--on-action); outline-offset: 2px; border-radius: var(--radius-sm); }

.footer-callout { padding: var(--space-6); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--action); }
.footer-callout__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: var(--space-4); border-radius: var(--radius-md); background: var(--signal); color: var(--ink); }
.footer-callout__icon svg { width: 20px; height: 20px; }
.footer-callout__title { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--on-action); }
.footer-callout__text { margin: 0 0 var(--space-4); color: var(--line); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-6); border-top: 1px solid var(--action-hover); font-size: 14px; line-height: 20px; color: var(--line); }
.footer-bottom p { margin: 0; }

/* Phones: the two link lists sit side by side; brand and callout take the full width. */
.footer-main { grid-template-columns: 1fr 1fr; }
.footer-brand, .footer-callout { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand, .footer-callout { grid-column: auto; } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: 4fr 2fr 2fr 4fr; } }
@media (prefers-reduced-motion: reduce) { .footer-ticker__track { animation: none; } }

/* Captcha (Turnstile) on the forms: reserve the widget's height so the form doesn't jump when it loads. */
.form-captcha { min-height: 65px; }
.form-captcha:focus { outline: none; }
.form-captcha-field { max-width: none; }
