@media (min-width: 1051px) {
  .site-header .desktop-nav .has-expertise-menu {
    position: static;
  }

  .site-header .desktop-nav .mega-services {
    top: calc(100% - 1px) !important;
    left: 50%;
    width: min(1220px, calc(100vw - 48px), max(960px, calc(100vw - 360px)));
    max-width: 1220px;
    height: auto;
    min-height: min(575px, calc(100vh - 132px));
    max-height: min(590px, calc(100vh - 132px));
    grid-template-columns: 330px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 30px;
    padding: 30px;
    overflow: visible;
    border: 1px solid #e5ebf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(8, 24, 43, .16);
    transform: translate(-50%, 10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 60;
  }

  .site-header.scrolled .desktop-nav .mega-services {
    top: calc(100% - 1px) !important;
  }

  .site-header .desktop-nav .has-expertise-menu:hover .mega-services,
  .site-header .desktop-nav .has-expertise-menu:focus-within:not(.menu-dismissed) .mega-services,
  .site-header .desktop-nav .has-expertise-menu.open .mega-services {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .site-header .desktop-nav .has-menu.menu-dismissed .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: translateY(10px);
  }

  .site-header .desktop-nav .has-menu.menu-dismissed .mega-services {
    transform: translate(-50%, 10px) !important;
  }

  .mega-services .mega-intro {
    min-width: 0;
    padding: 5px 28px 5px 0;
    border-right: 1px solid #e5ebf1;
  }

  .mega-services .eyebrow {
    font-size: 10px;
  }

  .mega-services .mega-intro h3 {
    max-width: 350px;
    margin: 16px 0 10px;
    color: #0b1b2c;
    font: 750 31px/1.12 var(--display);
    letter-spacing: -.055em;
  }

  .mega-services .mega-intro p {
    max-width: 330px;
    margin-bottom: 0;
    color: #68798b;
    font-size: 14px;
    line-height: 1.5;
  }

  .mega-services .text-link {
    color: #006aff;
    font-size: 12px;
    margin-top: 15px;
  }

  .mega-services .mega-links {
    min-width: 0;
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    align-content: stretch;
    gap: 6px 12px;
    overflow: visible;
    padding: 0;
  }

  .mega-services .mega-links a {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 14px;
    align-items: start;
    gap: 9px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
  }

  .mega-services .mega-links a:hover,
  .mega-services .mega-links a:focus-visible {
    border-color: #e4edf8;
    background: #f5f9ff;
    transform: translateY(-1px);
    outline: none;
  }

  .mega-services .mega-links a > svg:first-child {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: #006aff;
    stroke-width: 1.8;
  }

  .mega-services .mega-links a > svg:last-child {
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    color: #7e91a6;
  }

  .mega-services .mega-links a span {
    min-width: 0;
  }

  .mega-services .mega-links b {
    margin-bottom: 3px;
    color: #102238;
    font-size: 13.5px;
    line-height: 1.25;
  }

  .mega-services .mega-links small {
    display: -webkit-box;
    overflow: hidden;
    color: #718198;
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 1051px) and (max-width: 1280px) {
  .site-header .desktop-nav .mega-services {
    width: min(1220px, calc(100vw - 48px), max(960px, calc(100vw - 360px)));
    max-width: 1220px;
    gap: 24px;
    padding: 24px;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .mega-services .mega-intro {
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-services,
  .mega-services .mega-links a {
    transition: none !important;
  }
}
