.guest-gate__video {
  opacity: 0;
  background: #0c0c0c;
  transition: none !important;
}

.guest-gate__video.is-on {
  opacity: 1;
  animation: guest-clip-in 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes guest-clip-in {
  0% {
    opacity: 0;
    transform: scale(1.07);
    filter: brightness(1.22);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

.guest-gate__wall {
  filter: none !important;
  contain: none !important;
  overflow: visible !important;
  top: -14vh !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 128vh !important;
  justify-content: center !important;
  transform: none !important;
}

.guest-gate__row {
  display: block !important;
  overflow: hidden !important;
  height: 100% !important;
  min-height: 100% !important;
  align-self: stretch !important;
}

.guest-gate__track {
  gap: 0.7rem !important;
  animation-name: guest-gate-marquee !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-duration: 58s;
  animation-play-state: running !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.guest-gate__set {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  gap: 0.7rem !important;
}

html.guest-marquee-js .guest-gate__track,
.guest-gate__track[data-dreamers-marquee] {
  animation: none !important;
}

.guest-gate__row--reverse .guest-gate__track {
  animation-direction: reverse !important;
}

.guest-gate__tile::after,
.guest-gate__tile:after {
  content: none !important;
  animation: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}

.guest-gate__veil {
  background:
    radial-gradient(
      ellipse 78% 70% at 50% 46%,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.46) 22%,
      rgba(0, 0, 0, 0.24) 44%,
      rgba(0, 0, 0, 0.1) 64%,
      rgba(0, 0, 0, 0.03) 82%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
}

.guest-gate .role-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

@keyframes guest-gate-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

body.light-theme.guest-gate-page.waitlist-landing,
html[data-theme='light'] body.guest-gate-page.waitlist-landing,
body.light-theme .guest-gate,
html[data-theme='light'] .guest-gate {
  background: #eae5d9 !important;
}

body.light-theme .guest-gate__wall,
html[data-theme='light'] .guest-gate__wall {
  opacity: 0.52;
}

body.light-theme .guest-gate__veil,
html[data-theme='light'] .guest-gate__veil {
  background:
    radial-gradient(
      ellipse 78% 70% at 50% 46%,
      rgba(234, 229, 217, 0.58) 0%,
      rgba(234, 229, 217, 0.32) 24%,
      rgba(234, 229, 217, 0.14) 48%,
      rgba(234, 229, 217, 0.05) 70%,
      rgba(234, 229, 217, 0.015) 86%,
      rgba(234, 229, 217, 0) 100%
    ) !important;
}

body.light-theme .guest-gate__cluster::before,
html[data-theme='light'] .guest-gate__cluster::before {
  background: radial-gradient(
    ellipse 72% 68% at 50% 42%,
    rgba(234, 229, 217, 0.42) 0%,
    rgba(234, 229, 217, 0.18) 38%,
    rgba(234, 229, 217, 0.05) 68%,
    rgba(234, 229, 217, 0.015) 86%,
    transparent 100%
  ) !important;
}

body.light-theme .guest-gate .role-card,
html[data-theme='light'] .guest-gate .role-card {
  background: rgba(245, 241, 232, 0.92) !important;
}

@media (max-width: 768px) {
  .guest-gate__wall {
    inset: -18vh 0 auto 0 !important;
    top: -18vh !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    gap: 0.45rem !important;
    width: 100% !important;
    height: 140dvh !important;
    overflow: visible !important;
    contain: none !important;
    filter: none !important;
    transform: none !important;
    justify-content: center !important;
  }

  .guest-gate__track,
  .guest-gate__set {
    gap: 0.55rem !important;
  }

  .guest-gate__set {
    padding-bottom: 0 !important;
  }

  .guest-gate__row {
    --guest-tile-w: calc((100vw - 1.5rem) / 4.7) !important;
  }

  .guest-gate__row--landscape {
    --guest-tile-w: 34vw !important;
  }

  .guest-gate__wall.guest-wall--sparse .guest-gate__row {
    --guest-tile-w: 32vw !important;
  }

  .guest-gate__wall.guest-wall--sparse .guest-gate__row--landscape {
    --guest-tile-w: 42vw !important;
  }

  .guest-gate__veil {
    background:
      radial-gradient(
        ellipse 84% 72% at 50% 42%,
        rgba(0, 0, 0, 0.48) 0%,
        rgba(0, 0, 0, 0.22) 32%,
        rgba(0, 0, 0, 0.08) 58%,
        rgba(0, 0, 0, 0.02) 80%,
        rgba(0, 0, 0, 0) 100%
      ) !important;
  }

  body.light-theme .guest-gate__veil,
  html[data-theme='light'] .guest-gate__veil {
    background:
      radial-gradient(
        ellipse 84% 72% at 50% 42%,
        rgba(234, 229, 217, 0.46) 0%,
        rgba(234, 229, 217, 0.2) 34%,
        rgba(234, 229, 217, 0.06) 62%,
        rgba(234, 229, 217, 0.015) 82%,
        rgba(234, 229, 217, 0) 100%
      ) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-gate__track {
    animation: none !important;
  }
}

/* Join portfolio: last-loaded so 4:3 tiles match 3:4 height on phones */
@media (max-width: 720px) {
  .join-review__gallery,
  .join-typeform--wide .join-review__gallery.join-typeform__portfolio-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    grid-template-columns: none !important;
    gap: 0.7rem !important;
  }

  .join-review__gallery-item.is-portrait,
  .join-review__gallery-item:has(.join-portfolio-tile.is-portrait),
  button.join-review__reel--add {
    flex: 0 0 calc((100% - 0.7rem) / 2) !important;
    width: calc((100% - 0.7rem) / 2) !important;
    max-width: calc((100% - 0.7rem) / 2) !important;
  }

  .join-review__gallery-item.is-landscape,
  .join-review__gallery-item:has(.join-portfolio-tile.is-landscape) {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
