/*
  Standard banner hero — the same size and behaviour on every page that uses it (currently the
  homepage; link this file from any product/service/landing page that wants a plain photo
  banner with a centred headline, instead of a page building its own one-off hero).

  Reference size 1905x728 (~2.617:1), enforced by aspect-ratio so it holds exactly regardless
  of the photo's own native size — swap the image on another page and the shape stays the same.
  Below ~760px there isn't room for that ratio plus a headline and two buttons, so a shared
  min-height floor takes over there (same floor on every page, not a per-page tweak).

  Markup:
    <section class="hero-banner">
      <img src="…" width="1905" height="728" alt="…" fetchpriority="high">
      <div class="hero-scrim" aria-hidden="true"></div>
      <div class="hero-content">
        <h1>Headline</h1>
        <div class="hero-ctas">
          <a href="#" class="btn btn-primary">Label <svg>…</svg></a>
          <a href="#" class="btn btn-secondary"><svg>…</svg> Label</a>
        </div>
      </div>
    </section>

  The scrim is a flat navy-tinted wash (not tuned to any one photo) so white text stays legible
  over whatever image a page uses. .btn-secondary is overridden to a light outline here, since
  its site-wide default (dark text, transparent fill) disappears against a photo.
*/
.hero-banner{
  position:relative;
  width:100%;
  aspect-ratio:1905/728;
  overflow:hidden;
  background:var(--paper-3); /* shows briefly while the image loads */
}
.hero-banner img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-scrim{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg, rgba(13,13,13,.22) 0%, rgba(28,63,93,.58) 100%);
  pointer-events:none;
}
.hero-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:28px;
  padding:24px;
  text-align:center;
}
.hero-content h1{
  max-width:22ch;
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(26px, 4.6vw, 58px);
  line-height:1.1;
  letter-spacing:-0.02em;
  color:var(--white);
  text-shadow:0 2px 24px rgba(0,0,0,.4);
  text-wrap:balance;
}
.hero-ctas{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.hero-ctas .btn-secondary{
  color:var(--white);
  border-color:rgba(255,255,255,.55);
}
.hero-ctas .btn-secondary:hover{border-color:var(--white);}

/*
  Editorial hero (category / sub-category pages) — modelled on slb.com's product-page hero:
  a light banner photo, left-aligned navy light-weight <h1>, grey lead paragraph and a row of
  buttons (first one navy-filled, the rest navy-outlined). Reference banner size 1905x446 with a
  white left half and the subject on the right.

  The banner is pinned to the bottom-right at full width, never scaled up past it, so the subject
  keeps the same place on every screen; if the text needs more height than the photo, the extra
  space is plain white above it. Below 760px the photo moves under the text.

  Markup:
    <section class="hero-editorial">
      <img class="hero-editorial-bg" src="…" width="1905" height="446" alt="…" fetchpriority="high">
      <div class="wrap">
        <div class="hero-editorial-text">
          <span class="eyebrow">…</span>            (optional)
          <h1>Headline</h1>
          <p class="hero-editorial-lead">…</p>
          <div class="hero-editorial-ctas">
            <a class="btn btn-navy">…</a> <a class="btn btn-navy-outline">…</a>
          </div>
        </div>
      </div>
    </section>
*/
.hero-editorial{
  position:relative;
  display:flex;
  align-items:center;
  min-height:max(400px, calc(100vw * 446 / 1905));
  padding:40px 0;
  overflow:hidden;
  background:#f0f0f0; /* light grey fold, as on slb.com */
  border-bottom:1px solid var(--line);
}
.hero-editorial-bg{
  position:absolute;
  right:0;
  bottom:0;
  width:100%;
  height:auto;
  mix-blend-mode:multiply; /* the banner's white background takes on the grey, so no white box shows */
}
.hero-editorial > .wrap{position:relative;z-index:1;width:100%;}
.hero-editorial-text{max-width:min(690px, 48vw);} /* stays clear of the subject on the right half */
.hero-editorial h1{
  margin-top:18px;
  font-family:var(--font-head);
  font-size:clamp(40px, 4.2vw, 68px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-0.025em;
  color:var(--navy);
}
.hero-editorial-text > h1:first-child{margin-top:0;}
.hero-editorial-lead{
  margin-top:20px;
  font-size:clamp(15px, 1.05vw, 17px);
  line-height:1.6;
  color:var(--text-2);
}
.hero-editorial-lead a{
  font-weight:600;
  color:var(--navy);
  text-decoration:underline;
  text-decoration-color:rgba(28,63,93,.35);
  text-underline-offset:3px;
}
.hero-editorial-lead a:hover{text-decoration-color:var(--navy);}
.hero-editorial-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}
.hero-editorial-ctas .btn{padding:13px 20px;font-size:14.5px;}
.btn-navy{
  background:var(--navy);
  color:var(--white);
  border:1px solid var(--navy);
}
.btn-navy:hover{background:var(--navy-2);border-color:var(--navy-2);}
.btn-navy-outline{
  background:transparent;
  color:var(--navy);
  border:1px solid var(--navy);
}
.btn-navy-outline:hover{background:var(--navy);color:var(--white);}

@media (max-width:760px){
  .hero-editorial{flex-direction:column;align-items:stretch;min-height:0;padding:40px 0 0;}
  .hero-editorial-text{max-width:none;}
  .hero-editorial-bg{
    position:relative;
    order:2;
    width:100%;
    height:220px;
    margin-top:32px;
    object-fit:cover;
    object-position:right bottom; /* show the subject, drop the empty white left half */
  }
}

@media (max-width:760px){
  .hero-banner{aspect-ratio:auto;min-height:380px;}
  .hero-content{gap:20px;padding:20px;}
}
@media (max-width:480px){
  .hero-banner{min-height:320px;}
  .hero-ctas{flex-direction:column;align-items:stretch;width:100%;max-width:320px;}
}
