/* Shared editorial split hero.
   The original left artwork is intentionally untouched; a second, mirrored
   layer only continues it underneath the animated photo plane. */
:root {
  --unified-hero-ink: #0b2639;
  --unified-hero-body: #526d7c;
  --unified-hero-canvas: #eef4fa;
  --unified-hero-canvas-end: #eaf5fb;
  --unified-hero-blue: #0656B9;
  --unified-hero-cyan: #00BDDC;
  --unified-hero-ease: cubic-bezier(.16, 1, .3, 1);
}

body main:has(> .unified-split-hero) {
  padding-top: 0 !important;
}

body .unified-split-hero {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  min-height: min(760px, calc(100dvh - 24px)) !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, var(--unified-hero-canvas) 0%, var(--unified-hero-canvas) 72%, var(--unified-hero-canvas-end) 100%) !important;
  color: var(--unified-hero-ink) !important;
}

/* Exact approved left-side rendering. */
body .unified-split-hero::before {
  content: "" !important;
  position: absolute !important;
  z-index: -2 !important;
  inset: 0 auto 0 0 !important;
  display: block !important;
  width: 56% !important;
  height: auto !important;
  background: url("../assets/hero-bg.png") right center / cover no-repeat !important;
  opacity: .46 !important;
  transform: none !important;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .76) 68%, #000 100%) !important;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .76) 68%, #000 100%) !important;
}

/* Older partner/case/strategy templates defined their own ::before layers
   with stronger selectors. Reassert the same, unmodified left artwork. */
html body.page-partners.internal-light main > section.hero.hero-partners.unified-split-hero::before,
html body.page-cases.internal-light main > section.hero.hero-partners.unified-split-hero::before,
html body.page-pps.page-kb.page-injsafe.internal-light main > section.hero.hero-partners.is-hero-split.unified-split-hero::before {
  inset: 0 auto 0 0 !important;
  display: block !important;
  width: 56% !important;
  height: auto !important;
  background: url("../assets/hero-bg.png") right center / cover no-repeat !important;
  opacity: .46 !important;
  transform: none !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .76) 68%, #000 100%) !important;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .76) 68%, #000 100%) !important;
}

html body.page-partners.internal-light > section.hero.hero-partners.unified-split-hero::before {
  inset: 0 auto 0 0 !important;
  display: block !important;
  width: 56% !important;
  height: auto !important;
  background: url("../assets/hero-bg.png") right center / cover no-repeat !important;
  opacity: .46 !important;
  transform: none !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .76) 68%, #000 100%) !important;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .76) 68%, #000 100%) !important;
}

/* Continuation lives only behind the right photo, so the left never changes. */
body .unified-split-hero::after {
  content: "" !important;
  position: absolute !important;
  z-index: -2 !important;
  inset: 0 0 0 56% !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  background: url("../assets/hero-bg.png") right center / auto 100% no-repeat !important;
  opacity: .46 !important;
  transform: scaleX(-1) !important;
  pointer-events: none;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body .unified-split-hero__media {
  position: absolute !important;
  z-index: -1 !important;
  inset: 0 0 0 auto !important;
  display: block !important;
  width: 56% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%) !important;
  background-color: var(--unified-hero-canvas) !important;
  animation: unified-plane-reveal 980ms var(--unified-hero-ease) both !important;
}

body .unified-split-hero__media::after {
  display: none !important;
}

body .unified-split-hero__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  animation: unified-photo-settle 1400ms var(--unified-hero-ease) both !important;
}

body .unified-split-hero__wrap {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: min(1480px, calc(100% - 40px)) !important;
  max-width: none !important;
  min-height: min(760px, calc(100dvh - 24px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  clip-path: none !important;
}

body .unified-split-hero__copy {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 650px !important;
  max-width: none !important;
  margin: 0 0 0 clamp(48px, 6vw, 90px) !important;
  padding: 243px 0 0 !important;
  transform: none !important;
  text-align: left !important;
}

body .unified-split-hero__index {
  position: absolute !important;
  z-index: 1 !important;
  top: clamp(78px, 10vh, 100px) !important;
  left: clamp(8px, 2vw, 28px) !important;
  display: block !important;
  width: clamp(216px, 20.4vw, 306px) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  color: transparent !important;
  background: rgba(7, 93, 187, .075) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 1 !important;
  user-select: none;
  pointer-events: none;
  -webkit-mask: url("../assets/pattern-icons/flame.svg") center / contain no-repeat !important;
  mask: url("../assets/pattern-icons/flame.svg") center / contain no-repeat !important;
}

body .unified-split-hero__title {
  position: static !important;
  display: block !important;
  max-width: 600px !important;
  margin: 0 !important;
  color: var(--unified-hero-ink) !important;
  font-family: var(--site-heading-font-family, "Commissioner Local", "PT Root UI", Arial, sans-serif) !important;
  font-size: clamp(52px, 4.6vw, 66px) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: .98 !important;
  text-shadow: none !important;
  text-wrap: balance;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

body .unified-split-hero--long .unified-split-hero__title {
  max-width: 500px !important;
  font-size: clamp(46px, 3.75vw, 66px) !important;
}

html body.page-partners.internal-light
  .hero-partners.unified-split-hero--long .unified-split-hero__title {
  max-width: 500px !important;
  font-size: clamp(46px, 3.75vw, 66px) !important;
  line-height: .98 !important;
}

/* The strategy page used a more specific legacy 112px title rule. Keep it on
   the same approved scale as the other long split-hero headings. */
html body.page-pps.page-kb.page-injsafe.internal-light
  .is-hero-split.unified-split-hero--long .unified-split-hero__title {
  width: auto !important;
  max-width: 500px !important;
  font-size: clamp(46px, 3.75vw, 66px) !important;
  line-height: .98 !important;
}

html body.page-pps.page-kb.page-injsafe.internal-light
  .is-hero-split.unified-split-hero--long .unified-split-hero__lead {
  max-width: 500px !important;
}

html body.page-pps.page-kb.page-injsafe.internal-light
  main > .is-hero-split.unified-split-hero {
  min-height: min(760px, calc(100dvh - 24px)) !important;
}


body .unified-split-hero__title em,
body .unified-split-hero__title .hero-title-brand {
  display: block;
  color: var(--unified-hero-cyan) !important;
  font: inherit !important;
  font-style: normal !important;
  letter-spacing: inherit !important;
}

body .unified-split-hero__lead {
  display: block !important;
  max-width: 560px !important;
  margin: 28px 0 0 !important;
  color: var(--unified-hero-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
  text-wrap: pretty;
}

body .unified-split-hero__actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px 18px !important;
  margin: 28px 0 0 !important;
}

body .unified-split-hero__primary {
  box-sizing: border-box !important;
  min-width: 274px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 0 21px !important;
  border: 1px solid var(--unified-hero-blue) !important;
  border-radius: 3px !important;
  background: var(--unified-hero-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: var(--site-control-font-family, "PT Root UI", Arial, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease !important;
}

body .unified-split-hero__primary:hover {
  background: #05396d !important;
  transform: translateY(-2px) !important;
}

body .unified-split-hero__primary svg {
  transition: transform 180ms ease;
}

body .unified-split-hero__primary:hover svg {
  transform: translateX(4px);
}

body .unified-split-hero__secondary {
  padding: 12px 2px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--unified-hero-blue) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body .unified-split-hero :focus-visible {
  outline: 3px solid #00BDDC !important;
  outline-offset: 3px !important;
}

/* Legacy pages whose copy is a direct child of the shared wrapper. */
body .unified-split-hero__wrap > .unified-split-hero__title,
body .unified-split-hero__wrap > .unified-split-hero__lead,
body .unified-split-hero__wrap > .unified-split-hero__actions {
  margin-left: clamp(48px, 6vw, 90px) !important;
}

body .unified-split-hero__wrap > .unified-split-hero__title {
  padding-top: 243px !important;
}

/* Preserve page-specific statistics while aligning them with the shared rhythm. */
body .unified-split-hero .vw-hero-stats {
  margin-top: 26px !important;
}

body .unified-split-hero .page-bc {
  z-index: 4 !important;
}

/* injsafe has an extra legacy grid layer; neutralize only its hero layout. */
body.page-injsafe .unified-split-hero > .unified-split-hero__index {
  z-index: 1 !important;
}

body.page-injsafe .unified-split-hero .is-hero-split__content {
  display: block !important;
  width: 100% !important;
  min-height: inherit !important;
  padding: 0 !important;
}

body.page-injsafe .unified-split-hero .is-hero-split__frame,
body.page-injsafe .unified-split-hero .is-hero-split__axis {
  display: none !important;
}

html body.page-pps.page-kb.page-injsafe.internal-light main > section.hero.hero-partners.is-hero-split.unified-split-hero {
  display: block !important;
}

html body.page-pps.page-kb.page-injsafe.internal-light section.unified-split-hero > .unified-split-hero__wrap {
  width: min(1480px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
}

@keyframes unified-plane-reveal {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 86% 100%); opacity: .72; }
  to { clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
}

@keyframes unified-plane-reveal-mobile {
  from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); opacity: .72; }
  to { clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%); opacity: 1; }
}

@keyframes unified-photo-settle {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}

@media (max-width: 1180px) {
  body .unified-split-hero {
    min-height: 0 !important;
    padding-top: calc(60px + clamp(290px, 50vw, 410px)) !important;
  }

  body .unified-split-hero::before {
    inset: calc(60px + clamp(290px, 50vw, 410px)) 0 0 !important;
    width: 100% !important;
    background-position: right center !important;
    background-size: auto 100% !important;
    opacity: .38 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .7) 74%, #000 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .7) 74%, #000 100%) !important;
  }

  html body.page-partners.internal-light main > section.hero.hero-partners.unified-split-hero::before,
  html body.page-cases.internal-light main > section.hero.hero-partners.unified-split-hero::before,
  html body.page-pps.page-kb.page-injsafe.internal-light main > section.hero.hero-partners.is-hero-split.unified-split-hero::before {
    inset: calc(60px + clamp(290px, 50vw, 410px)) 0 0 !important;
    width: 100% !important;
    height: auto !important;
    background: url("../assets/hero-bg.png") right center / auto 100% no-repeat !important;
    opacity: .38 !important;
    transform: none !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .7) 74%, #000 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .7) 74%, #000 100%) !important;
  }

  html body.page-partners.internal-light > section.hero.hero-partners.unified-split-hero::before {
    inset: calc(60px + clamp(290px, 50vw, 410px)) 0 0 !important;
    width: 100% !important;
    height: auto !important;
    background: url("../assets/hero-bg.png") right center / auto 100% no-repeat !important;
    opacity: .38 !important;
    transform: none !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .7) 74%, #000 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .7) 74%, #000 100%) !important;
  }

  body .unified-split-hero::after {
    inset: 60px 0 auto !important;
    width: 100% !important;
    height: clamp(290px, 50vw, 410px) !important;
    background-position: right center !important;
    background-size: auto 100% !important;
    opacity: .38 !important;
  }

  body .unified-split-hero__media {
    inset: 60px 0 auto !important;
    width: 100% !important;
    height: clamp(290px, 50vw, 410px) !important;
    min-height: 0 !important;
    clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%) !important;
    animation-name: unified-plane-reveal-mobile !important;
  }

  body .unified-split-hero__wrap {
    width: min(calc(100% - 48px), 720px) !important;
    min-height: 0 !important;
    padding: 38px 0 50px !important;
  }

  body .unified-split-hero__copy {
    width: 100% !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
  }

  body .unified-split-hero__index {
    top: 0 !important;
    left: -8px !important;
    width: min(34.8vw, 234px) !important;
  }

  body .unified-split-hero__title,
  body .unified-split-hero--long .unified-split-hero__title {
    max-width: 670px !important;
    font-size: clamp(48px, 8vw, 64px) !important;
  }

  body .unified-split-hero__lead {
    max-width: 620px !important;
  }

  body .unified-split-hero__wrap > .unified-split-hero__title,
  body .unified-split-hero__wrap > .unified-split-hero__lead,
  body .unified-split-hero__wrap > .unified-split-hero__actions {
    margin-left: 0 !important;
  }

  body .unified-split-hero__wrap > .unified-split-hero__title {
    padding-top: 0 !important;
  }

  body.page-injsafe .unified-split-hero .is-hero-split__content {
    min-height: 0 !important;
  }

  /* These three legacy templates carried stronger tablet declarations. */
  body.page-partners section.unified-split-hero,
  body.page-cases section.unified-split-hero,
  body.page-injsafe section.unified-split-hero {
    display: block !important;
    min-height: 0 !important;
    padding: calc(60px + clamp(290px, 50vw, 410px)) 0 0 !important;
  }

  html body.page-cases.internal-light main > section.hero.hero-partners.unified-split-hero,
  html body.page-pps.page-kb.page-injsafe.internal-light main > section.hero.hero-partners.is-hero-split.unified-split-hero {
    display: block !important;
    min-height: 0 !important;
    padding: calc(60px + clamp(290px, 50vw, 410px)) 0 0 !important;
  }

  body.page-partners section.unified-split-hero > .unified-split-hero__wrap,
  body.page-cases section.unified-split-hero > .unified-split-hero__wrap,
  body.page-injsafe section.unified-split-hero > .unified-split-hero__wrap {
    display: block !important;
    width: min(calc(100% - 48px), 720px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 38px 0 50px !important;
  }

  html body.page-cases.internal-light section.unified-split-hero > .unified-split-hero__wrap,
  html body.page-pps.page-kb.page-injsafe.internal-light section.unified-split-hero > .unified-split-hero__wrap {
    display: block !important;
    width: min(calc(100% - 48px), 720px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 38px 0 50px !important;
  }

  body.page-partners section.unified-split-hero .unified-split-hero__title,
  body.page-cases section.unified-split-hero .unified-split-hero__title,
  body.page-injsafe section.unified-split-hero .unified-split-hero__title {
    position: static !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
  }

  body.page-cases section.unified-split-hero .unified-split-hero__copy,
  body.page-injsafe section.unified-split-hero .unified-split-hero__copy {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.page-cases.internal-light section.unified-split-hero .unified-split-hero__copy,
  html body.page-pps.page-kb.page-injsafe.internal-light section.unified-split-hero .unified-split-hero__copy {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 560px) {
  body .unified-split-hero {
    padding-top: 235px !important;
  }

  body .unified-split-hero::before {
    top: 235px !important;
    opacity: .32 !important;
  }

  html body.page-partners.internal-light main > section.hero.hero-partners.unified-split-hero::before,
  html body.page-cases.internal-light main > section.hero.hero-partners.unified-split-hero::before,
  html body.page-pps.page-kb.page-injsafe.internal-light main > section.hero.hero-partners.is-hero-split.unified-split-hero::before {
    top: 235px !important;
    opacity: .32 !important;
  }

  html body.page-partners.internal-light > section.hero.hero-partners.unified-split-hero::before {
    top: 235px !important;
    opacity: .32 !important;
  }

  body .unified-split-hero::after {
    top: 0 !important;
    height: 235px !important;
    opacity: .32 !important;
  }

  body .unified-split-hero__media {
    top: 0 !important;
    height: 235px !important;
  }

  body .unified-split-hero__wrap {
    width: calc(100% - 32px) !important;
    padding: 32px 0 38px !important;
  }

  body .unified-split-hero__index {
    top: 0 !important;
    left: 0 !important;
    width: min(46.8vw, 186px) !important;
  }

  body .unified-split-hero__title {
    font-size: clamp(35px, 9.8vw, 44px) !important;
    line-height: 1 !important;
  }

  body .unified-split-hero--long .unified-split-hero__title {
    font-size: clamp(25px, 8vw, 34px) !important;
  }

  /* Page-level legacy selectors must not reintroduce desktop title sizes on
     phones. All editorial split heroes use one mobile type scale. */
  html body.page-partners.internal-light .unified-split-hero .unified-split-hero__title,
  html body.page-cases.internal-light .unified-split-hero .unified-split-hero__title,
  html body.page-events.internal-light .unified-split-hero .unified-split-hero__title,
  html body.page-pps.page-kb.page-injsafe.internal-light .unified-split-hero .unified-split-hero__title,
  html body.page-pps.page-kb.internal-light .unified-split-hero .unified-split-hero__title,
  html body.page-media.internal-light .unified-split-hero .unified-split-hero__title {
    width: auto !important;
    max-width: 100% !important;
    font-size: clamp(35px, 10vw, 39px) !important;
    line-height: 1 !important;
  }

  body .unified-split-hero__lead {
    margin-top: 24px !important;
    font-size: 16px !important;
  }

  body .unified-split-hero__actions {
    align-items: stretch !important;
    flex-direction: column !important;
    margin-top: 24px !important;
  }

  body .unified-split-hero__primary {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.page-partners section.unified-split-hero,
  body.page-cases section.unified-split-hero,
  body.page-injsafe section.unified-split-hero {
    padding-top: 235px !important;
  }

  html body.page-cases.internal-light main > section.hero.hero-partners.unified-split-hero,
  html body.page-pps.page-kb.page-injsafe.internal-light main > section.hero.hero-partners.is-hero-split.unified-split-hero {
    padding-top: 235px !important;
  }

  body.page-partners section.unified-split-hero > .unified-split-hero__wrap,
  body.page-cases section.unified-split-hero > .unified-split-hero__wrap,
  body.page-injsafe section.unified-split-hero > .unified-split-hero__wrap {
    width: calc(100% - 32px) !important;
    padding: 32px 0 38px !important;
  }

  html body.page-cases.internal-light section.unified-split-hero > .unified-split-hero__wrap,
  html body.page-pps.page-kb.page-injsafe.internal-light section.unified-split-hero > .unified-split-hero__wrap {
    width: calc(100% - 32px) !important;
    padding: 32px 0 38px !important;
  }
}

@media (max-width: 340px) {
  body .unified-split-hero__title {
    font-size: 30px !important;
  }

  body .unified-split-hero--long .unified-split-hero__title {
    font-size: 25px !important;
  }

  body .unified-split-hero__lead {
    font-size: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .unified-split-hero__media,
  body .unified-split-hero__media img {
    animation-duration: 120ms !important;
    animation-delay: 0ms !important;
    transform: none !important;
  }

  body .unified-split-hero__primary,
  body .unified-split-hero__primary svg {
    transition-duration: 0ms !important;
  }
}
