.compass-video-hero {
  --cvh-min-height: 100vh;
  --cvh-transition-duration: 900ms;
  --cvh-content-width: 760px;
  --cvh-content-gap: 18px;
  --cvh-line-color: rgba(255, 255, 255, 0.55);
  --cvh-line-active-color: #e1261c;
  --cvh-line-width: 58px;
  --cvh-line-height: 2px;
  --cvh-line-gap: 14px;
  --cvh-line-bottom: 40px;
  position: relative;
  min-height: var(--cvh-min-height);
  overflow: hidden;
  isolation: isolate;
  background: #111;
  color: #fff;
}

.compass-video-hero,
.compass-video-hero * {
  box-sizing: border-box;
}

.compass-video-hero__media,
.compass-video-hero__overlay {
  position: absolute;
  inset: 0;
}

.compass-video-hero__media {
  z-index: 0;
  overflow: hidden;
  background: #111;
}

.compass-video-hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--cvh-transition-duration) ease;
  will-change: opacity;
}

.compass-video-hero__video.is-active {
  opacity: 1;
}

.compass-video-hero__overlay {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
}

.compass-video-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: var(--cvh-min-height);
  padding: 80px 64px 100px;
  align-items: center;
  justify-content: center;
}

.compass-video-hero__content-stack {
  display: grid;
  width: min(100%, var(--cvh-content-width));
}

.compass-video-hero__panel {
  grid-area: 1 / 1;
  width: 100%;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--cvh-transition-duration) ease,
    visibility 0s linear var(--cvh-transition-duration);
}

.compass-video-hero__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.compass-video-hero__eyebrow,
.compass-video-hero__title,
.compass-video-hero__description,
.compass-video-hero__button {
  margin: 0;
}

.compass-video-hero__panel > * + * {
  margin-top: var(--cvh-content-gap);
}

.compass-video-hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compass-video-hero__title {
  color: inherit;
  font-size: clamp(2.25rem, 5vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
}

.compass-video-hero__description {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.compass-video-hero__description > :first-child {
  margin-top: 0;
}

.compass-video-hero__description > :last-child {
  margin-bottom: 0;
}

.compass-video-hero__button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border: 0 solid transparent;
  background: #fff;
  color: #111;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.compass-video-hero__button:hover,
.compass-video-hero__button:focus-visible {
  color: #111;
  text-decoration: none;
  transform: translateY(-2px);
}

.compass-video-hero__button:focus-visible,
.compass-video-hero__line:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.compass-video-hero__navigation {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--cvh-line-bottom);
  display: flex;
  gap: var(--cvh-line-gap);
  transform: translateX(-50%);
}

.compass-video-hero__line {
  position: relative;
  width: var(--cvh-line-width);
  height: max(20px, calc(var(--cvh-line-height) + 12px));
  flex: 0 0 var(--cvh-line-width);
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cvh-line-active-color);
  cursor: pointer;
}

.compass-video-hero__line:hover,
.compass-video-hero__line:focus,
.compass-video-hero__line:focus-visible,
.compass-video-hero__line:active,
.compass-video-hero__line.is-active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.compass-video-hero__line::before,
.compass-video-hero__line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: var(--cvh-line-height);
  transform: translateY(-50%);
}

.compass-video-hero__line::before {
  background: var(--cvh-line-color);
}

.compass-video-hero__line::after {
  background: var(--cvh-line-active-color);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.compass-video-hero__line:hover::after,
.compass-video-hero__line:focus-visible::after,
.compass-video-hero__line.is-active::after {
  transform: translateY(-50%) scaleX(1);
}

.compass-video-hero--single .compass-video-hero__navigation {
  display: none;
}

.compass-video-hero.is-loading {
  cursor: progress;
}

.compass-video-hero__empty {
  padding: 32px;
  border: 1px dashed #9da5ae;
  background: #f5f7f9;
  color: #31373d;
  text-align: center;
}

@media (max-width: 767px) {
  .compass-video-hero__content {
    padding: 56px 24px 84px;
  }

  .compass-video-hero__navigation {
    max-width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compass-video-hero__video,
  .compass-video-hero__panel,
  .compass-video-hero__line::after,
  .compass-video-hero__button {
    transition: none;
  }

  .compass-video-hero__button:hover,
  .compass-video-hero__button:focus-visible {
    transform: none;
  }
}
