/* Landing-page navigation aligned with the shared BB&C internal-page topbar. */
body[data-page="home"] .header {
  top: 16px !important;
  color: #f4f2ed;
}

body[data-page="home"] .header__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 1440px);
  max-width: 1440px;
  min-height: 86px;
  margin-inline: auto;
  padding: 8px clamp(24px, 3.2vw, 46px);
}

body[data-page="home"] .header__nav-wrap {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  align-items: center;
  min-width: 0;
}

body[data-page="home"] .header__home-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-right: 0 !important;
  color: inherit;
}

body[data-page="home"] .header__brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #07070a;
  background: #dfff19;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transition: transform 420ms cubic-bezier(0.32, 0.94, 0.6, 1);
}

body[data-page="home"] .header__home-link:hover .header__brand-mark {
  transform: rotate(45deg);
}

body[data-page="home"] .header__brand-wordmark {
  color: inherit;
  font-size: clamp(22px, 1.28vw, 25px) !important;
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="home"] .header__nav {
  justify-self: center;
}

body[data-page="home"] .header__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.55vw, 30px);
}

body[data-page="home"] .header__list-item {
  color: rgba(255, 255, 255, 0.64);
}

body[data-page="home"] .header__list-item-link {
  position: relative;
  display: block;
  padding-block: 8px;
  color: inherit;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: color 220ms ease;
}

body[data-page="home"] .header__list-item-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #dfff19;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(0.32, 0.94, 0.6, 1);
}

body[data-page="home"] .header__list-item:hover,
body[data-page="home"] .header__list-item[data-active="true"] {
  color: #f4f2ed;
}

body[data-page="home"] .header__list-item:hover .header__list-item-link::after,
body[data-page="home"] .header__list-item[data-active="true"] .header__list-item-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

body[data-page="home"] .header__pill-wrap {
  justify-self: end;
  margin-left: clamp(32px, 4vw, 68px);
}

body[data-page="home"] .header__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 22rem !important;
  height: 7rem !important;
  padding: 0.5rem !important;
  overflow: hidden !important;
  color: #fff;
  background: linear-gradient(270deg, #222322 3.48%, #131311);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition:
    width 600ms cubic-bezier(0.77, 0, 0.18, 1),
    border-color 220ms ease,
    transform 420ms cubic-bezier(0.32, 0.94, 0.6, 1);
}

body[data-page="home"] .header__pill:hover {
  border-color: rgba(223, 255, 25, 0.68);
  transform: translate3d(0, -0.12rem, 0);
}

body[data-page="home"] .header__pill-label {
  position: relative;
  inset: auto;
  color: #fff;
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  padding-left: 2.4rem !important;
  padding-right: 0 !important;
  font-size: 1.7rem !important;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease, width 480ms cubic-bezier(0.77, 0, 0.18, 1);
}

body[data-page="home"] .header__canvas-wrap {
  display: none !important;
}

body[data-page="home"] .header__pill-fallback {
  position: static !important;
  inset: auto;
  translate: none !important;
  display: grid !important;
  place-items: center;
  flex: 0 0 6rem;
  width: 6rem !important;
  height: 6rem !important;
  color: #07070a;
  background: #dfff19;
  border-radius: 50%;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 500ms cubic-bezier(0.32, 0.94, 0.6, 1);
}

body[data-page="home"] .header__pill-fallback svg {
  display: block;
  width: 1.8rem;
  height: 2.1rem;
  fill: currentColor;
}

body[data-page="home"] .header__pill:hover .header__pill-fallback {
  transform: rotate(12deg);
}

body[data-page="home"] .header__mobile-toggle,
body[data-page="home"] .header__mobile-menu {
  display: none;
}

body[data-page="home"][data-aside-open="true"] .header__pill {
  width: 7rem !important;
  padding: 0.5rem !important;
}

body[data-page="home"][data-aside-open="true"] .header__pill-label {
  width: 0;
  overflow: hidden;
  opacity: 0;
}

body[data-page="home"][data-aside-open="true"] .header__pill-fallback svg {
  display: none;
}

body[data-page="home"][data-aside-open="true"] .header__pill-fallback::after {
  content: "×";
  color: #07070a;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 1180px) {
  body[data-page="home"] .header__container {
    padding-inline: 1.5rem;
  }

  body[data-page="home"] .header__nav-wrap {
    grid-template-columns: minmax(13rem, 1fr) auto;
  }

  body[data-page="home"] .header__list {
    gap: 1rem;
  }

  body[data-page="home"] .header__pill-wrap {
    margin-left: 1.5rem;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .header {
    top: 8px !important;
  }

  body[data-page="home"] .header__container {
    position: relative;
    z-index: 5;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 68px;
    padding: 8px 14px;
  }

  body[data-page="home"] .header__nav-wrap {
    display: block;
  }

  body[data-page="home"] .header__nav {
    display: none;
  }

  body[data-page="home"] .header__pill-wrap {
    margin-left: 0;
  }

  body[data-page="home"] .header__mobile-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    overflow: hidden;
    color: #dfff19;
    background: rgba(7, 9, 14, 0.9);
    border: 1px solid rgba(223, 255, 25, 0.42);
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      background-color 240ms ease,
      border-color 240ms ease,
      transform 420ms cubic-bezier(0.32, 0.94, 0.6, 1);
  }

  body[data-page="home"] .header__mobile-toggle:hover,
  body[data-page="home"] .header__mobile-toggle:focus-visible {
    color: #07070a;
    background: #dfff19;
    border-color: #dfff19;
    outline: none;
    transform: rotate(6deg);
  }

  body[data-page="home"] .header__mobile-toggle-lines {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
  }

  body[data-page="home"] .header__mobile-toggle-lines i {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    transition:
      top 320ms cubic-bezier(0.32, 0.94, 0.6, 1),
      transform 320ms cubic-bezier(0.32, 0.94, 0.6, 1);
  }

  body[data-page="home"] .header__mobile-toggle-lines i:first-child {
    top: 2px;
  }

  body[data-page="home"] .header__mobile-toggle-lines i:last-child {
    top: 10px;
  }

  body[data-page="home"] .header__mobile-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-toggle {
    color: #07070a;
    background: #dfff19;
    border-color: #dfff19;
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-toggle-lines i:first-child,
  body[data-page="home"][data-home-menu-open="true"] .header__mobile-toggle-lines i:last-child {
    top: 6px;
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-toggle-lines i:first-child {
    transform: rotate(45deg);
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-toggle-lines i:last-child {
    transform: rotate(-45deg);
  }

  body[data-page="home"] .header__mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: block;
    min-height: 100svh;
    overflow: hidden auto;
    color: #f7f7f2;
    background:
      linear-gradient(145deg, rgba(7, 93, 245, 0.13), transparent 45%),
      #05070c;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -2.5rem, 0);
    transition:
      opacity 320ms ease,
      visibility 320ms ease,
      transform 620ms cubic-bezier(0.32, 0.94, 0.6, 1);
  }

  body[data-page="home"][data-home-menu-open="true"] {
    overflow: hidden;
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  body[data-page="home"] .header__mobile-menu-art {
    position: absolute;
    top: -10vw;
    right: -18vw;
    width: min(74vw, 34rem);
    aspect-ratio: 1.15;
    overflow: hidden;
    background: #075df5;
    border-radius: 0 0 42% 48%;
    transform: rotate(-8deg);
  }

  body[data-page="home"] .header__mobile-menu-art span {
    position: absolute;
    right: -12%;
    bottom: -36%;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(223, 255, 25, 0.42);
    border-radius: 50%;
  }

  body[data-page="home"] .header__mobile-menu-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100svh;
    padding: 108px clamp(22px, 7vw, 54px) 28px;
  }

  body[data-page="home"] .header__mobile-menu-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 22px;
    color: #dfff19;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
  }

  body[data-page="home"] .header__mobile-menu-kicker span {
    width: 32px;
    height: 1px;
    background: currentColor;
  }

  body[data-page="home"] .header__mobile-menu-nav {
    display: grid;
    width: 100%;
  }

  body[data-page="home"] .header__mobile-menu-nav a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 61px;
    color: #f7f7f2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      color 220ms ease,
      border-color 220ms ease,
      opacity 420ms ease,
      transform 520ms cubic-bezier(0.32, 0.94, 0.6, 1);
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a:nth-child(1) { transition-delay: 110ms; }
  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a:nth-child(2) { transition-delay: 150ms; }
  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a:nth-child(3) { transition-delay: 190ms; }
  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a:nth-child(4) { transition-delay: 230ms; }
  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a:nth-child(5) { transition-delay: 270ms; }
  body[data-page="home"][data-home-menu-open="true"] .header__mobile-menu-nav a:nth-child(6) { transition-delay: 310ms; }

  body[data-page="home"] .header__mobile-menu-nav small {
    color: #dfff19;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
  }

  body[data-page="home"] .header__mobile-menu-nav span {
    font-size: clamp(27px, 8vw, 40px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
  }

  body[data-page="home"] .header__mobile-menu-nav b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #07070a;
    background: #dfff19;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    transition: transform 360ms cubic-bezier(0.32, 0.94, 0.6, 1);
  }

  body[data-page="home"] .header__mobile-menu-nav a:hover,
  body[data-page="home"] .header__mobile-menu-nav a:focus-visible {
    color: #dfff19;
    border-color: rgba(223, 255, 25, 0.65);
    outline: none;
  }

  body[data-page="home"] .header__mobile-menu-nav a:hover b,
  body[data-page="home"] .header__mobile-menu-nav a:focus-visible b {
    transform: rotate(45deg);
  }

  body[data-page="home"] .header__mobile-menu-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: auto;
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.78);
  }

  body[data-page="home"] .header__mobile-menu-footer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  body[data-page="home"] .header__mobile-menu-footer small {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .header__container {
    gap: 8px;
    padding-inline: 12px;
  }

  body[data-page="home"] .header__brand-mark {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  body[data-page="home"] .header__brand-wordmark {
    font-size: clamp(13px, 3.7vw, 15.5px) !important;
    letter-spacing: -0.035em;
  }

  body[data-page="home"] .header__home-link {
    gap: 8px;
  }

  body[data-page="home"] .header__mobile-toggle {
    width: 50px;
    height: 50px;
  }

  body[data-page="home"] .header__pill {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    padding: 5px !important;
  }

  body[data-page="home"] .header__pill-label {
    display: none !important;
  }

  body[data-page="home"] .header__pill-fallback {
    flex-basis: 40px;
    width: 40px !important;
    height: 40px !important;
  }

  body[data-page="home"][data-aside-open="true"] .header__pill {
    width: 50px !important;
    padding: 5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .header__mobile-menu,
  body[data-page="home"] .header__mobile-menu-nav a,
  body[data-page="home"] .header__mobile-toggle,
  body[data-page="home"] .header__mobile-toggle-lines i {
    transition-duration: 0.01ms !important;
  }
}
