/*
 * Stable heading paint
 *
 * Headings used to clip their entire block to an animated background. That
 * made plain text transparent whenever only an inner gradient word had its
 * own paint layer, so the first line of many headings disappeared. Keep the
 * display font and the existing animated gradient on highlighted words, but
 * make the rest of every heading a normal, reliable text paint.
 */
h1:not(.hero-heading),
h2 {
  color: var(--navy) !important;
  background-image: none !important;
  background-color: transparent !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: var(--navy) !important;
  animation: none !important;
  line-height: 1.15;
  padding-block: 0;
  overflow: visible;
  isolation: auto;
}

/* Inner-page and detail-page hero titles use the same display face as the
   homepage hero, with a readable navy fallback instead of clipped paint. */
.page-hero h1,
.detail-hero h1 {
  color: var(--navy) !important;
  -webkit-text-fill-color: var(--navy) !important;
}

/*
 * Flowing heading surface
 *
 * This is the same continuous gradient used by the Leadership hero. Unlike
 * the old mixed setup, the parent heading owns the animation and its
 * highlighted child inherits that surface, so both lines stay visible.
 */
.page-hero h1,
.detail-hero h1,
.section-head h2,
.cta-section h2,
.cta-left h2,
.cta-m-left h2,
.partners-head h2,
.about-immersive h2,
.about-imm-content h2,
.contact-info-block h2,
.cmd-message-col h2,
.sidebar-head h2,
.timeline-sticky h2,
.team-cta-left h2,
.chair-content h2,
.ind-section h2,
.ind-header h2,
.dashboard-section h2,
.pipeline-premium h2 {
  background-image: var(--sh-gradient-light) !important;
  background-color: transparent !important;
  background-size: 300% 300% !important;
  background-position: 0% 0%;
  color: #0c2660 !important;
  -webkit-text-fill-color: #0c2660 !important;
  line-height: 1.2;
  padding-block: 0.08em;
  animation: sh-flow 7s ease-in-out infinite !important;
  will-change: background-position;
}

/* The services advantage title uses the same flowing gradient as the other
   section headings. Keep its explicit line boxes below so the final glyph
   remains visible at desktop widths. */
.advantage-section-title {
  background-image: var(--sh-gradient-light) !important;
  background-color: transparent !important;
  background-size: 300% 300% !important;
  background-position: 0% 0%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0c2660 !important;
  animation: sh-flow 7s ease-in-out infinite !important;
  will-change: background-position;
  overflow: visible !important;
  clip-path: none !important;
  isolation: auto !important;
}

/*
 * Keep each deliberate line in its own paint box. The original heading was
 * laid out as one constrained inline flow; at desktop widths the last glyph
 * could land on the edge of the grid item's compositor surface. These spans
 * preserve the intended breaks and give the title a small, safe paint gutter.
 */
.sidebar-head .advantage-section-title {
  display: block;
  width: max-content;
  max-width: none;
  padding-right: 0.45em !important;
  margin-right: -0.45em;
  white-space: nowrap;
}

.sidebar-head .advantage-section-title > span {
  display: block;
  width: max-content;
  max-width: none;
  overflow: visible;
}

@media (max-width: 900px) {
  .sidebar-head .advantage-section-title {
    width: auto;
    max-width: 100%;
    margin-right: 0;
    white-space: normal;
  }

  .sidebar-head .advantage-section-title > span {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
}

/*
 * This selector deliberately comes after the generic sidebar heading rules
 * and is more specific than their @supports paint rule. The Services title is
 * plain text, not a clipped gradient surface; keeping its own line box also
 * preserves the descender of the final "y" at desktop widths.
 */
.sidebar-head h2.advantage-section-title {
  display: block;
  width: fit-content;
  max-width: none;
  padding-right: 0.12em !important;
  padding-block: 0.08em !important;
  margin-right: 0;
  overflow: visible !important;
  clip-path: none !important;
  background-color: transparent !important;
  background-image: var(--sh-gradient-light) !important;
  background-size: 300% 300% !important;
  background-position: 0% 0%;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0c2660 !important;
  line-height: 1.2 !important;
  animation: sh-flow 7s ease-in-out infinite !important;
  will-change: background-position;
  isolation: auto !important;
}

.sidebar-head h2.advantage-section-title > span {
  display: block;
  width: fit-content;
  max-width: none;
  padding-right: 0.14em;
  overflow: visible;
  color: #0c2660 !important;
}

@media (max-width: 900px) {
  .sidebar-head h2.advantage-section-title {
    width: auto;
    max-width: 100%;
    margin-right: 0;
    white-space: normal;
  }

  .sidebar-head h2.advantage-section-title > span {
    width: auto;
    max-width: 100%;
    padding-right: 0;
    white-space: normal;
  }
}

/* Navy section headings use the light-on-dark version of the same effect. */
.section-dark h1:not(.hero-heading),
.section-dark h2,
.section-dark2 h1:not(.hero-heading),
.section-dark2 h2,
.wwb-section h2,
.cmd-section h2,
.dna-section h2,
.testimonials-premium h2,
.orbital-section h2,
.achievement-wall h2,
.sticky-stack-intro h2 {
  background-image: var(--sh-gradient-dark) !important;
  background-color: transparent !important;
  background-size: 300% 300% !important;
  background-position: 0% 0%;
  color: #7ab8fa !important;
  -webkit-text-fill-color: #7ab8fa !important;
  animation: sh-flow 7s ease-in-out infinite !important;
  will-change: background-position;
}

@supports (-webkit-background-clip: text) {
  .page-hero h1,
  .detail-hero h1,
  .section-head h2,
  .cta-section h2,
  .cta-left h2,
  .cta-m-left h2,
  .partners-head h2,
  .about-immersive h2,
  .about-imm-content h2,
  .contact-info-block h2,
  .cmd-message-col h2,
  .sidebar-head h2,
  .timeline-sticky h2,
  .team-cta-left h2,
  .chair-content h2,
  .ind-section h2,
  .ind-header h2,
  .dashboard-section h2,
  .pipeline-premium h2,
  .section-dark h1:not(.hero-heading),
  .section-dark h2,
  .section-dark2 h1:not(.hero-heading),
  .section-dark2 h2,
  .wwb-section h2,
  .cmd-section h2,
  .dna-section h2,
  .testimonials-premium h2,
  .orbital-section h2,
  .achievement-wall h2,
  .sticky-stack-intro h2 {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
}

/* A heading owns one animated gradient; child emphasis inherits it instead
   of starting a second paint layer with a separate animation. */
.page-hero h1 em.text-gradient,
.page-hero h1 em.text-gradient-light,
.detail-hero h1 em.text-gradient,
.detail-hero h1 em.text-gradient-light,
.section-head h2 em.text-gradient,
.section-head h2 em.text-gradient-light,
.cta-section h2 em.text-gradient,
.cta-section h2 em.text-gradient-light,
.cta-left h2 em.text-gradient,
.cta-left h2 em.text-gradient-light,
.cta-m-left h2 em.text-gradient,
.cta-m-left h2 em.text-gradient-light,
.partners-head h2 em.text-gradient,
.partners-head h2 em.text-gradient-light,
.about-immersive h2 em.text-gradient,
.about-immersive h2 em.text-gradient-light,
.about-imm-content h2 em.text-gradient,
.about-imm-content h2 em.text-gradient-light,
.contact-info-block h2 em.text-gradient,
.contact-info-block h2 em.text-gradient-light,
.cmd-message-col h2 em.text-gradient,
.cmd-message-col h2 em.text-gradient-light,
.sidebar-head h2 em.text-gradient,
.sidebar-head h2 em.text-gradient-light,
.timeline-sticky h2 em.text-gradient,
.timeline-sticky h2 em.text-gradient-light,
.team-cta-left h2 em.text-gradient,
.team-cta-left h2 em.text-gradient-light,
.chair-content h2 em.text-gradient,
.chair-content h2 em.text-gradient-light,
.ind-section h2 em.text-gradient,
.ind-section h2 em.text-gradient-light,
.ind-header h2 em.text-gradient,
.ind-header h2 em.text-gradient-light,
.dashboard-section h2 em.text-gradient,
.dashboard-section h2 em.text-gradient-light,
.pipeline-premium h2 em.text-gradient,
.pipeline-premium h2 em.text-gradient-light,
.section-dark h1 em.text-gradient,
.section-dark h1 em.text-gradient-light,
.section-dark h2 em.text-gradient,
.section-dark h2 em.text-gradient-light,
.section-dark2 h1 em.text-gradient,
.section-dark2 h1 em.text-gradient-light,
.section-dark2 h2 em.text-gradient,
.section-dark2 h2 em.text-gradient-light,
.wwb-section h2 em.text-gradient,
.wwb-section h2 em.text-gradient-light,
.cmd-section h2 em.text-gradient,
.cmd-section h2 em.text-gradient-light,
.dna-section h2 em.text-gradient,
.dna-section h2 em.text-gradient-light,
.testimonials-premium h2 em.text-gradient,
.testimonials-premium h2 em.text-gradient-light,
.orbital-section h2 em.text-gradient,
.orbital-section h2 em.text-gradient-light,
.achievement-wall h2 em.text-gradient,
.achievement-wall h2 em.text-gradient-light,
.sticky-stack-intro h2 em.text-gradient,
.sticky-stack-intro h2 em.text-gradient-light {
  display: inline !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: inherit !important;
  color: inherit !important;
  animation: none !important;
  transform: none !important;
}

.about-imm-visual > img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: min(560px, 70vh);
  object-fit: contain;
  object-position: center;
}

.page-hero-custom-bg {
  background-repeat: no-repeat;
}

/*
 * Industries approach heading
 *
 * The original inline grid reserved only 280px for this heading. At common
 * desktop/tablet widths that is narrower than the display face, so the title
 * could be clipped at the edge of its paint layer. Give the title a
 * self-sizing box, a solid fallback paint, and enough column room while
 * allowing the detail column to shrink.
 */
.industries-approach-layout {
  grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.8fr) !important;
}

.industries-approach-layout > .reveal-left,
.industries-approach-layout > div {
  min-width: 0;
}

.industries-approach-title {
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2.2rem, 3.8vw, 3.9rem) !important;
  line-height: 1.08 !important;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  background-image: var(--sh-gradient-light) !important;
  background-color: transparent !important;
  background-size: 300% 300% !important;
  background-position: 0% 0%;
  color: #0c2660 !important;
  -webkit-text-fill-color: #0c2660 !important;
  animation: sh-flow 7s ease-in-out infinite !important;
  padding-inline: 0.02em;
  padding-bottom: 0.14em;
}

.industries-approach-engineering {
  display: inline-block;
  white-space: nowrap;
  color: var(--blue-mid) !important;
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 50%, var(--cyan) 100%) !important;
  background-size: 220% 220% !important;
  background-position: 0% 0%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sh-flow 7s ease-in-out infinite !important;
  will-change: background-position;
}

/*
 * Long headings must be allowed to paint beyond an individual grid item's
 * intrinsic width.  Some of the site's animated/reveal combinations create a
 * compositor surface that otherwise clips the final glyph on desktop.
 * Keep normal wrapping for the heading itself; only the explicitly protected
 * Industries word stays intact.
 */
h1:not(.hero-heading),
h2 {
  max-width: 100%;
  overflow: visible !important;
  text-overflow: clip;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
}

h1:not(.hero-heading) em.text-gradient,
h1:not(.hero-heading) em.text-gradient-light,
h2 em.text-gradient,
h2 em.text-gradient-light {
  display: inline !important;
}

@supports (-webkit-background-clip: text) {
  .industries-approach-title,
  .industries-approach-engineering {
    background-clip: text !important;
    -webkit-background-clip: text !important;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .industries-approach-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.5fr) !important;
    gap: 40px !important;
  }
}

@media (max-width: 767px) {
  h1:not(.hero-heading),
  h2 {
    line-height: 1.12;
  }

  .industries-approach-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }

  .industries-approach-title {
    font-size: clamp(1.85rem, 9.5vw, 3.6rem) !important;
    line-height: 1.1 !important;
    max-width: 100%;
    padding-bottom: 0.12em;
  }

  .about-imm-visual > img {
    max-height: none;
  }
}

/* Services uses the native pointer; other pages keep the custom cursor. */
body.services-page {
  cursor: auto;
}

body.services-page a,
body.services-page button,
body.services-page [role="button"] {
  cursor: pointer;
}

body.services-page #cursor-ring,
body.services-page #cursor-core {
  display: none !important;
}

/* Remove the decorative vertical scroll rail beside the hero statistics. */
.hero-scroll-cue {
  display: none !important;
}