:root {
  --page-padding: 60px;
  --text-color: #2d2d2d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background: #f3f0ee;
  overflow-x: hidden;
}

/* =========================
   BACKGROUND
========================= */

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -9;
  pointer-events: none;
  display: block;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
}

.site-bg__base {
  position: absolute;
  inset: 0;
  background: url("./img/bg-iridescent.jpg") center center / cover no-repeat;
  opacity: 0.72;
}

.site-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(0, 0, 0, 0.28) 0.45px, transparent 0.45px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__top {
  position: absolute;
  top: var(--page-padding);
  left: var(--page-padding);
  right: var(--page-padding);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  z-index: 3;
}

.hero__logo {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
}

.hero__logo img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.hero__menu {
  grid-column: 3;
  justify-self: end;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text-color);
  cursor: pointer;
}

.hero__3d {
  position: absolute;
  inset: 0;
  z-index: 5;
   display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__3d canvas {
  width: min(620px, 80vw) !important;
  height: min(620px, 80vw) !important;
  display: block;
}

.hero__marquee {
  position: relative;
  z-index: 2;
  width: 100vw;
  overflow: hidden;
}

.hero__marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.hero__marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__marquee-item {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  flex-shrink: 0;
}

.hero__marquee-item img {
  display: block;
  height: auto;
}

.hero__marquee-item img:first-child,
.hero__marquee-item img:last-child {
  width: auto;
  height: 48px;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  :root {
    --page-padding: 30px;
  }

  .hero__logo img {
    width: 140px;
  }

  .hero__menu {
    font-size: 1rem;
  }

  .hero__marquee-item {
    gap: 20px;
    padding-right: 50px;
  }

  .hero__marquee-item img:first-child,
  .hero__marquee-item img:last-child {
    height: 30px;
  }
}