/* Full-width section backgrounds stay inside their own section. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.topbar,
.hero,
.exchange,
.assortment,
.brands,
.footer {
  max-width: min(calc(100% - 72px), var(--max));
}

.hero > *,
.exchange > *,
.assortment__heading > *,
.footer > * {
  min-width: 0;
}

.exchange {
  position: relative;
  z-index: 1;
}

.assortment,
.brands,
.footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.assortment::before,
.brands::before,
.footer::before {
  z-index: -1;
  top: 0;
  right: auto;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
}

.footer {
  height: auto;
  min-height: 105px;
}

/* Subtle entrance motion for the primary interface. */
.hero__content {
  animation: hero-enter .72s cubic-bezier(.2, .7, .25, 1) both;
}

.login-card {
  animation: card-enter .82s .12s cubic-bezier(.2, .7, .25, 1) both;
}

.capabilities article {
  animation: fade-enter .55s both;
}

.capabilities article:nth-child(1) { animation-delay: .2s; }
.capabilities article:nth-child(2) { animation-delay: .29s; }
.capabilities article:nth-child(3) { animation-delay: .38s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .topbar,
  .hero,
  .exchange,
  .assortment,
  .brands,
  .footer {
    max-width: calc(100% - 36px);
  }

  .footer {
    min-height: 150px;
  }

  .footer::before {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
