/* The original EXCAR opening scene, free of scroll pinning. */
html, body { overflow-x: clip; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #020408;
}
.hero-pin { position: relative; min-height: 100svh; }
.hero-stage, .hero-media { position: absolute; inset: 0; }
.hero-media { overflow: hidden; }
.hero-fade-in { opacity: 0; animation: fadeUp .55s ease forwards; }
.hero-img-front {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-scanner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: .96;
  pointer-events: none;
}
.hero-scanner-rail { opacity: .54; }
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0) 34%, rgba(2, 4, 8, .08) 58%, rgba(2, 4, 8, .48) 100%),
    radial-gradient(130% 95% at 34% 56%, transparent 43%, rgba(4, 5, 8, .3) 80%, #020408 100%);
}
.hero-copy {
  position: absolute;
  top: 46%;
  right: 8vw;
  z-index: 5;
  max-width: clamp(230px, 27vw, 400px);
  transform: translateY(-50%);
}
.hero-logo {
  display: block;
  width: auto;
  height: clamp(34px, 4vw, 48px);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.5px;
}

#waitlist {
  position: relative;
  padding: clamp(80px, 15vh, 160px) 0;
  background: radial-gradient(50% 100% at 50% 100%, rgba(0, 116, 210, .13), transparent 70%), #020408;
}
#waitlist .waitlist { max-width: 780px; margin: 0 auto; text-align: center; }
#waitlist .waitlist h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1; letter-spacing: -.05em; }

@media (max-width: 880px) {
  .hero-img-front {
    inset: max(66px, 8svh) auto auto 50%;
    width: min(190vw, 980px);
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translateX(-34%);
    animation: hero-mobile-arrival 1.15s cubic-bezier(.22, 1, .36, 1) both;
  }
  .hero-scanner {
    inset: max(66px, 8svh) auto auto 50%;
    width: min(190vw, 980px);
    height: auto;
    transform: translateX(-34%);
  }
  .hero-copy {
    top: clamp(130px, 18svh, 154px);
    right: 22px;
    left: 22px;
    max-width: none;
    transform: none;
  }
  .hero-logo { display: none; }
  .hero h1 {
    max-width: 19ch;
    color: #f7fbff;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.06;
    letter-spacing: -.035em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .72);
  }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(2, 4, 8, .34) 8%, rgba(2, 4, 8, .04) 36%, rgba(2, 4, 8, .12) 64%, #020408 100%),
      radial-gradient(120% 78% at 32% 43%, transparent 38%, rgba(2, 4, 8, .44) 100%);
  }
}
@keyframes hero-mobile-arrival {
  from { opacity: .72; transform: translateX(-34%) scale(1.035); }
  to { opacity: 1; transform: translateX(-34%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scanner { display: none; }
  .hero-img-front, .hero-fade-in { animation: none; opacity: 1; }
}
