/* Hyperspeed journey — never trap the close (X) button */
.contact-hyperspeed-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

#contact-hyperspeed-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-hyperspeed-stage {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Let clicks reach the overlay close (X). Only UI chrome is clickable. */
  pointer-events: none;
  background: #000;
}

.contact-hyperspeed-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contact-hyperspeed-status {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.contact-hyperspeed-destination {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.75rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.18);
  max-width: min(90vw, 28rem);
  pointer-events: auto;
}

.contact-hyperspeed-destination__mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.55);
}

.contact-hyperspeed-destination__title {
  margin: 0;
  color: #ecfdf5;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-hyperspeed-destination__sub {
  margin: 0;
  color: rgba(167, 243, 208, 0.85);
  font-size: 0.9rem;
}

.contact-hyperspeed-back {
  margin-top: 0.5rem;
  min-height: 44px;
  min-width: 11rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #f3f4f6 0%, #c8ccd2 100%);
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.contact-hyperspeed-skip {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: 1rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.contact-hyperspeed-hint {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.contact-overlay.contact-hyperspeed-active .contact-hyperspeed-hint {
  opacity: 0;
  visibility: hidden;
}

/* Keep cancel (X) above hyperspeed / canvas always */
.contact-overlay .overlay-close-btn {
  position: fixed !important;
  z-index: 10050 !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .contact-hyperspeed-hint,
  .contact-hyperspeed-layer {
    display: none !important;
  }
}
