/* Homepage integration for the scroll-driven cinematic journey. */

.has-scroll-world {
  background: #050713;
}

.has-scroll-world .header {
  z-index: 250;
}

.has-scroll-world .header--scrolled {
  background-color: rgba(5, 7, 19, 0.62);
  border-bottom-color: rgba(205, 221, 255, 0.12);
}

.home-world {
  --sw-bg: #050713;
  --sw-ink: #f5f7ff;
  --sw-ink-soft: #aeb8d8;
  --sw-accent: #7087ff;
  --sw-font-display: 'Fraunces', Georgia, serif;
  --sw-font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  position: relative;
  min-height: 100vh;
  background: #050713;
}

.home-world .sw-scene__video,
.home-world .sw-scene__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 44%;
}

.home-world .sw-copylayer::before {
  background: linear-gradient(
    90deg,
    rgba(5, 7, 19, 0.92) 0%,
    rgba(5, 7, 19, 0.68) 38%,
    rgba(5, 7, 19, 0.16) 68%,
    transparent 100%
  );
}

.home-world .sw-copy__title {
  font-style: normal;
  letter-spacing: -0.025em;
}

.home-world .sw-copy__body {
  color: rgba(235, 239, 255, 0.76);
}

.home-world .sw-copy__tags li {
  color: #dce4ff;
  background: rgba(13, 18, 44, 0.72);
  border-color: rgba(174, 190, 255, 0.28);
}

.home-world .sw-btn--primary {
  color: #171721;
  background: #ededf3;
}

.home-world .sw-btn--ghost {
  color: #f5f7ff;
  border-color: rgba(245, 247, 255, 0.32);
}

.home-world .sw-route__label {
  color: #f5f7ff;
  background: rgba(8, 11, 28, 0.72);
  border-color: rgba(205, 221, 255, 0.14);
}

.home-world-fallback {
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 6vw, 80px) 12vh;
  background:
    linear-gradient(90deg, rgba(5, 7, 19, 0.96), rgba(5, 7, 19, 0.3)),
    url('/assets/images/scroll-world/human-phone-final.jpg') center / cover;
}

.home-world-fallback__content {
  max-width: 620px;
}

.home-world-fallback__eyebrow {
  margin-bottom: 18px;
  color: #80a9ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-world-fallback h1 {
  margin-bottom: 20px;
}

.home-world-fallback p {
  max-width: 52ch;
  color: #c3c3cc;
}

.home-world-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .home-world .sw-copylayer::before {
    background: linear-gradient(
      0deg,
      rgba(5, 7, 19, 0.98) 6%,
      rgba(5, 7, 19, 0.72) 48%,
      transparent 100%
    );
  }

  .home-world .sw-copy {
    right: 46px;
  }

  .home-world .sw-copy__body {
    font-size: clamp(0.94rem, 3.6vw, 1.05rem);
  }

  .home-world .sw-copy__tags {
    margin-top: 16px;
  }

  .home-world .sw-copy__cta {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .home-world .sw-copy {
    bottom: calc(clamp(48px, 10dvh, 84px) + env(safe-area-inset-bottom));
  }

  .home-world .sw-copy__eyebrow {
    margin-top: 12px;
  }

  .home-world .sw-copy__title {
    margin-top: 8px;
  }

  .home-world .sw-copy__body {
    margin-top: 12px;
  }

  .home-world .sw-copy__tags li {
    padding: 5px 10px;
  }

  .home-world .sw-btn {
    padding: 12px 16px;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-world .sw-scene__still {
    transform: none !important;
  }
}
