/* Video hero of the six product pages, as on linear.app's product pages: a looping video of the product
   on a tilted plane runs behind the eyebrow and the title, under the transparent part of the header; a
   lead row with the subtitle and the buttons follows, then the screenshot stage. The videos are rendered
   by tools/hero-video/; site.js plays them only while the hero is on screen, and not at all under reduced
   motion, where the poster (the first frame) stands. */

.vhero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(var(--header) + clamp(560px, 100svh - 128px, 772px));
  padding: var(--header) 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}

/* The video runs from the top of the page, under the header, to the hairline. */
.vhero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.vhero-video,
.vhero-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vhero-video {
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.5;
}

/* Page background fading out from the top (to 40%) and from the bottom (to 50%). */
.vhero-mask stop {
  stop-color: var(--bg);
}

/* The last quarter of the hero settles into the page background. */
.vhero-media::after {
  content: "";
  position: absolute;
  inset: 75% 0 0;
  background: linear-gradient(180deg, #0a0b0d00, var(--bg));
}

.vhero .eyebrow {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-3);
  font: 400 16px/1.4 var(--sans);
  letter-spacing: -0.01em;
  text-transform: none;
}

.vhero .eyebrow b {
  font-weight: 500;
}

.vhero h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.022em;
}

.vhero h1 .line {
  display: block;
}

/* Lead row: the subtitle on the left, the buttons on the right, both resting on one line. */
.vlead {
  padding-top: 56px;
}

.vlead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 64px;
}

.vlead .hero-sub {
  max-width: 640px;
}

.vlead .hero-actions {
  flex: none;
  margin-top: 0;
}

@media (max-width: 860px) {
  .vhero {
    height: clamp(560px, 100svh - 230px, 620px);
    padding-bottom: 64px;
  }

  .vhero-video {
    object-position: 62% 50%;
  }

  .vhero .eyebrow {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .vhero h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .vhero h1 .line {
    display: inline;
  }

  .vlead {
    padding-top: 40px;
  }

  .vlead-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
