.header.is-compact-mb .header-mb {
  z-index: 999;

  height: 4rem;

  border-radius: 0 0 0.5rem 0.5rem;
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(21, 34, 38, 0.76) 0%,
    rgba(8, 34, 50, 0.52) 100%
  );

  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);

  /* border: 1px solid rgba(255, 255, 255, 0.16); */

  box-shadow: 0 0.625rem 1.75rem rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  transition: all 0.35s ease;
}

.header.is-compact-mb .header-mb::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.header.is-compact-mb .site-logo-mb {
  position: relative;
  z-index: 1;

  width: auto;
  height: 2.25rem;
  object-fit: contain;

  transition: height 0.35s ease;
}

.header.is-compact-mb .button-toggle-sidebar {
  position: relative;
  z-index: 1;

  width: 2.5rem;
  height: 2.5rem;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.header.is-compact-mb .button-toggle-sidebar svg {
  width: 1.45rem;
  height: auto;
}

.header.is-compact-mb .button-toggle-sidebar:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.site-header {
  z-index: 20;
  position: absolute;
  top: 1rem;
  left: 12.5rem;
  right: 12.5rem;
  height: 8.0625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.4rem;
}
.site-header a {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
}
.site-logo {
  width: 10rem;
  height: 8.0625rem;
  object-fit: contain;
}
.header-mb {
  display: none;
}
.button-toggle-sidebar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  width: 2rem;
  background: transparent;
}
.btn-close-sidebar {
  display: none;
}

/* --- Smart header: condensed frosted-glass state ---------------------------
   Toggled (via the `.is-compact` class on `.header`) once the page is scrolled
   past ~500px so the white nav stays readable over any content. CSS transitions
   morph the bar smoothly; GSAP handles the slide-in/out (header.js). */
.site-header {
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.45s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.45s ease,
    backdrop-filter 0.45s ease, border-color 0.45s ease,
    border-radius 0.45s ease, box-shadow 0.45s ease, transform 0.4s ease;
}
.site-logo,
.site-logo img {
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 8.64581rem;
  height: 6.92706rem;
}
.header-mb {
  transform: translateY(-150%);
}
.header.active .header-mb {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .header:not(.is-compact):not(.white) a {
    color: #113a64;
  }
  .header.white .logo-2 {
    display: none;
  }
  .header.is-compact .logo-2 {
    display: none !important;
  }
  .header:not(.is-compact):not(.white) .logo-1 {
    display: none;
  }
  .site-header {
    transform: translateY(-150%);
  }
  .header.active .site-header {
    transform: translateY(0);
  }
  .header.is-compact .site-logo {
    height: 3.25rem;
    width: auto;
  }
  .header.is-compact .site-header {
    top: 1rem;
    height: 5rem;
    padding: 0 1.75rem;
    font-size: 0.9375rem;
    background-color: rgba(9, 29, 52, 0.6);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.32);
  }
  .header.is-compact .site-logo img {
    height: 3.25rem;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 639.98px) {
  .header:not(.white) .logo-mb-1 {
    display: none !important;
  }
  .header.white .logo-mb-2 {
    display: none !important;
  }
  .header.is-compact-mb .logo-mb-1 {
    display: block !important;
  }
  .header.is-compact-mb .logo-mb-2 {
    display: none;
  }
  .site-header .logo-2 {
    display: none;
  }
  .header-mb {
    width: 100%;
    display: flex;
    padding: 0.875rem 1rem;
    justify-content: space-between;
    align-items: center;
    transition: all ease 0.4s;
  }

  .site-logo-mb {
    width: 4.36006rem;
    height: 3.52456rem;
    flex-shrink: 0;
  }
  .site-header {
    border-radius: 0;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(100%);
    background: #113a64;
    width: 100vw;
    height: 100vh;
    padding: 0 1rem;
    opacity: 0;
    transition: all ease 0.3s;
  }
  .site-header.active {
    transform: translateX(0) !important;
    opacity: 1;
  }
  .site-logo {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    height: auto;
    order: -1;
    margin-bottom: 1.12rem;
  }
  .btn-close-sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    width: 2rem;
    height: 2rem;
  }
  .site-logo img {
    width: 4.36006rem;
    height: 3.52456rem;
  }
  .site-header a {
    display: block;
    color: #fff;
    font-family: SVN-Aptima;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.125rem; /* 212.5% */
    letter-spacing: -0.05rem;
    margin-bottom: 0.31rem;
  }
}
