/* Scoped home-page video hero. Selectors are prefixed so this cannot
   restyle other sections. */

/* Pull the video under the visible sticky nav (h-13 = 3.25rem).
   --do-chrome-height is 5.25rem and still includes the hidden
   announcement strip, so we do not use it here. flow-root stops
   the negative margin from collapsing through main. */
[data-block="globe-hero"]:has(> .do-video-hero) {
  margin-top: -3.25rem;
  display: flow-root;
}

.do-video-hero {
  position: relative;
  box-sizing: border-box;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #171717;
  background-image: url("/hero/DataObserve_Hero_poster.jpg");
  background-size: cover;
  background-position: center;
  color: #fdfdfc;
}

.do-video-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.do-video-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.92) 0%, rgba(23, 23, 23, 0.7) 35%, rgba(23, 23, 23, 0) 65%),
    linear-gradient(0deg, #171717 0%, rgba(23, 23, 23, 0) 25%);
}

.do-video-hero__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  padding: 0 6vw;
  max-width: 760px;
}

.do-video-hero__tag {
  font-family: ui-monospace, Menlo, Monaco, "Courier New", monospace;
  color: #6B97FF;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.do-video-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fdfdfc;
}

.do-video-hero h1 span {
  color: #a3a3a3;
  display: block;
}

.do-video-hero__content > p {
  margin: 22px 0 0;
  color: #a3a3a3;
  font-size: 18px;
  line-height: 1.5;
  max-width: 520px;
}

.do-video-hero__ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.do-video-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.do-video-hero__btn:hover {
  transform: translateY(-1px);
}

.do-video-hero__btn:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.do-video-hero__btn--primary {
  background: #fdfdfc;
  color: #171717;
  border: 1px solid #fdfdfc;
}

.do-video-hero__btn--ghost {
  background: transparent;
  border: 1px solid #414141;
  color: #fdfdfc;
}

.do-video-hero__btn--ghost:hover {
  border-color: #a3a3a3;
}

@media (max-width: 480px) {
  .do-video-hero {
    min-height: 560px;
  }

  .do-video-hero__content > p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .do-video-hero__media {
    display: none !important;
  }

  .do-video-hero__btn {
    transition: none;
  }

  .do-video-hero__btn:hover {
    transform: none;
  }
}
