/*
2026-07-16 v0.0.2 - keep playback control visible in compact hero viewports.
CDX-nns-hero-video.css, version: 0.0.2
CDX=true
*/

.nns-video-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, calc(100svh - 110px), 900px);
  overflow: hidden;
  background: #07131a;
  color: #fff;
}

.nns-video-hero__video {
  position: absolute !important;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  background: #07131a;
}

.nns-video-hero__scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 10, 16, .92) 0%, rgba(2, 10, 16, .72) 38%, rgba(2, 10, 16, .18) 72%, rgba(2, 10, 16, .08) 100%),
    linear-gradient(0deg, rgba(2, 10, 16, .64) 0%, transparent 40%);
}

.nns-video-hero__content,
.nns-video-hero > .hero-grid,
.nns-video-hero > .hero-bg-pattern,
.nns-video-hero > .hero-lines {
  position: relative;
  z-index: 2;
}

.nns-video-hero__toggle {
  position: absolute;
  z-index: 4;
  right: clamp(.8rem, 2vw, 1.5rem);
  bottom: clamp(.8rem, 2vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  min-height: 2.75rem;
  padding: .65rem .9rem;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(4, 12, 18, .76);
  color: #fff;
  font: 700 .75rem/1 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nns-video-hero__toggle:hover,
.nns-video-hero__toggle:focus-visible {
  background: #fff;
  color: #07131a;
}

body .hero.nns-video-hero {
  display: block;
  min-height: clamp(620px, calc(100svh - 110px), 900px);
  padding: 0;
  background: #07131a;
  color: #fff;
}

body .hero.nns-video-hero::before,
body .hero.nns-video-hero::after {
  content: none;
}

body .hero.nns-video-hero .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  width: min(var(--max, 1240px), calc(100% - 3rem));
  min-height: clamp(620px, calc(100svh - 110px), 900px);
  margin-inline: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

body .hero.nns-video-hero .hero-copy {
  align-self: center;
  max-width: 760px;
  padding: clamp(4rem, 8vw, 8rem) 0;
  border: 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .38);
}

body .hero.nns-video-hero .hero-copy p {
  color: rgba(255, 255, 255, .88);
}

body .hero.nns-video-hero .hero-note {
  position: relative;
  right: auto;
  bottom: auto;
  align-self: end;
  justify-self: end;
  max-width: 300px;
  margin: 0 0 5.5rem;
  background: rgba(4, 12, 18, .78);
  color: #fff;
  backdrop-filter: blur(8px);
}

.nns-video-hero--proto .hero-content {
  min-height: clamp(700px, calc(100svh - 100px), 940px);
  max-width: min(760px, 66vw);
}

.nns-video-hero--archive {
  min-height: clamp(420px, 72svh, 860px);
}

.nns-video-hero-page #sliders-container {
  display: none !important;
}

.nns-video-hero--proto .nns-video-hero__toggle {
  right: 8.5rem;
}

.nns-video-hero--archive .nns-video-hero__scrim {
  background: linear-gradient(0deg, rgba(2, 10, 16, .34), transparent 46%);
}

@media (max-width: 980px) {
  body .hero.nns-video-hero .hero-grid {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, var(--max, 1240px));
  }

  body .hero.nns-video-hero .hero-copy {
    padding: 4rem 1rem 8rem;
  }

  body .hero.nns-video-hero .hero-note {
    display: none;
  }

  .nns-video-hero--proto .hero-content {
    max-width: 760px;
    padding-bottom: 7.5rem;
  }
}

@media (max-width: 620px) {
  .nns-video-hero,
  body .hero.nns-video-hero,
  body .hero.nns-video-hero .hero-grid {
    min-height: 720px;
  }

  .nns-video-hero__scrim {
    background:
      linear-gradient(90deg, rgba(2, 10, 16, .84), rgba(2, 10, 16, .48)),
      linear-gradient(0deg, rgba(2, 10, 16, .78), transparent 58%);
  }

  .nns-video-hero__toggle,
  .nns-video-hero--proto .nns-video-hero__toggle {
    top: 1rem;
    right: auto;
    bottom: auto;
    left: 1rem;
  }

  .nns-video-hero__video {
    object-position: 58% center;
  }

  body .hero.nns-video-hero .hero-grid {
    width: calc(100% - 1.25rem);
  }

  body .hero.nns-video-hero .hero-copy {
    padding: 3.5rem .5rem 8rem;
  }

  .nns-video-hero--proto .hero-content {
    min-height: 760px;
    padding-bottom: 7.5rem;
  }

  .nns-video-hero--archive {
    min-height: 70svh;
  }

  .nns-video-hero--archive .nns-video-hero__video {
    object-position: 72% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nns-video-hero__toggle {
    display: none;
  }
}
