/* ==========================================================================
   V18 — Homepage hero H1 rotation: identical height for all 3 headings
   --------------------------------------------------------------------------
   MEASURED (Playwright headless shell, Manrope, local QA 2026-11-09):
   Rotator words (index.html, UNCHANGED):
     1. "We give the solution to your business."
     2. "We turn visitors into customers."
     3. "We build websites that bring you business."   (longest)
   Effective V17 type: font-size clamp(2.5rem, 8vw, 5rem) (= 80px desktop,
   40px at 390px), line-height 1.04 (v16-averlo.css, !important) — neither
   is touched here: NO font-size change, NO text change, NO colour change.

   WHY NOT LITERALLY "2 LINES": measured minimum h1 width for exactly
   2 lines (Range line-count probe, same font):
     desktop 80px: longest needs 839px, #1 needs 753px, #2 needs 585px —
       available hero-copy column is only ~550px (1440px viewport).
     mobile 390px, 40px: longest needs 398px, #1 needs 357px — available
       is 323px, and the viewport itself is only 390px wide, so even a
       full-bleed h1 (max ~358px) cannot fit the longest heading in 2 lines.
   text-wrap balance on/off and letter-spacing -0.08em (!important) were
   both probed: neither changes the line counts. The only routes to literal
   2 lines are a smaller font-size or shorter text (both forbidden by the
   V18 order) or widening the desktop copy column to ~840px+ and crushing
   the hero video to ~300px — a hero rebuild that still cannot work on a
   390px phone. That needs an owner decision; it is NOT done here.

   WHAT THIS FILE DOES INSTEAD (maximum achievable inside the hard rules):
   reserve the TALLEST heading's height for the h1 at every width, so all
   three rotations occupy exactly the same measured height, with the same
   line-height, and the lede/CTAs never jump when the headline rotates.
   min-height is in em: lines x 1.04 (the V17 line-height), so it tracks
   the fluid font-size exactly. min-height never clips: a heading taller
   than the reserve simply grows the box. Bands are the measured tallest
   line counts per width (before-measurements + crossover probes):
     <=384px : tallest 4 lines (320-380px measured; 385px flips to 3)
     385-1020: tallest 3 lines (390/430/500/600/767/768/900/1020 measured)
     1021-1144: tallest 5 lines (1021/1100/1124/1140 measured; 2-col grid,
       narrow col; longest flips to 4 lines at 1145px, h1 width ~508px)
     >=1145 : tallest 4 lines (1145/1150/1200/1366/1440/1920 measured)
   ========================================================================== */

/* Base = desktop wide (>=1145px): tallest heading is 4 lines. */
.home-hero .hero-copy .h-display {
  min-height: 4.16em; /* 4 lines x 1.04 line-height */
}

/* Narrow desktop, 2-column grid (1021-1144px): tallest heading is 5 lines. */
@media (min-width: 1021px) and (max-width: 1144px) {
  .home-hero .hero-copy .h-display {
    min-height: 5.2em; /* 5 lines x 1.04 line-height */
  }
}

/* Single-column + phones (385-1020px): tallest heading is 3 lines. */
@media (min-width: 385px) and (max-width: 1020px) {
  .home-hero .hero-copy .h-display {
    min-height: 3.12em; /* 3 lines x 1.04 line-height */
  }
}

/* Smallest phones (<=384px): tallest heading is 4 lines. */
@media (max-width: 384px) {
  .home-hero .hero-copy .h-display {
    min-height: 4.16em; /* 4 lines x 1.04 line-height */
  }
}
