/* flexHero — homepage variant only. Loaded conditionally (see global/_head.twig) only when
   heroStyle: homepage, so this file never reaches another page. Rules touching shared hero
   classes are prefixed with .flex-hero__container--homepage; homepage-only classes (intro,
   payoff line) are suffixed --homepage to avoid colliding with other variants' own suffixed
   classes on the same shared element names. */

/* Compound selector outranks the inherited .hero-section__container--testing background,
   same technique as the agents-fleet variant. */
.hero-section__container--testing.flex-hero__container--homepage {
  background: var(--gradient-hero);
}

/* Grid-line texture, masked wider/looser than agents-fleet's so it reads across the whole
   hero rather than concentrated behind the title. */
.flex-hero__container--homepage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(var(--cyan-500-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-500-rgb), 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 6%, transparent 66%);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 6%, transparent 66%);
  pointer-events: none;
}

.flex-hero__container--homepage > .redesign-container {
  position: relative;
  z-index: 1;
}

.flex-hero__container--homepage .platform-heading__text {
  font-family: var(--font-family-mono);
  font-size: 16px;
  font-weight: 400 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 22px;
  white-space: pre-line;
}

.hero-section__container--left.flex-hero__container--homepage .flex-hero__title {
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  line-height: 0.95;
  text-align: left;
  white-space: pre-line;
}

.flex-hero__container--homepage .flex-hero__content { flex: 0 1 56%; }

.flex-hero__intro--homepage {
  margin-top: var(--spacing-lg);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--navy-100);
  max-width: 56ch;
}

.flex-hero__payoff--homepage {
  margin-top: var(--spacing-md);
}

.flex-hero__payoff-line--homepage {
  font-family: var(--font-family-primary);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--color-white);
  max-width: 42ch;
  margin: 0;
}

.flex-hero__container--homepage .cta-button-container { margin-top: var(--spacing-lg); }

/* Taken out of flex flow entirely and pinned to span the section's full height -- align-self:
   stretch + a negative margin approximated this but never quite matched (stretch's cross-size
   math interacts with negative margins in a way that's hard to land exactly). bottom: -29px
   was verified against the rendered result, not derived on paper -- reaches past
   .redesign-container's own bottom to the section's true edge. .flex-hero__content keeps its
   flex: 0 1 56% below, leaving the right-hand space this image now occupies independently of
   flex layout. */
.flex-hero__container--homepage .flex-hero__image {
  position: absolute;
  top: 0;
  bottom: -29px;
  right: 0;
  width: clamp(360px, 38vw, 640px);
}

.flex-hero__container--homepage .flex-hero__image-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: bottom right;
}

/* Between the mobile breakpoint (image hidden below 991px) and a small-laptop width, the
   text column wraps to 3-4 lines and the stretched row gets tall relative to the available
   width -- bottom-flush put the photo's head uncomfortably close to the nav. Middle-aligned
   here reads better; full-height bottom-flush resumes at desktop widths. */
@media (min-width: 992px) and (max-width: 1279px) {
  .flex-hero__container--homepage .flex-hero__image-img {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    object-position: center right;
  }
}

@media (max-width: 991px) {
  .flex-hero__container--homepage .flex-hero__content { flex: 1 1 100%; }
  .flex-hero__payoff-line--homepage { font-size: 22px; }
}
