/* wfh1/wfh2: sub-service full-bleed hero (components/service-section.php, l2-hero--art). Loaded by parts/head.php only when the page has a
   delivered assets/img/wsx/full/sub-<source slug>-* set, after the service CSS it overrides. The photograph runs under the transparent
   campaign bar and navbar (the service shell is already data-webioo-hero="dark"). Like the main service heroes, the reference logos run as
   a transparent marquee inside the hero's bottom edge. The photographs keep their empty side on the physical left, also in RTL. They are
   shot in Webioo navy, so the heading keeps the service pages' own blue highlight. */
/* The right-hand stage used to give the hero its height; without it the copy alone would make the hero short. Keep the first screen.
   The shell zeroes min-height with an id selector (main#main-content > .l2-hero:first-child), hence the matching id and extra classes. */
body.home2-page.webioo-fullhero main#main-content > section.l2-hero.l2-hero--art:first-child,
main.l2-service section.l2-hero.l2-hero--art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: clamp(84px, 11vh, 104px);
  background: #061331;
}
main.l2-service .l2-hero--art .l2-hero__bg { background: #061331; }
main.l2-service .l2-hero--art .l2-hero__bg::before,
main.l2-service .l2-hero--art .l2-hero__bg::after { content: none; }
main.l2-service .l2-hero--art .l2-hero__art { position: absolute; inset: 0; display: block; margin: 0; }
main.l2-service .l2-hero--art .l2-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
main.l2-service .l2-hero--art .l2-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(4 13 36 / .56) 0, rgb(4 13 36 / 0) calc(var(--home2-top-offset, 124px) + 90px)),
    linear-gradient(90deg, rgb(4 13 36 / .8) 0, rgb(4 13 36 / .58) 30%, rgb(4 13 36 / .14) 54%, rgb(4 13 36 / 0) 66%),
    linear-gradient(0deg, rgb(4 13 36 / .66) 0, rgb(4 13 36 / 0) 26%);
}
main.l2-service .l2-hero--art .l2-sp2 { grid-template-columns: 1fr; }
main.l2-service .l2-hero--art .l2-hero__copy { width: min(580px, 46%); max-width: none; margin: 0 auto 0 0; }
main.l2-service .l2-hero--art .l2-crumbs,
main.l2-service .l2-hero--art .l2-crumbs a { color: rgb(255 255 255 / .7); }
main.l2-service .l2-hero--art .l2-crumbs a:hover { color: #fff; background: rgb(255 255 255 / .1); }
main.l2-service .l2-hero--art .l2-lede { color: rgb(255 255 255 / .84); text-shadow: 0 1px 18px rgb(4 13 36 / .35); }
main.l2-service .l2-hero--art .l2-h1 { text-shadow: 0 2px 28px rgb(4 13 36 / .3); }

/* wfh2: reference rail as a transparent marquee on the photograph (it no longer straddles the hero as a white card). */
main.l2-service section.l2-hero.l2-hero--art > .l2-rail-wrap { pointer-events: auto; border-top: 1px solid rgb(255 255 255 / .12); }
main.l2-service section.l2-hero.l2-hero--art > .l2-rail-wrap > .l2-wrap > .l2-rail,
main.l2-service .l2-hero--art .l2-rail {
  transform: none;
  margin: 0;
  padding: clamp(14px, 2.4vh, 24px) 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
main.l2-service .l2-hero--art .l2-rail > p { color: rgb(255 255 255 / .68); }
main.l2-service .l2-hero--art .l2-rail__view {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
main.l2-service .l2-hero--art .l2-rail__track { display: flex; width: max-content; animation: wfh-l2-rail 46s linear infinite; will-change: transform; }
main.l2-service .l2-hero--art .l2-rail:is(:hover, :focus-within) .l2-rail__track { animation-play-state: paused; }
main.l2-service .l2-hero--art .l2-rail ul,
main.l2-service .l2-hero--art .l2-rail ul.l2-rail__dup { display: flex; flex: none; align-items: center; justify-content: flex-start; gap: clamp(40px, 4.4vw, 72px); padding-inline: 0 clamp(40px, 4.4vw, 72px); }
main.l2-service .l2-hero--art .l2-rail li { flex: none; }
main.l2-service .l2-hero--art .l2-rail img { height: clamp(26px, 2.2vw, 34px); width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .74; }
main.l2-service section.l2-hero.l2-hero--art + .l2-sec { padding-top: clamp(64px, 7.5vw, 116px); }
@keyframes wfh-l2-rail { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  main.l2-service .l2-hero--art .l2-rail__track { animation: none; }
  main.l2-service .l2-hero--art .l2-rail__view { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  main.l2-service .l2-hero--art .l2-rail ul.l2-rail__dup { display: none; }
}

@media (max-width: 1099px) {
  main.l2-service .l2-hero--art .l2-hero__copy { width: min(640px, 82%); }
  main.l2-service .l2-hero--art .l2-hero__shade {
    background:
      linear-gradient(180deg, rgb(4 13 36 / .56) 0, rgb(4 13 36 / 0) calc(var(--home2-top-offset, 124px) + 90px)),
      linear-gradient(90deg, rgb(4 13 36 / .84) 0, rgb(4 13 36 / .62) 50%, rgb(4 13 36 / .22) 80%, rgb(4 13 36 / .12) 100%),
      linear-gradient(0deg, rgb(4 13 36 / .66) 0, rgb(4 13 36 / 0) 26%);
  }
}
main.l2-service .l2-hero__mart { display: none; }
/* Phones (wfh3): the same standard as the main service heroes (webioo-hero.css): one hero height from the width only, 1rem under the
   navbar, an 8vw title, the full lead at 15.5px, the two actions side by side and centred, then the photograph filling the rest (zoomed a
   little past its empty left wall) and the slim logo rail. No breadcrumb. */
@media (max-width: 767px) {
  body.home2-page.webioo-fullhero main#main-content > section.l2-hero.l2-hero--art:first-child,
  main.l2-service section.l2-hero.l2-hero--art {
    min-height: calc(var(--home2-top-offset, 118px) + 146vw);
    justify-content: flex-start;
    padding-top: calc(var(--home2-top-offset, 118px) + 22px);
    padding-bottom: 0;
  }
  main.l2-service .l2-hero--art .l2-hero__art,
  main.l2-service .l2-hero--art .l2-hero__shade,
  main.l2-service .l2-hero--art .l2-crumbs { display: none; }
  main.l2-service .l2-hero--art .l2-sp2 { display: flex; flex: 1 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding-block: 0; }
  main.l2-service .l2-hero--art .l2-hero__copy { width: 100%; gap: 10px; }
  main.l2-service section.l2-hero.l2-hero--art h1.l2-h1 { margin-bottom: 0; font-size: clamp(26px, 8vw, 36px) !important; line-height: 1.08 !important; }
  main.l2-service .l2-hero--art .l2-lede { display: block; overflow: visible; font-size: 15.5px; line-height: 1.5; -webkit-line-clamp: unset; }
  main.l2-service .l2-hero--art .l2-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
  main.l2-service .l2-hero--art .l2-cta .l2-btn { justify-content: center; width: 100%; min-width: 0; min-height: 46px; padding: 10px 8px; gap: 6px; font-size: 14.5px; line-height: 1.2; text-align: center; white-space: nowrap; }
  main.l2-service .l2-hero--art .l2-cta .l2-btn span { min-width: 0; white-space: nowrap; }
  main.l2-service .l2-hero--art .l2-cta .l2-btn svg,
  main.l2-service .l2-hero--art .l2-cta .l2-btn i { flex: none; }
  main.l2-service .l2-hero--art .l2-hero__mart {
    position: relative;
    display: block;
    flex: 1 0 auto;
    align-self: stretch;
    min-height: 48vw;
    margin: 14px -16px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 90%, rgb(0 0 0 / .35) 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 90%, rgb(0 0 0 / .35) 100%);
  }
  main.l2-service .l2-hero--art .l2-hero__mart-art { position: absolute; inset: 0; display: block; margin: 0; }
  /* The sub photographs keep their device in the right half, lower middle. The strip is taller than 16:9 here (no badge above), so cover
     already crops the sides: anchor it on the right so the device stays whole and the empty left wall is what goes. */
  main.l2-service .l2-hero--art .l2-hero__mart-art img { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 80% 62%; }
  main.l2-service section.l2-hero.l2-hero--art > .l2-rail-wrap > .l2-wrap > .l2-rail,
  main.l2-service .l2-hero--art .l2-rail { flex-direction: row; gap: 0; padding: 10px 0 12px; }
  main.l2-service .l2-hero--art .l2-rail > p { display: none; }
  main.l2-service .l2-hero--art .l2-rail img { height: 20px; }
  main.l2-service .l2-hero--art .l2-rail ul,
  main.l2-service .l2-hero--art .l2-rail ul.l2-rail__dup { gap: 28px; padding-inline-end: 28px; }
  main.l2-service section.l2-hero.l2-hero--art + .l2-sec { padding-top: clamp(48px, 12vw, 72px); }
}
@media (max-width: 379px) {
  main.l2-service .l2-hero--art .l2-cta .l2-btn { padding-inline: 6px; gap: 5px; font-size: 13.5px; }
}
