/* PB Contact Hero Block */


@keyframes pb-contact-hero-flip {
  0% {
    opacity: 0;
    transform: rotateX(-90deg);
  }

  7% {
    opacity: 1;
    transform: rotateX(0deg);
  }

  27% {
    opacity: 1;
    transform: rotateX(0deg);
  }

  34% {
    opacity: 0;
    transform: rotateX(90deg);
  }

  35%, 100% {
    opacity: 0;
    transform: rotateX(90deg);
  }
}

@keyframes pb-contact-hero-scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Section */

section.pb-contact-hero {
  align-items: center;
  background-color: var(--color-dark-blue);
  background-image:
    radial-gradient(ellipse at 65% 40%, #252848 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, #111224 0%, transparent 50%);
  display: flex;
  justify-content: center;
  margin-top: -70px;
  min-height: 100vh;
  overflow: hidden;
  padding: 96px clamp(12px, 2vw, 24px);
  position: relative;
  text-align: center;
}

/* Globe */

section.pb-contact-hero .pb-contact-hero-globe {
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: scale(0.5);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  z-index: 2;
}

section.pb-contact-hero .pb-contact-hero-globe.is-globe-ready {
  opacity: 0.75;
  transform: scale(1);
}

section.pb-contact-hero .pb-contact-hero-globe canvas {
  mix-blend-mode: screen;
}

/* Grid overlay */

section.pb-contact-hero .pb-contact-hero-grid {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 139px,
      rgba(255, 255, 255, 0.12) 139px,
      rgba(255, 255, 255, 0.12) 140px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 139px,
      rgba(255, 255, 255, 0.12) 139px,
      rgba(255, 255, 255, 0.12) 140px
    );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/* Inner content */

section.pb-contact-hero .pb-contact-hero-inner {
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  width: 100%;
  z-index: 3;
}

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-title {
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.18;
  margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9), 0 0 48px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
}

/* Flip text */

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip {
  margin: 0 auto;
  max-width: 900px;
}

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip-track {
  display: grid;
  grid-template-columns: 1fr;
  perspective: 1000px;
}

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip-track .pb-contact-hero-flip-item {
  animation: pb-contact-hero-flip 9s ease-in-out infinite;
  color: var(--color-beige);
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 70px);
  font-weight: 700;
  grid-column: 1;
  grid-row: 1;
  letter-spacing: 0.05em;
  line-height: 1.18;
  opacity: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9), 0 0 48px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  transform-origin: center top;
}

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip-track .pb-contact-hero-flip-item:nth-child(2) {
  animation-delay: 3s;
}

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip-track .pb-contact-hero-flip-item:nth-child(3) {
  animation-delay: 6s;
}

section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-divider {
  background: var(--color-red);
  border: none;
  box-sizing: border-box;
  display: block;
  height: 3px;
  margin: 28px auto 0;
  padding: 0;
  width: 100px;
}

/* Scroll indicator */

section.pb-contact-hero .pb-contact-hero-scroll {
  align-items: center;
  animation: pb-contact-hero-scroll-bounce 1.8s ease-in-out infinite;
  background-color: var(--color-red);
  border: none;
  border-radius: 50%;
  bottom: 36px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 48px;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: background-color 150ms ease;
  width: 48px;
  z-index: 4;
}

section.pb-contact-hero .pb-contact-hero-scroll:hover,
section.pb-contact-hero .pb-contact-hero-scroll:focus-visible {
  animation-play-state: paused;
  background-color: var(--color-beige);
  color: var(--color-dark-blue);
  transform: translateX(-50%) translateY(4px);
}

/* Responsive */

@media (max-width: 1024px) {
  section.pb-contact-hero {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  section.pb-contact-hero {
    min-height: 0;
    padding: 64px clamp(12px, 4vw, 24px) 80px;
  }

  section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-title {
    font-size: 18px;
  }

  section.pb-contact-hero .pb-contact-hero-scroll {
    display: none;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip-track .pb-contact-hero-flip-item {
    animation: none;
    opacity: 0;
  }

  section.pb-contact-hero .pb-contact-hero-inner .pb-contact-hero-flip-track .pb-contact-hero-flip-item:nth-child(1) {
    opacity: 1;
  }

  section.pb-contact-hero .pb-contact-hero-scroll {
    animation: none;
  }
}
