/* Hero: video background and headline. */

@layer components {
  .rv-hero {
    box-sizing: border-box;
  }
}

@layer sections {
  .hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 660px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    background: var(--hero-bg);
    color: var(--white);
    overflow: hidden;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    background: var(--hero-bg);
  }

  .hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,rgba(6,16,22,.28),rgba(6,16,22,.10) 42%,rgba(6,16,22,.28) 78%,rgba(6,16,22,.62));
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 56px 48px;
  }

  .hero-box-software-defined {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
  }

  .hero-box-software-defined-2 {
    margin-bottom: 22px;
  }

  .hero-label-software-defined {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(0,0,0,.62);
    border: 1px solid rgba(255,255,255,.18);
    padding: 8px 16px;
  }

  .hero-title-software-decisive {
    font-weight: 700;
    font-size: clamp(26px,3.6vw,46px);
    line-height: 1.06;
    letter-spacing: -.035em;
    margin: 0 auto;
    max-width: 22ch;
    text-shadow: 0 2px 30px rgba(0,0,0,.4);
  }

  .hero-copy-software-connects {
    margin: 24px auto 0;
    max-width: 64ch;
    font-size: 17.5px;
    line-height: 1.55;
    color: rgba(255,255,255,.86);
  }
}

/* Breakpoint and state overrides: these win over the section styles above. */
@layer overrides {
  @media (max-width:760px) {
    .rv-hero {
      aspect-ratio: auto;
      min-height: 600px;
    }
    .rv-hero-in {
      padding: 56px 20px 40px;
    }
    .rv-hero-in h1 {
      font-size: 32px;
    }
    .rv-hero-in p {
      font-size: 16px;
    }
  }
}
