/* =====================================================================
   ASB Freight — home page layout
   Sections with data-act="…" are see-through so the 3D stage shows;
   every other section has a solid background and covers the stage.
   ===================================================================== */

/* ---- 3D stage (fixed, behind everything) ---------------------------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s var(--ease); }
.stage.is-ready canvas { opacity: 1; }
/* shown when the 3D is off (no WebGL, Data Saver, software rendering, kill switch): a calm wash */
.stage__fallback {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(31, 78, 156, 0.12), transparent 70%),
    radial-gradient(45% 40% at 15% 85%, rgba(31, 78, 156, 0.06), transparent 70%);
}
.no-webgl .stage__fallback { opacity: 1; }
.stage__veil { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }

main, .site-footer { position: relative; z-index: 1; }

/* ---- header --------------------------------------------------------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 18px;
  background: #fff;                 /* solid white so the logo's white JPG background always matches */
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(20, 32, 58, 0.06);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  transition: height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-compact .nav__bar { height: 56px; box-shadow: var(--shadow-2); }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 44px; width: auto; }            /* the 250x96 artwork stays sharp at this size */
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font: 500 15px/1 var(--font-body); color: var(--navy); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { background: var(--paper); }
.nav__links a.is-current { color: var(--blue); }
.nav__links a.is-current::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--orange); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; font: 600 14px/1 var(--font-body); color: var(--navy); text-decoration: none; border-radius: 10px; }
.nav__phone svg { width: 16px; height: 16px; color: var(--orange-deep); }
.nav__phone:hover { background: var(--paper); }
.btn--sm { height: 44px; padding-left: 18px; gap: 10px; font-size: 14px; }
.btn--sm .arrow { width: 30px; height: 30px; }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper); cursor: pointer; place-items: center; }
.nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -6px; } .nav__burger::after { top: 6px; }
.nav__menu[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__menu[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav__sheet {
  pointer-events: auto; max-width: var(--max); margin: 8px auto 0; padding: 12px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-2);
  display: grid; gap: 2px;
}
.nav__sheet[hidden] { display: none; }
@media (min-width: 901px) { .nav__sheet { display: none !important; } }
.nav__sheet a:not(.btn) { padding: 14px 12px; border-radius: 10px; font: 500 18px/1 var(--font-body); text-decoration: none; color: var(--navy); }
.nav__sheet a:not(.btn):hover { background: var(--paper); }
.nav__sheet .btn { margin-top: 8px; justify-content: space-between; }

@media (max-width: 1100px) { .nav__phone span { display: none; } }
@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .nav__menu { display: grid; }
  .nav__logo img { height: 38px; }
}
@media (max-width: 480px) { .nav__actions .btn--sm { display: none; } }

/* ---- shared section bits -------------------------------------------- */
section { position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.accent-blue { color: var(--blue); }

/* ---- hero: the home screen's rules all live in hero.css ------------------- */

/* ---- home screen, step 2: the grade line and the three number tiles --------
   (base look only; hero.css places and sizes them inside the pinned home screen) */
.welcome__grade { font-size: 20px; color: var(--navy); line-height: 1.45; }
.welcome__grade strong { font-weight: 600; }
/* three facts, three glass tiles */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(56px, 7vw, 96px); }
.fact { position: relative; padding: clamp(24px, 2.6vw, 36px) clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 32px); border-radius: 24px; }
.fact__n { font: 300 clamp(44px, 5vw, 76px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--navy); }
.fact__n small { font-size: 0.32em; letter-spacing: 0; margin-left: 6px; color: var(--orange-deep); font-weight: 500; }
.fact dd { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); max-width: 24ch; }
@media (max-width: 640px) {
  /* phones: one tile per row, the number beside its label */
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .fact { display: grid; grid-template-columns: minmax(118px, auto) 1fr; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; }
  .fact__n { font-size: 44px; }
  .fact dd { margin: 0; font-size: 14px; }
}

/* ---- solutions journey (3D port) --------------------------------------- */
.journey { padding: calc(clamp(80px, 10vw, 140px) + 32px) 0 0; }
.journey::before { /* soft paper fade so the head reads over the stage */
  content: ""; position: absolute; inset: 0 0 auto; height: 60vh; pointer-events: none;
  background: linear-gradient(var(--white), rgba(255, 255, 255, 0));
}
.journey__head { position: relative; display: grid; gap: 18px; margin-bottom: 18vh; }
.stop { min-height: 135vh; display: flex; align-items: flex-start; }
.stop__card {
  position: sticky; top: calc(var(--nav-h) + 48px);
  width: min(460px, calc(100% - 2 * var(--gutter)));
  margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding: 30px 30px 26px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px; box-shadow: var(--shadow-2);
  font-size: 16px; color: var(--ink-2);
}
.stop__num { font: 600 13px/1 var(--font-body); letter-spacing: 0.18em; color: var(--navy); margin-bottom: 14px; }
.stop__card h3 { color: var(--navy); margin-bottom: 10px; font-size: clamp(28px, 2.6vw, 44px); }
.stop__tag { font: 600 15px/1.3 var(--font-body); color: var(--blue); margin-bottom: 16px; }
.stop__sub { color: var(--navy); font-weight: 600; margin-bottom: 10px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 13px; border-radius: var(--pill); background: var(--paper); font: 500 14px/1.2 var(--font-body); color: var(--navy); }

.journey__rail {
  padding: 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-1);
  position: fixed; right: max(18px, calc((100vw - var(--max)) / 2 + 18px)); top: 50%; transform: translateY(-50%);
  z-index: 5; display: flex; gap: 14px; align-items: stretch; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.journey__rail.is-on { opacity: 1; }
.journey__rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.journey__rail li { font: 600 12px/1 var(--font-body); color: var(--ink-3); letter-spacing: 0.1em; transition: color 0.3s; }
.journey__rail li.is-on { color: var(--navy); }
.journey__rail-fill { width: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.journey__rail-fill::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--p, 0%); background: var(--orange); }

@media (max-width: 900px) {
  /* phones: a clear look at the 3D first, then the card scrolls up in normal flow */
  .stop { min-height: 0; display: block; padding-top: 62vh; }
  .stop__card { position: relative; top: auto; margin: 0 var(--gutter); width: auto; padding: 22px 20px; }
  .stop__card .ticks li { font-size: 14px; }
  .journey__rail { display: none; }
  .journey__head { margin-bottom: 0; }
}

/* ---- home screen, step 3: registrations badges and Global Networks ---------
   (base look only; hero.css places and sizes them inside the pinned home screen) */
.badges { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); }
.badges li {
  position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; align-content: start;
  padding: 10px 10px 18px; border-radius: 20px;
  text-align: center; font: 600 14px/1.35 var(--font-body); color: #fff;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04) 70%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 34px 60px -30px rgba(0, 0, 0, 0.75);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.badges li:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.32); }
.badges li span { align-self: center; padding: 0 4px; }
.badges img { width: 100%; height: 132px; object-fit: contain; background: #fff; border-radius: 14px; padding: 14px; }
@media (max-width: 1100px) {
  .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badges .badge--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .badges li { padding: 8px 8px 14px; gap: 10px; font-size: 13px; border-radius: 18px; }
  .badges img { height: 104px; padding: 10px; border-radius: 12px; }
}
/* Global Networks: the featured row */
.networks {
  position: relative; margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 40px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 48px); border-radius: 26px;
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(245, 131, 31, 0.14), transparent 60%),
    linear-gradient(110deg, rgba(31, 78, 156, 0.55), rgba(31, 78, 156, 0.14) 55%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.networks__title { font: 400 clamp(28px, 3vw, 46px)/1 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.networks__logos { display: flex; gap: clamp(12px, 1.6vw, 20px); flex-wrap: wrap; justify-content: flex-end; }
.networks__logos img {
  width: clamp(200px, 20vw, 290px); height: auto; background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 26px 50px -22px rgba(0, 0, 0, 0.7), 0 0 46px -8px rgba(80, 130, 230, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.networks__logos img:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #fff, 0 30px 60px -22px rgba(0, 0, 0, 0.7), 0 0 60px -6px rgba(245, 131, 31, 0.55); }
@media (max-width: 760px) {
  .networks { grid-template-columns: 1fr; }
  .networks__logos { justify-content: flex-start; }
  .networks__logos img { width: calc(50% - 8px); min-width: 0; }
}

/* ---- carriers: compact, an Air | Sea switch, every logo in view -------------
   A paper panel with rounded top corners, like the other solid sections that slide
   over the 3D stage. The extra 32px at the bottom sits under About's rounded corners. */
.carriers {
  background: var(--paper);
  padding: clamp(84px, 8.5vw, 124px) 0 calc(clamp(72px, 7.5vw, 112px) + 32px);
  border-radius: 32px 32px 0 0; overflow: clip;
}
.carriers > .wrap { position: relative; z-index: 1; }
.carriers__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 2.6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.carriers .section-head { gap: 18px; margin: 0; align-content: center; justify-items: start; }
.carriers__title { font-size: clamp(44px, 4.6vw, 76px); line-height: 1; }

/* the panel: the switch on top, the logo grid under it */
.carriers__panel { position: relative; display: grid; gap: 16px; padding: clamp(12px, 1.2vw, 18px); border-radius: 28px; }
.carriers__tabs {
  position: relative; justify-self: start; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: var(--pill); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 58, 0.08), 0 10px 24px -16px rgba(20, 32, 58, 0.4);
}
.carriers__tabs [role="tab"] {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 112px; height: 42px; padding: 0 20px; border: 0; border-radius: var(--pill); background: none;
  font: 600 14px/1 var(--font-body); letter-spacing: 0.02em; color: var(--ink-2); cursor: pointer;
  transition: color 0.35s var(--ease);
}
.carriers__tabs [role="tab"]:hover { color: var(--navy); }
.carriers__tabs [role="tab"][aria-selected="true"] { color: #fff; }
.carriers__tabs svg { width: 16px; height: 16px; flex: none; }
/* the navy pill slides under the chosen tab */
.carriers__tabs::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: var(--pill); background: var(--navy);
  box-shadow: 0 8px 18px -8px rgba(20, 32, 58, 0.6);
  transition: transform 0.5s var(--ease);
}
.carriers__tabs:has(> [aria-selected="true"]:last-child)::before { transform: translateX(100%); }
@supports not selector(:has(*)) {
  .carriers__tabs::before { display: none; }
  .carriers__tabs [role="tab"][aria-selected="true"] { background: var(--navy); }
}

.carriers__list { min-width: 0; border-radius: 18px; }
/* with JavaScript the two lists share one cell: the panel keeps the taller list's height, so
   nothing below jumps when the switch changes; the list that is off stays laid out, unseen */
html.js .carriers__list { grid-row: 2; grid-column: 1; }
html.js .carriers__list[hidden] { display: block !important; visibility: hidden; }
html.js .carriers__list.is-leaving { visibility: visible; pointer-events: none; }
/* each list's name ("Air", "Sea"): shown only without JavaScript and in print, where both show */
.carriers__list::before {
  content: attr(data-label); display: none; margin: 0 0 14px;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
html:not(.js) .carriers__list::before { display: block; }
html:not(.js) .carriers__list + .carriers__list { margin-top: 22px; }

/* one white tile per carrier (the logo files are on white); every logo is always in view */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 0.9vw, 14px); }
.logos li {
  position: relative; display: grid; place-items: center;
  height: clamp(84px, 7.2vw, 108px); padding: 14px 20px;
  background: #fff; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 58, 0.07), 0 1px 2px rgba(20, 32, 58, 0.05), 0 16px 30px -22px rgba(20, 32, 58, 0.5);
  transform-origin: 50% 0;   /* the flap's hinge, for the flip in fx.js */
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.logos img { width: 100%; height: 100%; max-height: 62px; object-fit: contain; }
/* ::before is a soft light under the mouse pointer; ::after the light that runs over a tile as it
   lands (fx.js moves both; at rest neither shows) */
.logos li::before, .logos li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.logos li::before { opacity: 0; transition: opacity 0.4s; background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(31, 78, 156, 0.1), transparent 60%); }
.logos li::after { background: linear-gradient(105deg, transparent 44%, rgba(150, 178, 232, 0.22) 48.5%, rgba(255, 255, 255, 0.65) 50%, rgba(150, 178, 232, 0.22) 51.5%, transparent 56%) 120% 0 / 300% 100% no-repeat; }
@media (hover: hover) and (pointer: fine) {
  .logos li:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(31, 78, 156, 0.18), 0 2px 4px rgba(20, 32, 58, 0.05), 0 28px 40px -22px rgba(31, 78, 156, 0.55); }
  .logos li:hover::before { opacity: 1; }
}
@media (max-width: 1180px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .carriers__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .carriers__panel { padding: 8px; gap: 12px; border-radius: 22px; }
  .carriers__tabs { justify-self: stretch; }
  .carriers__tabs [role="tab"] { min-width: 0; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .logos li { height: 76px; padding: 12px 14px; border-radius: 14px; }
  .logos img { max-height: 46px; }
}

/* ---- about + clients: one compact navy section --------------------------------
   Overlaps the carriers' extra bottom padding by 32px, so its rounded corners show paper. */
.about {
  z-index: 1; margin-top: -32px;
  background: var(--navy); color: rgba(255, 255, 255, 0.78);
  padding: clamp(88px, 9vw, 128px) 0 0; border-radius: 32px 32px 0 0;   /* no overflow: .vmv inside is sticky */
}
.about > .wrap { position: relative; z-index: 1; }
.about h2, .about h3 { color: #fff; }
.about sup { font-size: 0.42em; line-height: 0; vertical-align: super; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.about__intro .eyebrow { display: flex; width: fit-content; margin-bottom: 20px; }
.about__intro h2 { margin-bottom: clamp(18px, 2vw, 28px); font-size: clamp(42px, 4.8vw, 78px); line-height: 1; }
.about__lead { max-width: 58ch; margin-bottom: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, 0.86); }

/* "More about us": a disclosure (fx.js opens it smoothly; natively without it) */
.about__more { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.about__more > summary {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; list-style: none; cursor: pointer;
  font: 600 16px/1.2 var(--font-body); color: #fff;
}
.about__more > summary::-webkit-details-marker { display: none; }
.about__more > summary > span {
  order: -1; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); font: 300 22px/1 var(--font-body); color: var(--orange);
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.about__more > summary:hover > span, .about__more[open] > summary > span { border-color: rgba(245, 131, 31, 0.7); background-color: rgba(245, 131, 31, 0.12); }
.about__more[open] > summary > span { transform: rotate(45deg); }
.about__more.is-closing > summary > span { transform: none; }
.about__more-body { padding: 4px 0 24px; }
.about__more-body > p { max-width: 62ch; font-size: 16px; color: rgba(255, 255, 255, 0.82); }
.objectives__title { margin: 22px 0 14px; font: 400 22px/1.2 var(--font-display); }
.objectives { list-style: none; counter-reset: obj; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.objectives li {
  counter-increment: obj; position: relative; padding: 12px 16px 12px 50px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.9);
}
.objectives li::before { content: counter(obj, decimal-leading-zero); position: absolute; left: 16px; top: 13px; font: 600 12px/1.6 var(--font-body); letter-spacing: 0.08em; color: var(--orange-light); }
.objectives li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Our Group: the two companies as chips, the button beside them */
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(24px, 2.6vw, 34px); }
.group h3 { flex: 1 0 100%; font: 400 26px/1.1 var(--font-display); }
.group p { flex: 1 0 100%; max-width: 62ch; margin: 0 0 6px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.76); }
.group__cos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.group__cos li {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font: 600 14px/1 var(--font-body); color: #fff;
}
.group .btn { height: 42px; padding-left: 18px; gap: 10px; font-size: 14px; }
.group .btn .arrow { width: 30px; height: 30px; }

/* Vision, Mission, Values: three slim cards, level with the heading; on wide screens they stay in
   view while "More about us" is read (sticky; nothing above them has a transform or overflow) */
.vmv { display: grid; gap: 12px; }
@media (min-width: 981px) { .vmv { position: sticky; top: calc(var(--nav-h) + 40px); margin-top: 34px; } }
.vmv__card { position: relative; padding: 22px 26px 24px; border-radius: 20px; }
.vmv__card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font: 400 26px/1 var(--font-display); }
.vmv__card h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.vmv__card p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }

/* Our Clients: a slim strip along the bottom of the section. Without the effects (no
   JavaScript, reduced motion) the logos wrap as a still grid; fx.js makes it run (fx.css). */
.clients {
  position: relative; z-index: 1; max-width: var(--max); margin: clamp(56px, 6vw, 88px) auto 0;
  padding: 24px var(--gutter) clamp(32px, 3.6vw, 48px);
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px);
}
.clients::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.clients__head { flex: none; width: auto; max-width: none; margin: 0; padding: 0; }
.clients__title { font: 600 12px/1.3 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.marquee { position: relative; flex: 1 1 auto; min-width: 0; }
.marquee__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.marquee__track li {
  display: grid; place-items: center; height: 60px; padding: 3px 6px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.7);
}
.marquee__track img { width: 100%; height: 100%; object-fit: contain; }
/* the strip's pause button (WCAG 2.2.2), made by fx.js only while the strip runs */
.marquee__toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px;
  border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.06);
  font: 600 12px/1 var(--font-body); letter-spacing: 0.02em; color: #fff; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.marquee__toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.marquee__toggle-icon { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.marquee__toggle[data-paused] .marquee__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent currentColor; }

@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .vmv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vmv { grid-template-columns: 1fr; }
  .objectives { grid-template-columns: 1fr; }
  .clients { flex-wrap: wrap; justify-content: space-between; row-gap: 16px; }
  .marquee { order: 3; flex-basis: 100%; }
  .marquee__track { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .marquee__track li { height: 52px; }
}
@media (max-width: 600px) {
  .vmv__card { padding: 18px 20px 20px; }
  .vmv__card h3 { font-size: 23px; }
  .vmv__card p { font-size: 15px; }
}

/* ---- offices (3D island) ------------------------------------------------ */
.offices { min-height: 160vh; padding: clamp(110px, 12vw, 170px) 0 18vh; }
.offices { color: rgba(255, 255, 255, 0.8); background: var(--navy); transition: background-color 0.8s; }
/* see-through only while the 3D island is actually drawing; otherwise a readable navy section */
html.stage-live .offices { background: transparent; }
.offices h2 { color: #fff; }
.offices .eyebrow { color: rgba(255, 255, 255, 0.72); }
.offices__grid { position: sticky; top: calc(var(--nav-h) + 60px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.offices__copy h2 { margin: 18px 0 30px; max-width: 17ch; font-size: clamp(32px, 3.4vw, 54px); }
/* a navy glass panel, so the copy reads the same whatever the island scene draws behind it */
.offices__copy {
  position: relative; max-width: 540px; padding: clamp(24px, 2.4vw, 36px);
  border-radius: 26px; background: linear-gradient(160deg, rgba(12, 22, 43, 0.82), rgba(20, 32, 58, 0.62));
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 44px 90px -40px rgba(0, 0, 0, 0.6);
}
.offices__copy h2 { font-size: clamp(30px, 3vw, 48px); }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 440px; }
.office-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), background 0.3s;
}
.office-list li.is-on { border-color: rgba(245, 131, 31, 0.7); box-shadow: inset 3px 0 0 var(--orange); background: rgba(255, 255, 255, 0.09); }
.office-list strong { display: block; color: #fff; font-size: 16px; }
.office-list span { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.office-list__pin { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); position: relative; }
.office-list__pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background 0.3s; }
.office-list li.is-on .office-list__pin::after { background: var(--orange); }
@media (max-width: 900px) {
  .offices { min-height: auto; padding-top: 64vh; padding-bottom: 12vh; }
  .offices__copy h2 { max-width: none; font-size: clamp(30px, 6.5vw, 42px); }
  .office-list { max-width: none; }
  .offices__grid { position: relative; top: 0; grid-template-columns: 1fr; }
  .offices__space { display: none; }
  .offices__copy { max-width: none; background: rgba(20, 32, 58, 0.88); padding: 26px 20px 22px; border-radius: 22px; }
}

/* ---- contact ----------------------------------------------------------- */
.contact { background: var(--paper); padding: clamp(96px, 11vw, 150px) 0; border-radius: 32px 32px 0 0; }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__info h2 { margin: 18px 0 18px; }
.contact__info .lead { margin-bottom: 36px; }
.contact__block, .contact__people, .contact__depts { padding: 26px 0; border-top: 1px solid var(--line); }
.contact__info h3 { font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.contact__info address { font-style: normal; color: var(--navy); font-size: 17px; line-height: 1.55; margin-bottom: 16px; }
.contact__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact__lines li { display: grid; grid-template-columns: 82px 1fr; color: var(--navy); font-weight: 500; }
.contact__lines span { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.contact__info a { color: var(--navy); text-decoration-color: rgba(245, 131, 31, 0.7); text-underline-offset: 3px; }
.contact__info a:hover { color: var(--blue); }
.contact__people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__people p { margin: 0; color: var(--ink-2); font-size: 15px; }
.contact__people strong { color: var(--navy); font-size: 16px; }
.contact__depts summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font: 600 15px/1 var(--font-body); color: var(--navy); }
.contact__depts summary::-webkit-details-marker { display: none; }
.contact__depts[open] summary span { transform: rotate(45deg); }
.contact__depts summary span { transition: transform 0.3s var(--ease); font-size: 22px; line-height: 0.7; color: var(--orange-deep); }
.contact__depts dl { margin: 10px 0 0; display: grid; gap: 0; }
.contact__depts dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.contact__depts dt { color: var(--navy); } .contact__depts dd { margin: 0; color: var(--ink-2); }

.form-card { background: #fff; border-radius: 26px; padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow-2); display: grid; gap: 26px; position: relative; }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-card .segmented { justify-self: start; }
.chips { align-items: center; }
.chips__legend { float: left; margin-right: 12px; padding: 0; font: 600 13px/1.2 var(--font-body); color: var(--ink-2); width: 100%; margin-bottom: 8px; }
/* department: pill tabs (radio buttons underneath, so keyboard and screen readers work as a normal choice) */
.picks { gap: 10px; }
.picks__legend { float: left; width: 100%; padding: 0; font: 600 13px/1.2 var(--font-body); color: var(--ink-2); }
.picks__row { display: flex; flex-wrap: wrap; gap: 8px; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 11px;
  border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; color: var(--navy);
  font: 600 14px/1 var(--font-body); cursor: pointer; user-select: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.picks label::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); box-sizing: border-box;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.picks label:hover { border-color: var(--navy); }
.picks input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px -8px rgba(20, 32, 58, 0.6); }
.picks input:checked + label::before {
  border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.picks input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.picks input[aria-invalid="true"] + label { border-color: #c0392b; }
.picks__hint { margin: 0; font-size: 13px; color: var(--ink-3); }
/* phones: each row of pills fills the width, so the group reads as a tidy set of buttons, and they are thumb-sized */
@media (max-width: 560px) { .picks label { flex: 1 1 auto; padding-top: 12px; padding-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .picks label, .picks label::before { transition: none; } }

.form-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 22px; }
.form-card__foot .small { margin: 0; max-width: 36ch; }
.req { color: var(--orange-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card__done { padding: 18px 20px; border-radius: 14px; background: rgba(31, 78, 156, 0.08); color: var(--navy); font-weight: 500; }
.form-card__done:empty { padding: 0; background: none; margin-top: -26px; }
.form-card.is-sending .btn { opacity: 0.6; pointer-events: none; }
@media (max-width: 980px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact__people { grid-template-columns: 1fr; } .segmented label { padding: 10px 14px; } }

/* ---- loading state ---------------------------------------------------- */

/* service card contact link */
.stop__cta { margin-top: 18px; color: var(--blue); }


/* short laptop screens: compact service cards so the whole card fits while it holds */
@media (min-width: 901px) and (max-height: 860px) {
  .stop__card { padding: 24px 26px 20px; }
  .stop__card h3 { font-size: clamp(28px, 2.8vw, 42px); }
  .stop__card p { margin-bottom: 0.75em; }
  .ticks { gap: 6px; }
  .ticks li { font-size: 14px; }
}
/* short laptop screens (1366×768, 1280×800): a tighter offices panel, so the whole list stays in view
   while it holds (main.js holds it by its bottom edge on a screen shorter still) */
@media (min-width: 901px) and (max-height: 820px) {
  .offices__grid { top: calc(var(--nav-h) + 24px); }
  .office-list { gap: 6px; }
  .office-list li { padding: 11px 16px; }
  .offices__copy h2 { margin: 12px 0 18px; }
  .offices__copy { padding: 22px 26px; }
}
/* shorter still (1280×680): the heading takes the panel's full width, a line less */
@media (min-width: 901px) and (max-height: 700px) {
  .offices__copy h2 { max-width: none; font-size: clamp(28px, 2.6vw, 38px); }
  .office-list li { padding: 9px 14px; }
}
@media (min-width: 601px) and (max-width: 900px) { .office-list { grid-template-columns: 1fr 1fr; } }

/* ---- without JavaScript: everything is readable in normal flow ---------------- */
html:not(.js) .stop { min-height: 0; padding: 4vh 0; }
html:not(.js) .stop__card { position: relative; top: auto; }
html:not(.js) .offices { min-height: 0; padding-bottom: 80px; }
html:not(.js) .offices__grid { position: relative; top: auto; }
html:not(.js) .journey__rail, html:not(.js) .scroll-cue, html:not(.js) .stage { display: none; }
html:not(.js) .nav__menu { display: none; }
html:not(.js) .form-grid[data-mode][hidden] { display: grid !important; }
html:not(.js) .carriers__tabs { display: none; }
@media (max-width: 900px) {
  html:not(.js) .nav__bar { height: auto; flex-wrap: wrap; padding: 8px 12px; }
  html:not(.js) .nav__links { display: flex; flex-wrap: wrap; order: 3; width: 100%; margin: 0; }
}

/* ---- print: a clean, readable document -------------------------------------- */
@media print {
  .stage, .nav, .scroll-cue, .journey__rail, .continents, .skip { display: none !important; }
  .hero, .stop, .offices { height: auto !important; min-height: 0 !important; padding-top: 24px !important; }
  .hero__pin, .stop__card, .offices__grid { position: static !important; height: auto !important; }
  [data-fx], .fx-el { transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .fx-floor, .fx-trail, .stop__ghost, .stop__meter { display: none !important; }
  .carriers__tabs, .marquee__toggle { display: none !important; }
  .carriers__list[hidden] { display: block !important; visibility: visible !important; }
  .carriers__list { grid-row: auto !important; }
  .carriers__list::before { display: block; }
  .carriers__list + .carriers__list { margin-top: 18px; }
  .offices, .about, .site-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .offices { background: var(--navy) !important; }
}
