/* A large, cool-toned background film with soft edges, as in the supplied reference. */
.hero { min-height: 820px; align-items: center; }
.hero-video-art { inset: 0; background: #03040b; }
.hero-video-frame {
  position: absolute;
  inset: 0;
  width: min(1400px, 100%);
  margin: 0 auto;
  isolation: isolate;
  opacity: .9;
}
.hero-video-art .hero-video-frame > :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: brightness(1.08) contrast(1.06) saturate(1.08);
}
.hero-video-art .hero-video-frame > video { opacity: 0; transition: opacity .7s ease; }
.hero-video-art.video-playing .hero-video-frame > video { opacity: 1; }
.hero-video-tint { position: absolute; inset: 0; background: #5997ff; mix-blend-mode: hue; }
.hero-video-art::after {
  background: linear-gradient(90deg, #03040b, transparent 10%, transparent 91%, #03040b), linear-gradient(0deg, #03040b, transparent 18%, transparent 84%, #03040b);
}
/* Real cloud filaments surround the film; no blurred colour fields. */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: .62;
  mask-image: linear-gradient(#000 0%, #000 78%, transparent 100%);
}
.hero-atmosphere::before,
.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: -3%;
}
.hero-atmosphere::before {
  background: url('./assets/cosmic-header-nebula-v4.webp') center 42% / cover no-repeat;
  opacity: .72;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, #000 4%, #0009 25%, #0004 47%, #000c 75%, #000 94%);
  animation: nebula-drift 42s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero-atmosphere::after {
  background: url('./assets/hero-atmosphere.svg') center / cover no-repeat;
  opacity: .32;
}
.hero-video-art[data-motion="running"] ~ .hero-atmosphere::before { animation-play-state: running; }
@keyframes nebula-drift {
  from { transform: translate3d(-.8%, -.5%, 0) scale(1); }
  to { transform: translate3d(.8%, .5%, 0) scale(1.025); }
}
.hero > .star-field { opacity: .58; }
.hero .star-field i { animation-play-state: paused; }
.hero-video-art[data-motion="running"] ~ .star-field i { animation-play-state: running; }
.hero-content { padding: 172px 0 164px; text-align: center; position: relative; z-index: 1; }
/* Protect the copy locally while leaving the surrounding accretion disc bright. */
.hero .hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% max(0px, calc((100% - 980px) / 2));
  background: radial-gradient(ellipse at 50% 50%, rgba(3, 4, 11, .66), rgba(3, 4, 11, .44) 43%, transparent 75%);
  pointer-events: none;
}
.hero .hero-content h1.hero-domain { text-shadow: none; }
.hero .hero-content #heroDomainText { text-shadow: none; filter: drop-shadow(0 3px 12px #03040bb3); }
.hero .hero-subtitle { text-shadow: 0 2px 4px #03040b, 0 2px 14px #03040b; }
.hero .hero-description { text-shadow: 0 1px 3px #03040b, 0 2px 10px #03040b, 0 3px 20px #03040b; }
.hero .hero-ctas .text-link { text-shadow: 0 1px 3px #03040b, 0 2px 12px #03040b; }
.hero .eyebrow { justify-content: center; margin-bottom: 52px; color: #cad2e4; }
.hero h1 { max-width: none; margin-inline: auto; text-shadow: 0 3px 26px #03040bb3; }
.hero h1 .gradient-text { background-image: linear-gradient(105deg,#e0ceff,#c0d9ff 72%,#b3e3fb); text-shadow: none; filter: drop-shadow(0 3px 16px #03040b80); }
.hero-subtitle { color: #e5e8f2; text-shadow: 0 2px 18px #03040b; }
.hero-description { max-width: 640px; margin-inline: auto; color: #d8deec; text-shadow: 0 1px 5px #03040b, 0 2px 16px #03040b; }
.hero-ctas { justify-content: center; }
@media (min-width: 1600px) { .hero { min-height: 860px; } }
/* The mobile film stays complete while the headline sits in the same scene. */
@media (max-width: 800px) {
  .hero { min-height: 690px; align-items: flex-start; }
  .hero-atmosphere { opacity: .66; }
  .hero-atmosphere::before { background-position: 66% center; opacity: .8; }
  .hero-atmosphere::after { opacity: .22; }
  .hero + #system { padding-top: 46px; }
  .hero .hero-video-art .hero-video-frame {
    inset: 145px auto auto -9%;
    width: 118%;
    height: auto;
    aspect-ratio: 16 / 9;
    opacity: .9;
  }
  .hero-video-art .hero-video-frame > :is(img, video) {
    object-fit: contain;
    object-position: center;
  }
  .hero-video-art::after {
    background: none;
  }
  .hero-video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, #03040b, transparent 12%, transparent 80%, #03040b 100%),
      linear-gradient(90deg, #03040b33, transparent 10%, transparent 91%, #03040b33);
  }
  .hero-content { padding: 174px 0 124px; }
  .hero .eyebrow { margin-bottom: 30px; font-size: 9px; letter-spacing: 2px; }
  .hero h1 { text-shadow: 0 2px 9px #03040b, 0 6px 32px #03040bbf; }
  .hero h1 .gradient-text { filter: drop-shadow(0 3px 10px #03040bbf); }
  .hero-subtitle { margin-top: 30px; }
  .hero-description { margin-top: 18px; }
  .hero-ctas { margin-top: 32px; gap: 26px; }
}
@media (max-width: 540px) {
  .hero { min-height: clamp(540px, 132vw, 590px); }
  .hero .hero-video-art .hero-video-frame { top: 132px; }
  .hero-content { padding: clamp(136px, 35vw, 158px) 0 60px; }
  .hero .eyebrow { margin-bottom: 29px; font-size: 8px; letter-spacing: 1.55px; }
  .hero h1 { font-size: clamp(30px, 8.8vw, 43px); line-height: 1.4; letter-spacing: -1.2px; }
  .hero-subtitle { font-size: 11px; margin-top: 30px; letter-spacing: .2px; }
  .hero-description { font-size: 12px; line-height: 2; margin-top: 16px; }
  .hero-ctas { margin-top: 30px; gap: 24px; }
  .hero > .star-field { opacity: .54; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-art .hero-video-frame > video { opacity: 0 !important; transition: none; }
}
