/* Shared consultation button: the filled capsule contracts to the arrow. */
.desktop-nav a.nav-contact {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 24px;
  color: #fff;
  white-space: nowrap;
}
.desktop-nav .nav-contact::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #1557e9;
  transition: width .4s ease, box-shadow .4s ease;
}
.desktop-nav .nav-contact-label {
  color: #fff;
  transition: color .4s ease;
}
.desktop-nav .nav-contact-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  overflow: hidden;
  color: #fff;
  transition: transform .4s ease;
}
.desktop-nav .nav-contact-arrow > span {
  display: block;
  animation: nav-contact-arrow 5s ease infinite;
}
@keyframes nav-contact-arrow {
  0%, 14%, 100% { transform: translate(0, 0); }
  7% { transform: translate(150%, -150%); }
  7.1% { transform: translate(-150%, 150%); }
}
@media (hover: hover) {
  .desktop-nav .nav-contact:hover::before { width: 44px; }
  .desktop-nav .nav-contact:hover .nav-contact-label { color: #162033; }
  .desktop-nav .nav-contact:hover .nav-contact-arrow { transform: translateX(9px); }
}
.desktop-nav .nav-contact:focus-visible::before { width: 44px; }
.desktop-nav .nav-contact:focus-visible .nav-contact-label { color: #162033; }
.desktop-nav .nav-contact:focus-visible .nav-contact-arrow { transform: translateX(9px); }

/* The homepage alone places the header over its existing first-screen background. */
.home-page .header {
  margin-bottom: calc(-1 * var(--header-height));
  transition: background-color .4s ease, color .4s ease;
}
.home-page .header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--header-height) + 64px);
  background: linear-gradient(to bottom, rgba(0, 18, 60, .34), rgba(0, 18, 60, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.home-page .header.is-transparent {
  background: transparent;
  color: #fff;
}
.home-page .header.is-transparent::before { opacity: 1; }
.home-page .header.is-transparent .brand img {
  filter: brightness(0) invert(1);
}
.home-page .header .brand img { transition: filter .4s ease; }
.home-page .header.is-transparent .service-menu-toggle { color: inherit; }
.home-page .header.is-transparent .mobile-menu summary span { background: currentColor; }
.home-page .header.is-transparent .nav-contact::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}
.home-page .header.is-transparent:focus-within,
.home-page .header.is-transparent.is-mobile-menu-open {
  background: #fff;
  color: #15181e;
}
.home-page .header.is-transparent:focus-within::before,
.home-page .header.is-transparent.is-mobile-menu-open::before { opacity: 0; }
.home-page .header.is-transparent:focus-within .brand img,
.home-page .header.is-transparent.is-mobile-menu-open .brand img { filter: none; }
.home-page .header.is-transparent:focus-within .nav-contact::before,
.home-page .header.is-transparent.is-mobile-menu-open .nav-contact::before { box-shadow: none; }
@media (hover: hover) {
  .home-page .header.is-transparent:hover { background: #fff; color: #15181e; }
  .home-page .header.is-transparent:hover::before { opacity: 0; }
  .home-page .header.is-transparent:hover .brand img { filter: none; }
  .home-page .header.is-transparent:hover .nav-contact::before { box-shadow: none; }
}
.home-page .hero {
  height: max(100svh, calc(650px + var(--header-height)));
}
.home-page .hero-inner {
  top: var(--header-height);
  height: calc(100% - var(--header-height));
}
.desktop-nav { gap: clamp(18px, 1.8vw, 28px); }
@media (max-width: 1280px) and (min-width: 881px) {
  .header-inner { gap: 24px; }
  .brand { width: 160px; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 13px; }
}
@media (max-width: 1000px) and (min-width: 881px) {
  .header-inner { gap: 16px; }
  .brand { width: 140px; }
  .desktop-nav { gap: 10px; }
  html[lang='en'] .desktop-nav { gap: 7px; }
}
@media (max-width: 600px) {
  .home-page .hero { height: max(100svh, calc(690px + var(--header-height))); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .header,
  .home-page .header::before,
  .home-page .header .brand img,
  .desktop-nav .nav-contact::before,
  .desktop-nav .nav-contact-label,
  .desktop-nav .nav-contact-arrow { transition: none; }
  .desktop-nav .nav-contact-arrow > span { animation: none; }
}
html[data-motion='paused'] .home-page .header,
html[data-motion='paused'] .home-page .header::before,
html[data-motion='paused'] .home-page .header .brand img,
html[data-motion='paused'] .desktop-nav .nav-contact::before,
html[data-motion='paused'] .desktop-nav .nav-contact-label,
html[data-motion='paused'] .desktop-nav .nav-contact-arrow { transition: none; }
html[data-motion='paused'] .desktop-nav .nav-contact-arrow > span { animation: none; }
