/* ============================================================
   HOME PAGE — hero, credibility stats, sectors strip
   ============================================================ */

/* ── HOME HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-height));
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Parallax wrapper — JS nudges this on scroll for depth. The image inside
   drifts on its own (ken-burns), so the two transforms never collide. */
.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;           /* overscan so parallax never reveals an edge */
  width: 100%;
  height: 120%;
  will-change: transform;
}
.hero__bg picture,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img {
    animation: heroDrift 28s ease-in-out infinite alternate;
    transform-origin: 60% 40%;
  }
}
@keyframes heroDrift {
  from { transform: scale(1.05); }
  to   { transform: scale(1.13) translate(-1.4%, -1.2%); }
}

/* Cinematic grade: darken top (nav legibility) + center vignette, then
   dissolve into --navy at the base so the hero melts into the section below. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 95% at 50% 32%,
      rgba(10,22,40,0) 0%,
      rgba(10,22,40,0.30) 64%,
      rgba(10,22,40,0.66) 100%),
    linear-gradient(180deg,
      rgba(10,22,40,0.62) 0%,
      rgba(10,22,40,0.14) 26%,
      rgba(10,22,40,0.30) 64%,
      var(--navy) 100%);
}
/* Fine film grain — barely-there, lifts it out of flat-stock-photo territory. */
.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content .eyebrow {
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: min(1760px, 94vw);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__wordmark {
  margin: 0 0 -140px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero__wordmark-image {
  height: clamp(320px, 46vh, 540px);
  width: auto;
  max-width: 100%;
  display: block;
}

.hero__rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem 0 1.75rem;
  transform-origin: center;
}
/* Draws itself out from the centre as the hero arrives. Gated the same way
   base.css gates [data-reveal]: only when scripting is available, so the rule
   stays fully drawn if JS never runs. */
@media (scripting: enabled) {
  .hero__rule[data-reveal] {
    opacity: 1;
    transform: scaleX(0);
    transition: transform 820ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .hero__rule[data-reveal].is-visible { transform: scaleX(1); }
}

/* Scroll cue — a slow, breathing hint at the foot of the hero. */
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  transition: opacity var(--ease);
}
.hero__scroll-cue span {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(240,165,0,0.9) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-cue span { animation: cuePulse 2.4s var(--ease-in-out) infinite; transform-origin: top; }
}
@keyframes cuePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
.hero.is-scrolled .hero__scroll-cue { opacity: 0; }

/* Three-tier hero copy. The headline runs on a SINGLE line and is sized by the
   viewport width so it stretches across most of the page; the two supporting
   lines sit narrower beneath it. (Mobile lets the headline wrap — see below.) */
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--white);
  max-width: none;
  white-space: nowrap;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.72);
}
.hero__values {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: none;
  margin: 0 auto 0.85rem;
  text-wrap: pretty;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.hero__regions {
  font-size: clamp(0.85rem, 1.05vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.66);
  max-width: none;
  margin: 0 auto 2rem;
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── CREDIBILITY BAND ─────────────────────────────────────────── */
.stats {
  background: var(--navy-dark);
  border-top: 1px solid rgba(240,165,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 3.25rem 0;
}
.stats__grid {
  display: grid;
  /* minmax(0,1fr), not bare 1fr: bare 1fr tracks refuse to shrink below their
     content and push the row off-screen on narrow viewports. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.stat {
  position: relative;
  text-align: center;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.09);
}
.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: -0.01em;
  /* Lining figures: uniform cap-height numerals that sit on the baseline,
     so "42" / "24/7" align with the capitals in "Caribbean" / "Global". */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 680px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem; }
  .stat { min-width: 0; }
  .stat + .stat::before { display: none; }
  /* The desktop labels use <br> for balanced two-line breaks; in the narrow
     two-column grid those forced lines overflow — let them wrap naturally. */
  .stat__label br { display: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Let the hero headline wrap on tablets so the long single-line version never
     crowds the viewport edges. The one-line treatment stays on true desktop. */
  .hero__headline {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    line-height: 1.16;
    max-width: min(34ch, 92vw);
  }
}

/* Landscape phones — short, wide viewports: shrink the wordmark, widen the
   copy, and tighten spacing so the hero fits without the tablet narrowness. */
@media (max-width: 1100px) and (max-height: 540px) {
  .hero__wordmark { margin: 0 0 -10px; }
  .hero__wordmark-image { height: clamp(140px, 38vh, 220px); }
  .hero__rule { margin: 0.5rem 0 1rem; }
  .hero__headline { font-size: clamp(1.15rem, 2.4vw, 1.6rem); max-width: 44ch; }
  .hero__values { font-size: 0.95rem; margin: 0 auto 0.5rem; max-width: 52ch; }
  .hero__regions { font-size: 0.85rem; margin: 0 auto 1.1rem; max-width: 56ch; }
  .hero__content { padding: 1.25rem 1rem 1.5rem; }
  .hero__scroll-cue { display: none; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    min-height: 85svh;
    justify-content: center;
  }
  .hero__scroll-cue { display: none; }
  .hero__bg img { object-position: center 60%; }
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.25) 35%,
      rgba(0,0,0,0.30) 65%,
      rgba(0,0,0,0.60) 100%);
  }
  .hero__content { padding: 1.5rem 1.25rem 2rem; }
  .hero__wordmark { margin: 0 0 -10px; }
  .hero__wordmark-image { height: clamp(190px, 34vh, 260px); }
  .hero__rule { margin: 0.75rem 0 1.25rem; }
  .hero__headline {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1.35rem, 5.6vw, 1.9rem);
    line-height: 1.18;
    margin: 0 auto 0.85rem;
    max-width: 22ch;
  }
  .hero__values  { font-size: 1rem; line-height: 1.55; margin: 0 auto 0.7rem; max-width: 34ch; }
  .hero__regions { font-size: 0.9rem; line-height: 1.55; margin: 0 auto 1.5rem; max-width: 36ch; }
  .hero__ctas {
    width: auto;
    max-width: 280px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero__ctas .btn {
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    min-width: 220px;
  }
}

@media (max-width: 480px) {
  .hero__content { padding: 1.25rem 1rem 1.75rem; }
  .hero__wordmark-image { height: clamp(170px, 32vh, 220px); }
  .hero__headline { font-size: clamp(1.25rem, 6.6vw, 1.6rem); max-width: 20ch; }
  .hero__values  { font-size: 0.95rem; max-width: 30ch; }
  .hero__regions { font-size: 0.85rem; max-width: 32ch; }
}

@media (max-width: 380px) {
  .hero__content { padding: 1rem 0.875rem 1.5rem; }
  .hero__wordmark-image { height: clamp(150px, 30vh, 190px); }
  .hero__ctas .btn { min-width: 200px; padding: 0.8125rem 1.5rem; }
}

/* The "Our Sectors" grid is shared with services.html — see base.css §8b. */
