.mobile-menu {
  z-index: 99;
  inset: 0;
  height: 100dvh;
  padding: calc(66px + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px);
  background: transparent;
  color: var(--ink);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .24s ease, visibility .24s;
  overscroll-behavior: none;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, .58);
  backdrop-filter: blur(3px);
}

.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.mega-menu-panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  max-height: calc(100dvh - 86px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  transform: translateY(-12px);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}

.mobile-menu.open .mega-menu-panel {
  transform: none;
}

.mobile-menu .mega-menu-nav {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  min-width: 0;
}

.mega-menu-links {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}

.mega-menu-links a {
  display: flex;
  align-items: center;
  min-height: 61px;
  padding: 4px 28px;
  font-size: clamp(35px, 3.1vw, 49px);
  line-height: 1;
  overflow-wrap: anywhere;
  letter-spacing: -.052em;
  transition: background .2s, color .2s, padding-left .25s;
}

.mega-menu-links a:hover,
.mega-menu-links a:focus-visible,
.mega-menu-links a.is-active {
  padding-left: 36px;
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.mega-menu-session {
  margin: auto 28px 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 650;
}

.mega-menu-info {
  min-height: 470px;
  padding: 72px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 42px;
  background: var(--ink);
  color: var(--paper);
  min-width: 0;
}

.mega-menu-info p {
  margin: 0;
}

.mega-menu-kicker,
.mega-menu-label {
  color: #8d8d8d;
  font-weight: 650;
}

.mega-menu-availability {
  margin-top: 14px !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.mega-menu-info > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.mega-menu-info > div:nth-child(2) a {
  width: max-content;
  max-width: 100%;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.site-header.menu-active {
  top: 0 !important;
  min-height: calc(66px + env(safe-area-inset-top, 0px)) !important;
  padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
  align-items: start;
  overflow: visible;
}

.site-header.menu-active .menu-button {
  align-self: start;
  min-height: 32px;
  padding: 4px 2px 6px;
  line-height: 1.25;
  white-space: nowrap;
}

.mega-menu-label {
  margin-bottom: 12px !important;
}

.mega-menu-socials {
  display: flex;
  gap: 8px;
}

.mega-menu-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
  transition: background .2s, color .2s;
}

.mega-menu-socials a:hover,
.mega-menu-socials a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

@media (max-width: 900px) {
  html,
  body {
    overscroll-behavior-x: none;
  }

  .site-header.menu-active {
    min-height: 74px;
    grid-template-columns: 1fr auto auto;
  }

  .site-header .logo,
  .site-header.scrolled .logo,
  .site-header.menu-active .logo {
    align-self: center;
    padding-top: 0;
    font-size: 21px;
    line-height: .74;
    letter-spacing: -1.35px;
  }

  .site-header .menu-button,
  .site-header.scrolled .menu-button,
  .site-header.menu-active .menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 0 8px 8px;
    align-self: center;
    color: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header .menu-button span,
  .site-header.scrolled .menu-button span,
  .site-header.menu-active .menu-button span {
    display: block;
    line-height: 1.2;
  }

  .site-header .menu-button i,
  .site-header.scrolled .menu-button i,
  .site-header.menu-active .menu-button i {
    position: static;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    align-self: center;
    transform: none;
  }

  .mobile-menu {
    padding-top: calc(74px + env(safe-area-inset-top, 0px));
  }

  .mega-menu-panel {
    width: 100%;
    height: calc(100dvh - 74px - env(safe-area-inset-top, 0px));
    max-height: none;
    margin: 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    scrollbar-gutter: auto;
  }

  .mobile-menu .mega-menu-nav,
  .mega-menu-info {
    min-height: 100%;
  }

  .mega-menu-links a {
    font-size: clamp(31px, 5.2vw, 46px);
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-height: 720px) and (min-width: 621px) {
  .mega-menu-links{padding-top:10px}
  .mega-menu-links a{min-height:49px;font-size:clamp(31px,5.2vh,43px)}
  .mega-menu-session{margin-bottom:18px;padding-top:12px}
  .mega-menu-info{padding-top:42px;gap:26px}
  .mega-menu-availability{font-size:16px}
}

@media (max-width: 620px) {
  .mobile-menu {
    padding-top: calc(74px + env(safe-area-inset-top, 0px));
    background: #f7f7f5;
  }

  .mobile-menu::before {
    display: none;
  }

  .mega-menu-panel {
    display: block;
    height: calc(100dvh - 74px - env(safe-area-inset-top, 0px));
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f7f7f5;
    box-shadow: none;
  }

  .mobile-menu .mega-menu-nav,
  .mega-menu-info {
    min-height: auto;
  }

  .mobile-menu .mega-menu-nav {
    background: #f7f7f5;
  }

  .mega-menu-links {
    padding-top: 10px;
  }

  .mega-menu-links a {
    min-height: 48px;
    padding: 4px 18px;
    font-size: clamp(29px, 9.4vw, 36px);
    line-height: .98;
  }

  .mega-menu-links a:hover,
  .mega-menu-links a:focus-visible,
  .mega-menu-links a.is-active {
    padding-left: 25px;
  }

  .mega-menu-session {
    min-height: 44px;
    margin: 18px 18px 22px;
    padding: 15px 0 0;
    align-items: center;
  }

  .mega-menu-info {
    padding: 26px 18px calc(32px + env(safe-area-inset-bottom, 0px));
    gap: 24px;
    background: #050505;
    color: #fafafa;
  }

  .mega-menu-availability {
    font-size: 16px;
  }

  .mobile-language-nav {
    margin: 0 18px 22px !important;
  }

  .mega-menu-links a,
  .mega-menu-session,
  .mobile-language-nav a,
  .mega-menu-info a {
    -webkit-tap-highlight-color: transparent;
  }

  .mega-menu-links a:focus-visible,
  .mega-menu-session:focus-visible,
  .mobile-language-nav a:focus-visible,
  .mega-menu-info a:focus-visible,
  .menu-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
  }
}

/* Shared navigation and language selector across every route. */
.site-header{grid-template-columns:minmax(150px,1fr) minmax(112px,150px) 105px minmax(176px,210px)}
.site-header.scrolled,
.site-header.menu-active{
  position:fixed;
  z-index:100;
  left:0!important;
  right:0!important;
  top:0;
  width:100%!important;
  min-height:72px;
  transform:none!important;
  padding-top:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
body:not(.team-active):not(.industries-route) .site-header.scrolled,
body:not(.team-active):not(.industries-route) .site-header.menu-active{
  background:rgba(250,250,250,.94);
}
.site-header.scrolled .desktop-nav,
.site-header.menu-active .desktop-nav{display:none}
.site-header.scrolled .menu-button,
.site-header.menu-active .menu-button{display:flex;align-items:center;gap:10px}
.site-header.scrolled .menu-button i,
.site-header.menu-active .menu-button i{display:block;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%}
.site-header.scrolled + .mobile-menu,
.site-header.menu-active + .mobile-menu{z-index:99}
.header-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}
.header-actions .contact-button{width:100%}
.language-nav,.mobile-language-nav{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:.08em}
.language-nav a{color:var(--muted);transition:color .2s}
.language-nav a:hover,.language-nav a[aria-current="page"]{color:var(--ink)}
.mobile-language-nav{margin:0 28px 28px!important;padding-top:18px;border-top:1px solid var(--line);flex-direction:row!important;font-size:13px!important;line-height:1!important;letter-spacing:.08em!important}
.mobile-language-nav a{color:var(--muted)}
.mobile-language-nav a[aria-current="page"]{color:var(--ink)}
.site-header.scrolled,.site-header.menu-active{grid-template-columns:minmax(150px,1fr) auto 96px minmax(176px,210px)}
.site-header.scrolled .header-actions,.site-header.menu-active .header-actions{grid-column:4;grid-row:1}
.site-header.scrolled .menu-button,.site-header.menu-active .menu-button{grid-column:2;grid-row:1}
.site-header.scrolled .place-time,.site-header.menu-active .place-time{grid-column:3;grid-row:1}

/* Global responsive safety net for legacy and new landing layouts. */
.page,.section,.site-header,.site-footer{max-width:100%}
.page *,.section *,.footer-grid>*,.detail-body>*,.section-head>*{min-width:0}
iframe,embed,object{max-width:100%}
h1,h2,h3,p,a{overflow-wrap:break-word}

@media (max-width: 1100px) {
  .site-header{gap:20px}
  .desktop-nav{font-size:13px}
}

@media (max-width: 900px) {
  .site-header,.site-header.scrolled,.site-header.menu-active{grid-template-columns:1fr auto auto}
  .site-header .header-actions{display:none}
  .site-header .place-time{grid-column:2;grid-row:1}
  .site-header .menu-button,.site-header.scrolled .menu-button,.site-header.menu-active .menu-button{grid-column:3;grid-row:1}
}

@media (max-width: 620px) {
  .site-header,.site-header.scrolled,.site-header.menu-active{grid-template-columns:1fr auto;padding-left:18px;padding-right:18px}
  .site-header .place-time{display:none}
  .site-header .menu-button,.site-header.scrolled .menu-button,.site-header.menu-active .menu-button{grid-column:2}
  .mobile-language-nav{margin-left:20px!important;margin-right:20px!important}
  .cta-band{align-items:flex-start;flex-direction:column}
  .detail-hero,.page-hero{padding-left:18px;padding-right:18px}
  .gallery img{min-height:0;aspect-ratio:4/3}
}

@media (max-width: 380px), (max-height: 680px) and (max-width: 620px) {
  .mega-menu-links a {
    min-height: 43px;
    font-size: clamp(27px, 8.7vw, 32px);
  }

  .mega-menu-session {
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .mobile-language-nav {
    margin-bottom: 16px !important;
  }
}

@media (max-width: 560px) {
  .site-header.menu-active {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu-panel,
  .mega-menu-links a {
    transition: none;
  }
}

/* Compact single-line desktop header. */
@media (min-width: 901px) {
  .site-header.scrolled,
  .site-header.menu-active {
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
    grid-template-columns: minmax(190px, 1fr) auto auto auto;
    gap: clamp(22px, 3vw, 54px);
    align-items: center;
  }

  .site-header.scrolled .logo,
  .site-header.menu-active .logo {
    align-self: center;
    padding-top: 0;
    font-size: 25px;
    line-height: .72;
    letter-spacing: -1.8px;
  }

  .site-header.scrolled .menu-button,
  .site-header.menu-active .menu-button {
    align-self: center;
    padding: 0;
    font-size: 14px;
  }

  .site-header.scrolled .place-time,
  .site-header.menu-active .place-time {
    align-self: center;
    font-size: 13px;
    line-height: 1.35;
  }

  .site-header.scrolled .header-actions,
  .site-header.menu-active .header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: max-content;
  }

  .site-header.scrolled .header-actions .contact-button,
  .site-header.menu-active .header-actions .contact-button {
    width: 210px;
    flex: 0 0 210px;
  }

  .site-header.scrolled .language-nav,
  .site-header.menu-active .language-nav {
    flex: none;
    white-space: nowrap;
  }
}

/* Small, deliberately hidden Office easter eggs. */
.office-sticker{position:absolute;z-index:3;width:auto;height:auto;object-fit:contain;pointer-events:auto;user-select:none;-webkit-user-drag:none;opacity:0;filter:drop-shadow(0 10px 16px rgba(0,0,0,.2));transition:opacity .28s ease,transform .5s cubic-bezier(.18,.8,.22,1)}
.mega-menu-info{position:relative;overflow:hidden}
.office-sticker--michael{right:18px;bottom:-28px;width:116px;transform:translateY(54px) rotate(-5deg)}
.mobile-menu.open .office-sticker--michael{opacity:.86;transform:translateY(0) rotate(-3deg);transition-delay:.3s}
.mega-menu-info:hover .office-sticker--michael{opacity:1;transform:translateY(-7px) rotate(5deg) scale(1.04);transition-delay:0s}
.contact-form,.home-brief-form{position:relative}
.office-sticker--jim{right:-52px;top:31%;width:104px;transform:translateX(44px) rotate(6deg)}
.contact-form:hover .office-sticker--jim,.home-brief-form:hover .office-sticker--jim,.contact-form:focus-within .office-sticker--jim,.home-brief-form:focus-within .office-sticker--jim{opacity:.9;transform:translateX(0) rotate(-2deg)}
.services-row,.visual-service{position:relative}
.office-sticker--dwight{right:clamp(16px,3vw,46px);bottom:-32px;width:98px;transform:translateY(62px) rotate(4deg)}
.services-row:hover .office-sticker--dwight,.visual-service:hover .office-sticker--dwight{opacity:.9;transform:translateY(0) rotate(-5deg)}
.site-footer{position:relative}
.office-sticker--creed{right:7%;bottom:-32px;width:92px;transform:translateY(56px) rotate(-7deg);filter:drop-shadow(0 10px 18px rgba(0,0,0,.38))}
.site-footer:hover .office-sticker--creed{opacity:.72;transform:translateY(0) rotate(3deg)}
.page-hero{position:relative;overflow:hidden}
.office-sticker--kevin{right:clamp(22px,7vw,120px);bottom:-22px;width:clamp(105px,13vw,180px);opacity:.84;transform:rotate(5deg)}
.page-hero:hover .office-sticker--kevin{opacity:1;transform:translateY(-8px) rotate(-3deg) scale(1.03)}

@media (max-width:900px){.office-sticker--jim,.office-sticker--dwight,.office-sticker--creed{display:none}.office-sticker--michael{right:12px;width:84px;bottom:-20px}.office-sticker--kevin{width:104px}}
@media (prefers-reduced-motion:reduce){.office-sticker{transition:none!important}.mobile-menu.open .office-sticker--michael{transform:translateY(0) rotate(-3deg)}}

/* Mobile header: keep the home navigation stable at every phone viewport. */
@media (max-width: 620px) {
  :root {
    --mobile-header-height: calc(72px + env(safe-area-inset-top, 0px));
  }

  .site-header,
  .site-header.scrolled,
  .site-header.menu-active {
    width: 100%;
    min-height: var(--mobile-header-height) !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
  }

  .site-header .logo,
  .site-header.scrolled .logo,
  .site-header.menu-active .logo {
    max-width: calc(100vw - 122px);
    font-size: clamp(18px, 5.5vw, 21px);
    line-height: .78;
    letter-spacing: -1.25px;
  }

  .site-header .menu-button,
  .site-header.scrolled .menu-button,
  .site-header.menu-active .menu-button {
    grid-column: 2;
    min-width: 76px;
    min-height: 44px;
    padding: 8px 0 8px 8px;
    justify-content: flex-end;
    white-space: nowrap;
  }

  .mobile-menu {
    width: 100%;
    height: 100dvh;
    padding: var(--mobile-header-height) 0 0;
    overflow: hidden;
  }

  .mega-menu-panel {
    width: 100%;
    height: calc(100dvh - var(--mobile-header-height));
    max-height: calc(100dvh - var(--mobile-header-height));
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mega-menu-links a {
    padding-right: 20px;
    overflow-wrap: normal;
  }

  .mobile-menu.open .office-sticker--michael {
    width: 72px;
    opacity: .68;
  }
}

@media (max-width: 360px) {
  .site-header,
  .site-header.scrolled,
  .site-header.menu-active {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header .menu-button,
  .site-header.scrolled .menu-button,
  .site-header.menu-active .menu-button {
    min-width: 70px;
  }

  .mega-menu-links a {
    padding-left: 14px;
    padding-right: 14px;
    font-size: clamp(26px, 8.8vw, 31px);
  }

  .mega-menu-session,
  .mobile-language-nav {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .mega-menu-info {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 620px) and (max-height: 640px) {
  .mega-menu-links a {
    min-height: 40px;
    font-size: clamp(25px, 7.8vh, 30px);
  }

  .mega-menu-session {
    min-height: 40px;
    margin-top: 10px;
    margin-bottom: 12px;
    padding-top: 11px;
  }

  .mobile-language-nav {
    margin-bottom: 14px !important;
    padding-top: 14px;
  }
}
