/* Homepage cinematic hero — responsive (layout positioning only) */

@media (max-width: 1199.98px) {
  .hero--cinematic__content {
    max-width: min(460px, 52vw);
  }

  .hero--cinematic__cards {
    max-width: min(240px, 28vw);
    bottom: clamp(100px, 13vh, 148px);
  }

  .hero--cinematic__metrics {
    max-width: min(560px, 62vw);
  }

  .hero--cinematic__metric {
    padding-left: clamp(14px, 1.8vw, 22px);
  }

  .hero--cinematic__gradient--left {
    background: linear-gradient(
      90deg,
      rgba(6, 20, 38, 0.96) 0%,
      rgba(6, 20, 38, 0.82) 22%,
      rgba(11, 31, 58, 0.45) 42%,
      transparent 62%
    );
  }

  .hero--cinematic__gradient--right {
    background: linear-gradient(
      270deg,
      rgba(6, 20, 38, 0.94) 0%,
      rgba(11, 31, 58, 0.75) 18%,
      rgba(11, 31, 58, 0.3) 38%,
      transparent 58%
    );
  }
}

/* Tablet + mobile — match Field Sales Automation: video up, content down */
@media (max-width: 991.98px) {
  .hero.hero--cinematic {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .hero--cinematic__stage {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-height: 0;
  }

  .hero--cinematic__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .hero--cinematic__content {
    max-width: none;
    width: 100%;
  }

  .hero--cinematic__eyebrow {
    margin-bottom: 8px;
  }

  .hero--cinematic__title {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    line-height: 1.08;
  }

  .hero--cinematic__lede {
    max-width: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .hero--cinematic__ctas {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    max-width: none;
  }

  .hero--cinematic__ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 42px;
    padding: 0.7em 0.95em;
    font-size: 0.78rem;
    white-space: nowrap;
    justify-content: center;
  }

  /* Hide right-side floating cards on tablet/mobile */
  .hero--cinematic__cards {
    display: none;
  }

  .hero--cinematic__divider {
    position: relative;
    bottom: auto;
    margin-top: 16px;
    margin-bottom: 0;
  }

  /* 2×2 bottom bar: 10+ Years | 40k+ / 3–6 Days | 24x7 */
  .hero--cinematic__bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: start;
    margin-top: 14px;
  }

  .hero--cinematic__years {
    margin-top: 0;
  }

  .hero--cinematic__years-label br {
    display: none;
  }

  .hero--cinematic__metrics {
    display: contents;
  }

  .hero--cinematic__metric {
    padding-left: 0;
    border-left: none !important;
  }

  .hero--cinematic__metric:last-child {
    grid-column: auto;
    max-width: none;
  }

  .hero--cinematic__metric-num {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  }

  .hero--cinematic__metric-desc {
    font-size: 0.64rem;
    max-width: none;
  }

  .hero--cinematic__gradient--left {
    background: linear-gradient(
      180deg,
      rgba(6, 20, 38, 0.22) 0%,
      rgba(6, 20, 38, 0.12) 28%,
      rgba(6, 20, 38, 0.45) 58%,
      rgba(6, 20, 38, 0.88) 100%
    );
  }

  .hero--cinematic__gradient--right {
    background: linear-gradient(
      to top,
      rgba(6, 20, 38, 0.9) 0%,
      rgba(6, 20, 38, 0.55) 42%,
      transparent 100%
    );
  }
}

@media (max-width: 767.98px) {
  .hero--cinematic__content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero--cinematic__title {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .hero--cinematic__lede {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .hero--cinematic__ctas {
    gap: 8px;
  }

  .hero--cinematic__ctas .btn {
    min-height: 42px;
    padding: 0.72em 0.85em;
    font-size: 0.78rem;
  }

  .hero--cinematic__container {
    padding-bottom: 14px;
  }

  .hero--cinematic__bar {
    gap: 12px 14px;
    margin-top: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero--cinematic__years-num,
  .hero--cinematic__metric-num {
    font-size: 1.1rem;
  }

  .hero--cinematic__years-label,
  .hero--cinematic__metric-title {
    font-size: 0.72rem;
  }

  .hero--cinematic__metric-desc {
    font-size: 0.62rem;
  }
}

@media (max-width: 575.98px) {
  .hero--cinematic__eyebrow {
    font-size: 0.62rem;
  }

  .hero--cinematic__title {
    font-size: clamp(1.32rem, 5.8vw, 1.55rem);
  }

  .hero--cinematic__lede {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .hero--cinematic__ctas .btn {
    min-height: 40px;
    padding: 0.68em 0.75em;
    font-size: 0.74rem;
  }

  .hero--cinematic__years-num,
  .hero--cinematic__metric-num {
    font-size: 1.02rem;
  }
}

@media (max-width: 480px) {
  .hero--cinematic__title {
    font-size: 1.32rem;
  }

  .hero--cinematic__ctas .btn {
    font-size: 0.72rem;
    padding: 0.65em 0.7em;
    min-height: 40px;
  }

  .hero--cinematic__bar {
    gap: 10px 12px;
  }
}

@media (max-width: 360px) {
  .hero--cinematic__title {
    font-size: 1.2rem;
  }

  .hero--cinematic__lede {
    font-size: 0.76rem;
    margin-bottom: 8px;
  }

  .hero--cinematic__ctas .btn {
    font-size: 0.68rem;
    padding: 0.6em 0.55em;
    min-height: 38px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero.hero--cinematic {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero--cinematic__container {
    padding-top: 72px;
    padding-bottom: 16px;
  }
}
