.hero__bg {
  position: absolute;
  top: 0;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
  will-change: transform;
  transform-origin: center center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  /* background:
    linear-gradient(90deg, transparent 0%, transparent 42%, rgb(0 0 0 / 0.55) 68%, rgb(0 0 0 / 0.92) 100%),
    linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.2) 45%, rgb(0 0 0 / 0.75) 100%); */
}

.hero__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 112px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.hero-logo-slot {
  --logo-end: 96px;
  --logo-aspect: 187 / 234;
  width: 100%;
  height: min(calc(58vw * var(--logo-aspect)), calc(234px * var(--logo-aspect)));
  flex-shrink: 0;
  pointer-events: none;
}

.hero-logo-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-logo, 110);
  display: block;
  width: 96px;
  height: calc(96px * 187 / 234);
  margin: 0;
  line-height: 0;
  pointer-events: auto;
  transform-origin: center top;
  will-change: transform, top, left;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
}

.hero-logo-link.is-ready {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-military);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 22px rgb(0 0 0 / 0.4));
}

.hero-logo-link.is-stuck .hero-logo {
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.35));
}

.hero__brand {
  max-width: min(100vw - 32px, 576px);
  margin-inline: auto;
  margin-top: -40px;
  padding-bottom: 4px;
}

.hero__flag {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: min(648px, 220vw);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.95;
  z-index: -2;
}

.hero__stack:before {
  content: '';
  position: absolute;
  inset: -10% -16%;
  background: radial-gradient(rgb(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  filter: blur(30px);
  border-radius: 100%;
  aspect-ratio: 1/1;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.hero__brand-fg {
  padding-top: 32px;
}

.hero__el {
  opacity: 0;
}

html.is-loaded .hero__el.is-in {
  opacity: 1;
  transition: opacity 0.65s var(--ease-military);
}

.scroll-cue__chevrons {
  display: block;
  animation: scroll-bounce 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .hero__flag {
    width: min(552px, 170vw);
    bottom: 14%;
  }

  .hero__stack:before {
    inset: -22% -40%;
    filter: blur(24px);
  }

  .hero__brand {
    margin-top: -24px;
  }

  .hero__brand-fg {
    padding-top: 24px;
  }
}

@media (max-width: 575.98px) {
  .hero-logo-slot {
    height: min(calc(42vw * var(--logo-aspect)), 140px);
  }

  .hero-logo-link {
    width: 72px;
    height: calc(72px * 187 / 234);
  }

  .hero__flag {
    width: 145vw;
    bottom: 22%;
    opacity: 0.85;
  }

  .hero__stack:before {
    inset: auto;
    left: 50%;
    top: 45%;
    width: 140%;
    height: 140%;
    aspect-ratio: auto;
    filter: blur(18px);
    transform: translate(-50%, -50%);
  }

  .hero__brand {
    margin-top: -12px;
  }

  .hero__brand-fg {
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__el {
    opacity: 1;
  }
  .hero-logo-link {
    transition: none !important;
  }
  .scroll-cue__chevrons {
    animation: none;
  }
  .hero__bg {
    transform: none !important;
  }
}
