/* Shared compact navigation for the product, company and news pages. */
@media (max-width: 900px) {
  html body { overflow-x: clip; }
  html body.mobile-menu-open { overflow: hidden; }
  html body .site-header { position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; height: 66px; padding: 0 5vw; gap: 0; background: rgba(5,8,14,.95); backdrop-filter: blur(12px); }
  html body .brand { position: relative; z-index: 2; }
  html body .brand img { width: clamp(160px,26vw,200px); }
  html body .site-header .main-nav > .language { position: relative; z-index: 2; display: flex; flex: 0 0 auto; align-self: flex-start; align-items: center; order: -1; margin: 0 0 auto; gap: 36px; }
  html body .main-nav > .language button { display: grid; place-items: center; min-width: 48px; min-height: 48px; font-size: 22px; cursor: pointer; }
  html body .main-nav > .language button:disabled { cursor: default; }
  html body .main-nav > .language button:first-child::after { left: calc(100% + 17px); }
  html body .menu-toggle { position: relative; z-index: 2; display: grid; place-items: center; align-self: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; color: transparent; font-size: 0; cursor: pointer; }
  html body .menu-toggle span { display: block; position: relative; width: 28px; height: 18px; font-size: 0; }
  html body .menu-toggle span::before, html body .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 28px; height: 2px; background: #0a50f5; transform-origin: center; transition: top .32s cubic-bezier(.22,1,.36,1), transform .32s cubic-bezier(.22,1,.36,1); }
  html body .menu-toggle span::before { top: 3px; }
  html body .menu-toggle span::after { top: 13px; }
  html body .menu-toggle[aria-expanded="true"] span::before { top: 8px; transform: rotate(45deg); }
  html body .menu-toggle[aria-expanded="true"] span::after { top: 8px; transform: rotate(-45deg); }
  html body .site-header .main-nav { display: flex; position: fixed; top: 66px; left: 0; right: 0; width: 100%; height: auto; height: min(76dvh, 780px); min-height: 0; max-height: calc(100dvh - 100px); padding: 56px 8vw clamp(80px, 9dvh, 110px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; overflow-y: auto; background: rgba(5,8,14,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity .35s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility .4s; }
  html body .site-header .main-nav.menu-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  html body .site-header .main-nav > a, html body .site-header .main-nav > .product-link { display: flex; flex: 0 0 auto; width: 100%; height: auto; min-height: 60px; margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(10,80,245,.5); font-size: clamp(20px,4.9vw,34px); font-weight: 300; line-height: 1.2; letter-spacing: 0; white-space: normal; opacity: 1; transform: none; transition: color .25s ease; }
  html body .site-header .main-nav > .product-link { margin-bottom: 32px; border-bottom: 0; font-family: D-DIN-PRO,sans-serif; font-size: clamp(26px, 6.37vw, 44px); font-weight: 400; }
  html body .site-header .main-nav > a:active { color: #9aafcd; }
  html body .site-header .main-nav > a .nav-label { line-height: 1.2; }
  html body .site-header .main-nav .nav-indicator { display: none; }
  html body .site-header .main-nav > a:is(:hover,:focus-visible) { color: #9aafcd; }
}
@media (max-width: 360px) {
  html body.company-page .team-section { grid-template-columns: minmax(0,1fr); }
  html body.company-page .team-slideshow, html body.company-page .team-stats { min-width: 0; width: 100%; }
  html body.company-page .team-stats > div > strong { font-size: clamp(60px,27vw,86px); }
  html body .brand img { width: 145px; }
  html body .site-header .main-nav > a, html body .site-header .main-nav > .product-link { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .menu-toggle span::before, html body .menu-toggle span::after, html body .site-header .main-nav, html body .site-header .main-nav > a { transition-duration: .01ms; }
}

/* Mobile menu layers follow mobile menu.psd; the desktop navigation is untouched. */
@media (max-width: 900px) {
  html body.mobile-menu-open::before {
    content: '';
    position: fixed;
    inset: 66px 0 0;
    z-index: 99;
    background: rgb(0 0 0 / 18%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
  }
  html body .site-header { background: #000; }
  html body .menu-toggle span::before,
  html body .menu-toggle span::after { background: #fff; }
  html body .site-header .main-nav {
    height: auto;
    max-height: calc(100dvh - 66px);
    padding: 0;
    overflow-y: auto;
    gap: 1.33px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    transition: opacity .18s ease, visibility .18s;
  }
  html body .site-header .main-nav.menu-open { transform: none; }
  html body .site-header .main-nav > .language,
  html body .site-header .main-nav > a {
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
    border: 0;
    background: rgb(3 7 14 / 78%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  html body .site-header .main-nav > .language {
    order: 0;
    align-self: stretch;
    justify-content: flex-end;
    width: 100%;
    height: clamp(112px, 24vw, 128px);
    padding: 0 8vw;
    gap: 20px;
  }
  html body .site-header .main-nav > .language button {
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
  }
  html body .site-header .main-nav > .language button:first-child::after { left: calc(100% + 9px); }
  html body .site-header .main-nav > a,
  html body .site-header .main-nav > .product-link {
    height: 76px;
    min-height: 76px;
    padding: 0 9vw;
    align-items: center;
    font-size: clamp(24px, 7vw, 31px);
    font-weight: 300;
    color: #fff;
    line-height: 1;
  }
  html body .site-header .main-nav > .product-link {
    order: 1;
    margin-bottom: 0;
    font-size: clamp(38px, 11vw, 48px);
    font-weight: 400;
  }
  html body .site-header .main-nav > a[data-section-link="about"],
  html body .site-header .main-nav > a[href*="company.html#about"] { order: 2; }
  html body .site-header .main-nav > a[href*="news.html"] { order: 3; }
  html body .site-header .main-nav > a[data-section-link="contact"],
  html body .site-header .main-nav > a[href*="company.html#contact"] { order: 4; }
  html body .site-header .main-nav > a.active,
  html body .site-header .main-nav > a:active,
  html body .site-header .main-nav > a:focus-visible { background: #0a50f5; color: #fff; }
  html body .site-header .main-nav > a:is(:hover,:focus-visible) { color: #fff; }
  html body .site-header .main-nav.menu-open > .language,
  html body .site-header .main-nav.menu-open > a {
    animation: mobileMenuLayer .42s cubic-bezier(.22,1,.36,1) both;
  }
  html body .site-header .main-nav.menu-open > .language { animation-delay: 0s; }
  html body .site-header .main-nav.menu-open > .product-link { animation-delay: .09s; }
  html body .site-header .main-nav.menu-open > a[data-section-link="about"],
  html body .site-header .main-nav.menu-open > a[href*="company.html#about"] { animation-delay: .18s; }
  html body .site-header .main-nav.menu-open > a[href*="news.html"] { animation-delay: .27s; }
  html body .site-header .main-nav.menu-open > a[data-section-link="contact"],
  html body .site-header .main-nav.menu-open > a[href*="company.html#contact"] { animation-delay: .36s; }
  html body .site-header .main-nav .nav-label > span { transition-duration: .4s; }
  html body .site-header .main-nav.menu-open > a .nav-label { animation: mobileMenuText .42s ease both; }
  html body .site-header .main-nav.menu-open > .product-link .nav-label { animation-delay: .14s; }
  html body .site-header .main-nav.menu-open > a[data-section-link="about"] .nav-label,
  html body .site-header .main-nav.menu-open > a[href*="company.html#about"] .nav-label { animation-delay: .23s; }
  html body .site-header .main-nav.menu-open > a[href*="news.html"] .nav-label { animation-delay: .32s; }
  html body .site-header .main-nav.menu-open > a[data-section-link="contact"] .nav-label,
  html body .site-header .main-nav.menu-open > a[href*="company.html#contact"] .nav-label { animation-delay: .41s; }
}
@keyframes mobileMenuLayer {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes mobileMenuText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  html body.company-page .hero-copy::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .site-header .main-nav.menu-open > .language,
  html body .site-header .main-nav.menu-open > a,
  html body .site-header .main-nav.menu-open > a .nav-label { animation-duration: .01ms; animation-delay: 0s; }
}
