/* ============================================================
   HERO SCROLL CUE — invites the first scroll once the tunnel is
   revealed. Lives inside #hero-scene (pinned), sits above the
   hero overlays but below the fixed nav. Entrance + fade-out are
   driven by assets/hero-cue.js; loops here are pure CSS.
   ============================================================ */

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: max(clamp(1.5rem, 5vh, 3.25rem), env(safe-area-inset-bottom));
  z-index: 25;
  width: min(92vw, 760px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* Soft scrim so the copy reads over bright tunnel frames */
.hero-cue::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: 150%;
  height: 190%;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.3) 45%,
    transparent 72%
  );
}

/* --- Eyebrow ------------------------------------------------- */
.hero-cue__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 170, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 20, 34, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(214, 236, 250, 0.85);
}

.hero-cue__eyebrow-text {
  margin-right: -0.32em;
}

.hero-cue__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-blue);
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.9);
}

.hero-cue__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 170, 255, 0.7);
  animation: hero-cue-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- Headline ------------------------------------------------ */
.hero-cue__title {
  margin-top: clamp(0.8rem, 1.8vh, 1.2rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--white);
  text-wrap: balance;
}

.hero-cue__word {
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity, filter;
}

/* Liquid-blue accent with a slow light sweep */
.hero-cue__word--accent {
  background-image: linear-gradient(
    100deg,
    #0a8fd6 0%,
    var(--electric-blue) 30%,
    #d9f3ff 50%,
    var(--electric-blue) 70%,
    #0a8fd6 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-cue-sheen 4.5s ease-in-out 1.6s infinite;
}

.hero-cue__sub {
  margin-top: clamp(0.4rem, 1vh, 0.6rem);
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  max-width: 34ch;
  text-wrap: balance;
}

/* --- Scroll indicator --------------------------------------- */
.hero-cue__action {
  margin-top: clamp(1rem, 2.6vh, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.hero-cue__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(214, 236, 250, 0.7);
  margin-right: -0.38em;
}

.hero-cue__label--touch {
  display: none;
}

/* Vertical rail with a droplet of light travelling down it */
.hero-cue__rail {
  position: relative;
  width: 1px;
  height: clamp(36px, 6vh, 56px);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(214, 236, 250, 0.05),
    rgba(214, 236, 250, 0.35) 50%,
    rgba(214, 236, 250, 0.05)
  );
}

.hero-cue__rail::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 40%;
  margin-left: -1.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--electric-blue) 60%, #e6f7ff);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.9);
  animation: hero-cue-drop 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-cue__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -0.35rem;
}

.hero-cue__chevrons span {
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 1.5px solid rgba(0, 170, 255, 0.85);
  border-bottom: 1.5px solid rgba(0, 170, 255, 0.85);
  transform: rotate(45deg);
  opacity: 0.2;
  animation: hero-cue-chevron 2s ease-in-out infinite;
}

.hero-cue__chevrons span:nth-child(2) {
  animation-delay: 0.2s;
}

/* --- Touch devices ------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
  .hero-cue__label--pointer {
    display: none;
  }

  .hero-cue__label--touch {
    display: inline;
  }
}

/* --- Small screens ------------------------------------------ */
@media (max-width: 767px) {
  .hero-cue {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .hero-cue__eyebrow {
    letter-spacing: 0.24em;
  }

  .hero-cue__eyebrow-text {
    margin-right: -0.24em;
  }

  .hero-cue__sub {
    max-width: 30ch;
  }
}

/* Very short landscape phones: keep only headline + indicator */
@media (max-height: 520px) {
  .hero-cue__eyebrow,
  .hero-cue__sub {
    display: none;
  }

  .hero-cue__title {
    margin-top: 0;
  }

  .hero-cue__action {
    margin-top: 0.6rem;
  }
}

/* --- Keyframes ---------------------------------------------- */
@keyframes hero-cue-ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  80%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes hero-cue-sheen {
  0% {
    background-position: 100% 0;
  }

  55%,
  100% {
    background-position: 0% 0;
  }
}

@keyframes hero-cue-drop {
  0% {
    transform: translateY(-110%);
  }

  100% {
    transform: translateY(260%);
  }
}

@keyframes hero-cue-chevron {
  0%,
  100% {
    opacity: 0.15;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cue__dot::after,
  .hero-cue__word--accent,
  .hero-cue__rail::after,
  .hero-cue__chevrons span {
    animation: none;
  }

  .hero-cue__chevrons span {
    opacity: 0.8;
  }
}
