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

html,
html.template-homepage {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--color-wyrd-purple-500);
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--color-wyrd-indigo-900);
  overflow-x: hidden;
}

html.template-homepage {
  --monde-card-border-color: var(--color-wyrd-green-500);
  --monde-zone-bg: var(--color-wyrd-green-500);
  --monde-zone-text: var(--color-wyrd-green-900);
}

section.home-section {
  width: 100%;
  max-width: 100%;
}

section.home-section:not(.landing-page-ticker) {
  min-height: 100vh;
}

@media (prefers-reduced-motion: no-preference) {
  section.home-section[data-nav-color] {
    background-color: transparent !important;
  }
}

h1 {
  font-family: "Groovy Bumpie", cursive;
}

/* improve text rendering on rotated elements */
.presentation-card,
.card {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.presentation-card {
  cursor: pointer;
}

.monde-card + .monde-card {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--monde-card-border-color);
}

.monde-list {
  color: var(--monde-list-text);
}

@media (min-width: 768px) {
  .monde-list {
    background-color: var(--monde-list-bg);
  }
}

.monde-zone {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background-color: var(--monde-zone-bg);
  color: var(--monde-zone-text);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.home-guests-scene {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - clamp(3rem, 8vh, 6rem));
  padding-block: clamp(1rem, 3vh, 2rem) clamp(5.5rem, 11vh, 7.5rem);
  position: relative;
}

.home-guests-stage {
  width: 100%;
  min-height: clamp(280px, 56vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
}

.home-guests-title-layer {
  position: absolute;
  top: clamp(0.75rem, 3vh, 1.75rem);
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1rem, 6vw, 4rem);
  pointer-events: none;
  z-index: 0;
}

.home-guests-track-viewport {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.home-guests-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  padding-block: 1rem;
}

.home-guests-card-item {
  flex: 0 0 auto;
  width: fit-content;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .home-guests-card-item .card,
  .home-guests-card-item .card > div {
    width: 100%;
  }
}

.home-guests-teaser-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1rem, 6vw, 4rem);
  pointer-events: none;
  z-index: 0;
}

.home-guests-cta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 767px) {
  .home-guests-scene {
    padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  }

  .home-guests-stage {
    min-height: clamp(360px, 68dvh, 600px);
  }
}

[data-home-guests-title],
[data-home-guests-teaser-text],
[data-home-info-sentence] {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-home-fomo] [data-home-fomo-stage] {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(1.5rem, 4vh, 2.75rem);
    padding-block: clamp(1.5rem, 4vh, 2.75rem);
  }

  [data-home-fomo-content-content] {
    padding-top: 72px;
  }

  [data-home-fomo] [data-home-fomo-content],
  [data-home-fomo] [data-home-fomo-secondary] {
    position: static;
    inset: auto;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  [data-home-fomo] [data-home-fomo-content-content],
  [data-home-fomo] [data-home-fomo-secondary-content] {
    width: 100%;
    max-width: 72rem;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1rem, 3vh, 2rem);
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
    text-align: center;
  }

  [data-home-fomo] [data-home-fomo-social-stack] {
    flex-direction: column;
    gap: clamp(0.75rem, 2vh, 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-guests-scene {
    min-height: auto;
    padding-block: clamp(2rem, 4vh, 4rem);
  }

  .home-guests-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1rem, 3vw, 1.75rem);
    min-height: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-guests-title-layer,
  .home-guests-teaser-layer {
    position: static;
    width: 100%;
    padding-inline: 0;
    justify-content: center;
    pointer-events: auto;
  }

  .home-guests-teaser-layer {
    margin-top: 40px;
    height: auto;
  }

  .home-guests-title-layer {
    margin-bottom: 40px;
    padding-top: 24px;
  }

  .home-guests-track-viewport {
    width: 100%;
    height: auto;
    overflow: visible;
    justify-content: center;
  }

  .home-guests-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none !important;
    padding-block: 0;
  }

  .home-guests-card-item {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 640px) {
  .home-guests-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .home-guests-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .monde-card + .monde-card {
    padding-top: 64px;
    margin-top: 64px;
  }

  .home-guests-scene {
    padding-block: clamp(1.25rem, 4vh, 2.5rem) clamp(5rem, 9vh, 6.5rem);
  }
}
