.home-brand-slot {
  aspect-ratio: 669 / 87;
}

.home-brand {
  display: flex;
  align-items: center;
  height: 100%;
  color: white;
  filter: drop-shadow(0 2px 6px #020418bd);
}

.home-brand svg {
  flex: none;
  width: var(--lockup-width, 100%);
  height: auto;
  pointer-events: none;
}

.home-brand[data-pinned] {
  position: fixed;
  z-index: 1;
  left: var(--header-left);
  top: var(--header-center);
  transform: translateY(-50%);
  width: var(--lockup-width);
  height: max(44px, var(--lockup-height));
  overflow: hidden;
}

.home-brand[data-compact] {
  left: max(env(safe-area-inset-left), clamp(14px, 2vw, 32px));
  top: calc(env(safe-area-inset-top) + clamp(30px, 3vw, 42px));
  width: 44px;
}

.home-brand[data-compact] svg {
  width: clamp(232px, 18vw, 276px);
}

.home-brand[data-compact] .home-wordmark {
  opacity: 0;
  transform: translateX(-32px);
}

@media (max-width: 900px) {
  html:has(.home-brand) {
    scroll-padding-top: calc(env(safe-area-inset-top) + 58px);
  }

  .home-brand-slot::before {
    content: "";
    position: fixed;
    z-index: 1;
    inset: 0 0 auto;
    height: calc(env(safe-area-inset-top) + 58px);
    background: linear-gradient(to bottom, #060708 0%, #060708 75%, transparent);
    pointer-events: none;
    opacity: 0;
  }

  .home-brand-slot:has([data-compact])::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-brand[data-pinned] {
    transition: left 240ms ease, top 240ms ease, width 240ms ease;
  }

  .home-brand svg {
    transition: width 240ms ease;
  }

  .home-wordmark {
    transition: opacity 200ms ease, transform 240ms ease;
  }

  .home-brand-slot::before {
    transition: opacity 200ms ease;
  }
}
