.hero-sequence-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.hero-sequence {
  --hero-pin-height-desktop: 300vh;
  --hero-pin-height-mobile: 150vh;
  --hero-loader-opacity: 1;
  position: relative;
  height: var(--hero-pin-height-desktop);
  overflow: clip;
  background: #060b14;
}

.hero-sequence__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-sequence__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  transform: translateZ(0);
}

.hero-sequence__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.72) 0%, rgba(3, 7, 13, 0.34) 34%, rgba(3, 7, 13, 0.2) 64%, rgba(3, 7, 13, 0.62) 100%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.58) 0%, rgba(3, 7, 13, 0.12) 32%, rgba(3, 7, 13, 0.5) 100%);
}

.hero-sequence__copy {
  position: absolute;
  left: clamp(20px, 6vw, 84px);
  bottom: clamp(28px, 9vh, 96px);
  width: min(620px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.hero-sequence__text {
  min-height: var(--hero-copy-text-min-height, auto);
}

.hero-sequence__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #9db7f7;
  font-weight: 600;
}

.hero-sequence__headline {
  margin: 0;
  line-height: 1.06;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  max-width: 12ch;
  text-wrap: balance;
  color: #f6f9ff;
  text-shadow: 0 14px 38px rgba(1, 6, 20, 0.42);
}

.hero-sequence__subheadline {
  margin: 16px 0 0;
  max-width: 55ch;
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  line-height: 1.55;
  color: rgba(226, 236, 255, 0.88);
}

.hero-sequence__actions {
  margin-top: 24px;
}

.hero-sequence .cta-secondary {
  background: rgba(8, 14, 30, 0.55);
  backdrop-filter: blur(6px);
}


.hero-sequence__loading {
  opacity: var(--hero-loader-opacity);
  visibility: visible;
  position: absolute;
  inset: auto auto clamp(16px, 6vh, 44px) clamp(16px, 6vw, 48px);
  z-index: 4;
  width: min(320px, calc(100vw - 32px));
  border-radius: 12px;
  border: 1px solid rgba(112, 145, 213, 0.42);
  background: linear-gradient(145deg, rgba(10, 18, 40, 0.9), rgba(8, 14, 29, 0.9));
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  box-shadow: 0 16px 34px rgba(3, 7, 18, 0.5);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.hero-sequence__loading-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(164, 191, 248, 0.86);
  font-weight: 600;
}

.hero-sequence__loading-progress {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  color: #eff5ff;
  font-weight: 600;
}

.hero-sequence__loading-track {
  margin-top: 10px;
  height: 6px;
  background: rgba(112, 145, 213, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.hero-sequence__loading-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #5fa8ff, #2de4c9);
}

.hero-sequence.is-ready {
  --hero-loader-opacity: 0;
}

.hero-sequence.is-ready .hero-sequence__loading {
  visibility: hidden;
}

.hero-sequence.is-poster-fallback {
  height: 100vh;
}

@supports (height: 100svh) {
  .hero-sequence__pin,
  .hero-sequence.is-poster-fallback {
    height: 100svh;
  }
}

@media (max-width: 1024px) {
  .hero-sequence__copy {
    width: min(560px, calc(100vw - 40px));
  }

}

@media (max-width: 900px) {
  .hero-sequence {
    height: var(--hero-pin-height-mobile);
  }

  .hero-sequence__headline {
    max-width: 14ch;
  }

  .hero-sequence__copy {
    left: 20px;
    bottom: 24px;
  }

}

@media (max-width: 720px) {
  .hero-sequence__pin {
    --hero-mobile-visual-height: min(42vh, 320px);
  }

  .hero-sequence__canvas,
  .hero-sequence__shade {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    height: var(--hero-mobile-visual-height);
  }

  .hero-sequence__copy {
    left: 14px;
    right: 14px;
    bottom: auto;
    top: calc(var(--hero-mobile-visual-height) + 16px);
    width: auto;
  }

  .hero-sequence__headline {
    max-width: none;
    font-size: clamp(2rem, 8.8vw, 3.35rem);
  }

  .hero-sequence__subheadline {
    margin-top: 12px;
    max-width: none;
    font-size: 1rem;
  }

  .hero-sequence__actions {
    margin-top: 18px;
  }

  .hero-sequence__loading {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: auto;
    top: calc(var(--hero-mobile-visual-height) - 58px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-sequence__loading {
    transition: none;
  }
}
