/* Refina homepage positioning statement, six language responsive composition.
   Scoped to the homepage; shared core typography and language-specific font rules stay intact. */
.page-home .positioning-main { min-inline-size: 0; }
.page-home .positioning-headline {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 100%;
  padding-inline: 0.045em;
  padding-block: 0.12em;
  overflow: visible;
  text-wrap: balance;
}
.page-home .positioning-headline .positioning-highlight {
  display: block;
  max-inline-size: 100%;
  margin-inline: auto;
  text-wrap: balance;
}
.page-home .positioning-headline .positioning-highlight--inline {
  display: inline;
  margin-inline: 0;
}
.page-home .positioning-headline .positioning-highlight .word-outlined {
  white-space: nowrap;
}
.page-home .positioning-main .positioning-sub {
  box-sizing: border-box;
  inline-size: 100%;
  text-align: center;
}

/* D61 | Positioning section, one viewport including the full service ticker.
   Scoped to the six homepages; typography responds to available height as
   well as width. Keep enlarged text accessible through natural growth. */
.page-home .positioning-main {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: clamp(0.25rem, 0.9svh, 0.8rem);
}
.page-home .positioning-headline {
  padding-block: 0.035em;
  margin-block: 0 clamp(0.3rem, 1.1svh, 0.85rem);
}
.page-home .positioning-main .positioning-sub {
  line-height: 1.4;
  letter-spacing: 0.14em;
}
.page-home .positioning-credibility .stat-strip {
  padding-block: clamp(0.4rem, 1.3svh, 1.3rem);
}
.page-home .positioning-credibility .stat-grid {
  row-gap: clamp(0.5rem, 1.3svh, 1.25rem);
}
@media (max-width: 768px) {
  .page-home .positioning-headline {
    font-size: clamp(2.15rem, 5svh, 3rem);
    line-height: 1.09;
  }
  .page-home .positioning-credibility .stat-grid {
    column-gap: clamp(0.5rem, 2vw, 1rem);
    row-gap: clamp(0.45rem, 1.2svh, 0.9rem);
  }
  .page-home .positioning-credibility .stat-number { margin-bottom: 0.25rem; }
  .page-home .positioning-credibility .stat-label { line-height: 1.3; }
  .page-home .positioning-main .positioning-sub {
    font-size: clamp(0.72rem, 2.7vw, 0.84rem);
    line-height: 1.35;
    letter-spacing: 0.12em;
  }
}
@media (max-width: 768px) and (orientation: portrait) and (max-height: 700px) {
  .page-home .positioning-headline {
    font-size: clamp(1.9rem, 4.7svh, 2.25rem);
    line-height: 1.08;
  }
  .page-home .positioning-main { padding-top: max(var(--header-h), 3.5rem); }
  .page-home .positioning-credibility .stat-strip { padding-block: 0.4rem; }
  .page-home .positioning-main .positioning-sub { font-size: 0.72rem; }
}
/* Noto Naskh Arabic needs extra line clearance; the generic 1.6 heading line
   height consumes excessive vertical space in this tightly composed stage. */
html:lang(ar) .page-home .positioning-headline { line-height: 1.32; }
@media (max-width: 768px) {
  html:lang(ar) .page-home .positioning-headline {
    font-size: clamp(2.05rem, 4.8svh, 2.75rem);
    line-height: 1.31;
  }
}
/* Preserve the established compact one-row statistics in short landscape. */
@media (orientation: landscape) and (max-height: 500px) {
  .page-home .positioning-headline {
    font-size: clamp(1.55rem, 7svh, 2.4rem);
    line-height: 1.05;
  }
  html:lang(ar) .page-home .positioning-headline {
    font-size: clamp(1.45rem, 6.9svh, 2.3rem);
    line-height: 1.24;
  }
  .page-home .positioning-main .positioning-sub {
    font-size: clamp(0.66rem, 2svh, 0.8rem);
    line-height: 1.3;
  }
  .page-home .positioning-credibility .stat-grid { gap: 0.4rem; }
  .page-home .positioning-credibility .stat-strip { padding-block: 0.3rem; }
  .page-home .positioning-statement .marquee-band { padding-block: 0.65rem; }
}

/* D64 | Three group positioning composition (owner directive, 25 November 2026).
   The headline, the expertise line and the agency line are three grid rows, and
   the free height between the header and the statistics is shared out by four
   flexible gap rows in fixed proportion (header to headline, headline to lead,
   lead to close, close to statistics). Each gap keeps a legible minimum, so a
   longer language or a shorter screen draws the gaps in before the type, and the
   section grows past one screen only where enlarged text cannot fit (min-height
   fit-content above). The statistics and the ticker below are untouched. */
.page-home .positioning-main {
  --pos-g1: 1fr;
  --pos-g2: 0.52fr;
  --pos-g3: 0.22fr;
  --pos-g4: 0.9fr;
  --pos-g1-min: 0.75rem;
  --pos-g2-min: clamp(1.05rem, 2.4svh, 1.7rem);
  --pos-g3-min: clamp(0.35rem, 0.8svh, 0.7rem);
  --pos-g4-min: clamp(0.75rem, 1.8svh, 1.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows:
    minmax(var(--pos-g1-min), var(--pos-g1)) auto
    minmax(var(--pos-g2-min), var(--pos-g2)) auto
    minmax(var(--pos-g3-min), var(--pos-g3)) auto
    minmax(var(--pos-g4-min), var(--pos-g4));
  justify-items: center;
  align-content: stretch;
  padding-block: 0;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.page-home .positioning-headline { grid-row: 2; margin-block: 0; }
.page-home .positioning-main .positioning-sub--lead { grid-row: 4; }
.page-home .positioning-main .positioning-sub--close { grid-row: 6; }
.page-home .positioning-main .positioning-sub {
  font-size: clamp(0.8rem, min(0.5rem + 0.6vw, 2.1svh), 1.3rem);
  max-inline-size: 46em;
}
@media (max-width: 768px) {
  .page-home .positioning-main .positioning-sub {
    font-size: clamp(0.78rem, 3.3vw, 1rem);
    max-inline-size: 100%;
  }
}
@media (max-width: 768px) and (orientation: portrait) and (max-height: 700px) {
  .page-home .positioning-main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
}
/* Short landscape keeps its established header clearance (69 to 73px there). */
@media (orientation: landscape) and (max-height: 500px) {
  .page-home .positioning-main {
    --pos-g1-min: 0.25rem;
    --pos-g2-min: 0.65rem;
    --pos-g3-min: 0.25rem;
    --pos-g4-min: 0.5rem;
    padding-block: 4.25rem 0;
  }
  .page-home .positioning-main .positioning-sub { font-size: clamp(0.66rem, 2svh, 0.8rem); }
}
/* Arabic headline lines are 1.32 tall for Noto Naskh clearance, so on short
   desktop screens its size follows the height a step sooner (11svh against the
   shared 13vh) and the four gaps keep their room without pushing the ticker. */
@media (min-width: 769px) and (min-height: 501px) {
  html:lang(ar) .page-home .positioning-headline { font-size: clamp(3rem, min(7vw, 11svh), 8rem); }
}
/* Tall screens. The two inner gaps stop at a height scaled length, so the
   headline and its two lines stay one composition and the spare height goes to
   the space above the headline and above the statistics. */
@media (min-height: 1000px) {
  .page-home .positioning-main {
    --pos-g2: clamp(3rem, 6.5svh, 6rem);
    --pos-g3: clamp(1.25rem, 2.4svh, 2.25rem);
  }
}
/* Portrait tablets 600 to 768px wide share the phone rule above, whose 3rem cap
   leaves the headline small on a tall canvas; here it follows the screen to 4rem. */
@media (min-width: 600px) and (max-width: 768px) and (orientation: portrait) and (min-height: 900px) {
  .page-home .positioning-headline { font-size: clamp(2.15rem, min(8vw, 5.5svh), 4rem); }
  html:lang(ar) .page-home .positioning-headline { font-size: clamp(2.05rem, min(7.3vw, 5.2svh), 3.6rem); }
}
/* Very large screens (4K at full resolution, 2000 by 1500 and above). The headline
   keeps its 8rem cap, set by the content column's width; the two lines and the two
   inner gaps take one further, measured step so the composition holds the canvas. */
@media (min-width: 2000px) and (min-height: 1500px) {
  .page-home .positioning-main .positioning-sub { font-size: clamp(0.8rem, min(0.5rem + 0.6vw, 2.1svh), 1.75rem); }
  .page-home .positioning-main {
    --pos-g2: clamp(3rem, 6.5svh, 9rem);
    --pos-g3: clamp(1.25rem, 2.4svh, 3.5rem);
  }
}
/* Landscape phones with the browser bars showing (360px tall and under), where
   every gap already sits at its floor. The headline takes one further step and
   the gap above the statistics a smaller floor, so the animated headline still
   leaves the full ticker in view (measured 5 to 7px over at 568 by 320 in
   French, Spanish and Arabic with motion on). */
@media (orientation: landscape) and (max-height: 360px) {
  .page-home .positioning-main { --pos-g4-min: 0.4rem; }
  .page-home .positioning-headline { font-size: clamp(1.35rem, 6.8svh, 2.4rem); }
  html:lang(ar) .page-home .positioning-headline { font-size: clamp(1.3rem, 6.5svh, 2.3rem); }
}
/* Landscape screens 501 to 580px tall, between the short landscape tier above
   and the laptop sizes: the desktop headline scale left French, Spanish and
   Arabic up to 29px past the screen foot (one pixel boundary sweep, section 29B). */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 580px) {
  .page-home .positioning-headline { font-size: clamp(2rem, min(7vw, 10.5svh), 3.5rem); }
  html:lang(ar) .page-home .positioning-headline { font-size: clamp(1.9rem, min(6.5vw, 9svh), 3.2rem); }
}
/* Arabic lines run 1.32 tall, so its step reaches 640px (1024 by 581 measured 4px over). */
@media (orientation: landscape) and (min-height: 581px) and (max-height: 640px) {
  html:lang(ar) .page-home .positioning-headline { font-size: clamp(1.9rem, min(6.5vw, 9.5svh), 3.4rem); }
}
