/* Skip-to-content link — injected by chrome.js on every page. Visible on
   focus only; keeps screen-reader / keyboard users from tabbing through the
   whole topbar on every navigation. */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: #0B1220; color: #FFFFFF;
  padding: 10px 14px; border-radius: 0 0 6px 0;
  z-index: 9999; font-size: 14px; font-weight: 600;
  font-family: var(--font-body, system-ui, sans-serif);
  text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible {
  left: 0;
  outline: 2px solid var(--sky-500, #2E86F0); outline-offset: 2px;
}

/* Top nav — flow-based layout so columns cannot visually collide. */
:root {
  /* Brand lockup sizing — applies site-wide. The homepage Tweaks panel can
     override --logo-scale / --hdr-h / --logo-padleft at :root level. */
  --logo-base: 40px;
  --logo-scale: 1.3;
  --hdr-h: 84px;
  --logo-padleft: 0px;
}
#topbar-slot {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #fff;
  /* Reserve header height before chrome.js renders the topbar HTML — kills the
     Cumulative Layout Shift that used to happen on every first paint. */
  min-height: var(--hdr-h, 84px);
}
#announce-slot:empty,
#footer-slot:empty {
  /* keep zero footprint until populated; topbar reserves height explicitly above */
  min-height: 0;
}
.topbar {
  position: relative;
  z-index: 70;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--slate-200);
}
.topbar__inner {
  position: relative;
  background: #fff;
  max-width: none; margin: 0;
  padding: 0 var(--gutter);
  /* Three columns: brand | nav | actions. The two outer columns are equal
     (1fr), so the centre column — the nav — is always centred on the viewport
     (aligned with the centred page content below). Because every group stays
     in normal flow, they can no longer overlap the way the old
     absolutely-positioned nav did. chrome.js adds .is-collapsed (hamburger
     mode) the instant the three groups stop fitting on one row. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--hdr-h, 84px);
}
.topbar__inner > .brand { grid-column: 1; justify-self: start; }
.topbar__inner > .nav { grid-column: 2; justify-self: center; }
.topbar__inner > .topbar__cta { grid-column: 3; justify-self: end; }
.topbar__inner > .topbar__burger { grid-column: 3; justify-self: end; }

/* Mobile-nav toggle (hamburger). Hidden at desktop; visible at narrow vw. */
.topbar__burger {
  display: none;
  margin-left: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--slate-200);
  background: white; border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.topbar__burger:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.topbar__burger svg { width: 22px; height: 22px; color: var(--ink); }

.topbar__drawer {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--hdr-h, 84px);
  background: white;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-2, 0 8px 24px -12px rgba(11,18,32,.14));
  padding: 18px var(--gutter);
  z-index: 70;
}
.topbar__drawer.is-open { display: block; }
.topbar__drawer .drawer-section { margin-bottom: 18px; }
.topbar__drawer .drawer-section:last-child { margin-bottom: 0; }
.topbar__drawer .drawer-section h6 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate-500); margin: 0 0 8px;
  font-weight: 500;
}
.topbar__drawer a {
  display: block; padding: 10px 12px; border-radius: 6px;
  font-size: 14.5px; color: var(--ink); text-decoration: none;
}
.topbar__drawer a:hover { background: var(--slate-50); }
.topbar__drawer .drawer-cta {
  display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--slate-200); margin-top: 12px;
}
.topbar__drawer .drawer-cta a { padding: 10px 14px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.topbar__drawer .drawer-cta .btn--primary { background: var(--sky-700); color: white; }
.topbar__drawer .drawer-cta .btn--ghost { background: white; color: var(--ink); border: 1px solid var(--slate-200); }
.brand {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em; font-size: 18px;
  color: var(--ink);
  flex: 0 0 auto;               /* never shrinks, never grows */
}
/* Legacy bitmap logo is hidden everywhere — SVG wordmark is the canonical mark. */
.brand img.brand__logo { display: none !important; }
.brand .brand__svg {
  height: calc(var(--logo-base, 40px) * var(--logo-scale, 1));
  width: calc(var(--logo-base, 40px) * var(--logo-scale, 1) * 2200 / 634);
  max-width: none;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
  aspect-ratio: 2200 / 634;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}
.foot .brand .brand__svg {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.nav {
  display: flex; gap: 2px; align-items: center;
  justify-content: center;
  /* Sized to its own content (the auto grid track) and never wraps — when the
     labels stop fitting, chrome.js collapses the whole bar to the hamburger. */
  flex: 0 0 auto;
  white-space: nowrap;
}
.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav a {
  padding: 8px 9px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--slate-700);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
}
.nav a:hover { color: var(--ink); background: var(--slate-50); }
.nav a.is-active { color: var(--sky-700); background: var(--sky-50); }
.nav__item.is-active > .nav__link { color: var(--sky-700); background: var(--sky-50); }
.nav__caret {
  width: 10px; height: 10px; opacity: .5;
  transition: transform .18s ease, opacity .18s ease;
}
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret,
.nav__item--has-menu.is-open .nav__caret {
  opacity: .85;
  transform: rotate(180deg);
}
.nav__item--has-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 330px;
  padding: 10px;
  border: 1px solid rgba(195, 205, 220, .82);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 58px -28px rgba(11,18,32,.48), 0 10px 30px -22px rgba(10,77,173,.35);
  backdrop-filter: saturate(1.25) blur(16px);
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 80;
}
.nav-menu::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,.96);
  border-left: 1px solid rgba(195, 205, 220, .82);
  border-top: 1px solid rgba(195, 205, 220, .82);
  transform: rotate(45deg);
}
.nav__item--has-menu:hover .nav-menu,
.nav__item--has-menu:focus-within .nav-menu,
.nav__item--has-menu.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-menu--platform {
  min-width: 410px;
}
.nav-menu--industries {
  min-width: 380px;
}
.nav__item:nth-last-child(-n+3) .nav-menu {
  left: auto;
  right: 0;
}
.nav__item:nth-last-child(-n+3) .nav-menu::before {
  left: auto;
  right: 24px;
}
.nav-menu__item {
  position: relative;
  display: grid !important;
  gap: 3px !important;
  padding: 11px 12px !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid transparent;
}
.nav-menu__item:hover,
.nav-menu__item:focus-visible {
  background:
    linear-gradient(180deg, rgba(238,244,252,.88), rgba(255,255,255,.96)) !important;
  border-color: var(--sky-100);
  box-shadow: 0 8px 22px -18px rgba(10,77,173,.5);
}
.nav-menu__item span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.nav-menu__item small {
  color: var(--slate-500);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.topbar__cta {
  display: flex; gap: 10px; align-items: center;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}
.topbar__cta .btn {
  white-space: nowrap;
}
/* The old `min-width: 1401px` rule absolutely-positioned the nav at the
   viewport centre, taking it out of flow — that is exactly why the labels
   overlapped the language switcher / CTA on some viewport widths and fonts.
   The grid layout above centres the nav at every width without overlapping,
   so that override is gone. */
.topbar__search {
  width: 180px;
  display: none; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--slate-200);
  border-radius: 999px; color: var(--slate-500);
  font-size: 13px; background: var(--white);
}
.topbar__search:hover { border-color: var(--slate-300); color: var(--slate-700); }
.topbar__search kbd {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 2px 6px; border: 1px solid var(--slate-200);
  border-radius: 4px; background: var(--slate-50);
}
@media (max-width: 1800px) {
  .topbar__search { display: none; }
}
/* Progressively drop the lower-priority CTAs on tighter screens so the centred
   nav can stay visible longer before the bar collapses to the hamburger. */
@media (max-width: 2100px) {
  .topbar__cta a[href$="contact.html"] { display: none; }
}
@media (max-width: 1640px) {
  .topbar__inner { gap: 18px; }
  .nav { gap: 0; }
  .nav a {
    padding: 7px 7px;
    font-size: 13px;
    gap: 5px;
  }
  #client-cta { display: none; }
}

/* Hamburger mode. chrome.js (installNavFit) measures whether the brand, nav and
   CTA actually fit on one line and toggles .is-collapsed accordingly, so the
   desktop↔hamburger handoff adapts to language, font and zoom instead of a
   guessed pixel width — this is what keeps the nav from overlapping the CTA on
   any device or browser. */
.topbar__inner.is-collapsed .nav,
.topbar__inner.is-collapsed .topbar__search,
.topbar__inner.is-collapsed .topbar__cta { display: none; }
.topbar__inner.is-collapsed .topbar__burger { display: inline-flex; }

/* No-JS / small-screen safety floor: phones and small tablets always get the
   hamburger even if the adaptive script never runs. The script governs the
   wider, adaptive range above this width. */
@media (max-width: 1024px) {
  .topbar__inner .nav,
  .topbar__inner .topbar__search,
  .topbar__inner .topbar__cta { display: none; }
  .topbar__inner .topbar__burger { display: inline-flex; }
}

/* Announcement strip */
.announce {
  background: var(--ink); color: #DCE8F9;
  font-size: 13px;
}
.announce__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: space-between;
}
.announce a { color: white; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { color: var(--sky-400); }
.announce .chip--dark { padding: 3px 8px; font-size: 10.5px; }

/* Footer */
.foot {
  background: var(--ink); color: #C7D2E0;
  padding: 88px 0 40px;
}
.foot a:hover { color: white; }
.foot__top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 40px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot__brand,
.foot__col { min-width: 0; }
.foot__brand h4 { color: white; font-size: 18px; margin-bottom: 12px; }
.foot__brand p { color: #8FA0BC; font-size: 14px; max-width: 32ch; }
.foot__col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: #8FA0BC;
  margin: 0 0 16px; font-weight: 500;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot__col a { font-size: 14px; color: #C7D2E0; overflow-wrap: anywhere; }
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; color: #8FA0BC; font-size: 13px; gap: 20px; flex-wrap: wrap;
}
.foot__bottom .links { display: flex; gap: 20px; }
@media (max-width: 900px) {
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .foot { padding: 64px 0 32px; }
  .foot__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .foot__bottom .links { flex-wrap: wrap; gap: 12px 16px; }
}
