/* Full-viewport hero: background word + floating robots */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  padding: 2.2vh 1.5vw;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
}

@media (hover: hover) and (pointer: fine) {
  .hero,
  .hero * {
    cursor: none;
  }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 14px clamp(14px, 2.4vw, 28px);
  z-index: calc(var(--z-top-bar) + 260);
  transition:
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    backdrop-filter 0.45s ease;
}

.brand {
  font-size: 5vh;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: #ffffff;
  user-select: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-word {
  position: absolute;
  top: 8vh;
  left: -7vw;
  margin: 0;
  font-size: 52vw;
  line-height: 0.74;
  font-weight: 500;
  letter-spacing: -0.07em;
  color: #ffffff;
  user-select: none;
  z-index: var(--z-hero-word);
  white-space: nowrap;
}

.robot-wrap {
  position: absolute;
  top: 14vh;
  left: 10vw;
  width: 46vw;
  aspect-ratio: 16 / 9;
  z-index: var(--z-robot);
  animation: robot-float 5.4s ease-in-out infinite;
}

.robot-wrap--h {
  top: calc(4.2vh + 28.2vw);
  left: 65.8vw;
  width: 30vw;
  margin: 0;
  transform-origin: 22% 78%;
  animation: robot-float-h-organic 6.85s cubic-bezier(0.42, 0, 0.58, 1) -2.4s infinite;
}

.robot {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.robot-xray {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  clip-path: circle(0px at 0 0);
}

@keyframes robot-float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-0.6vw, -1.2vh);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes robot-float-h-organic {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  14% {
    transform: translate(0.35vw, -0.55vh) rotate(0.45deg);
  }
  31% {
    transform: translate(-0.55vw, -1.05vh) rotate(-0.35deg);
  }
  49% {
    transform: translate(-0.25vw, -0.35vh) rotate(0.2deg);
  }
  64% {
    transform: translate(0.2vw, 0.5vh) rotate(-0.55deg);
  }
  81% {
    transform: translate(0.5vw, 0.15vh) rotate(0.3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.scroll {
  position: absolute;
  left: 1.5vw;
  bottom: 5.8vh;
  margin: 0;
  color: var(--muted);
  font-size: 2.9vw;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  z-index: var(--z-scroll);
}

.hero-scroll-link {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4.8vh, 52px);
  transform: translateX(-50%);
  z-index: var(--z-scroll);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 4.8vw, 56px);
  height: clamp(42px, 4.8vw, 56px);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-scroll-link:hover {
  transform: translateX(-50%) translateY(2px);
  opacity: 0.9;
}

.hero-scroll-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.42));
}

.hero-scroll-icon--white {
  background: #ffffff;
  -webkit-mask: url("../../media/svg/lineicons--scroll-down-2.svg") center / contain no-repeat;
  mask: url("../../media/svg/lineicons--scroll-down-2.svg") center / contain no-repeat;
}

@media (min-width: 641px) {
  .hero-scroll-link {
    bottom: clamp(8px, 3vh, 34px);
    width: clamp(28px, 3vw, 36px);
    height: clamp(28px, 3vw, 36px);
    opacity: 0.5;
  }
}
