/* Reference title sweep: the blue layer moves right, exposing the base on the left. */
:is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading {
  --pd-title-start: #102c43;
  --pd-title-sweep-end: -29%;
  letter-spacing: 0;
}
:is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading.pd-gradient-on-dark {
  --pd-title-start: #eef5ff;
}
:is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .v2-product-stage .pd-gradient-heading {
  --pd-title-start: #bdcddd;
}
:is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading .pd-title-text {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  color: var(--pd-title-start);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  :is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading .pd-title-text {
    background-color: var(--pd-title-start);
    background-image: url('../assets/effects/title-color-sweep-cobalt-accent.svg');
    background-repeat: no-repeat;
    background-size: 200% auto;
    background-position: var(--pd-title-sweep-end) 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  :is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading[data-pd-gradient="pending"] .pd-title-text {
    background-position: 100% 50%;
  }
  :is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading[data-pd-gradient="visible"] .pd-title-text {
    background-position: var(--pd-title-sweep-end) 50%;
    transition: background-position 2.2s cubic-bezier(.55,0,.15,1);
  }
}
/* Keep the existing reveal carriers, with the reference title's fade/up timing. */
html.pd-content-motion .pd-editorial :is([data-pd-reveal].pd-gradient-heading,[data-pd-reveal]:has(> .pd-gradient-heading)),
.v2-motion .pd-aupo-v2 .v2-reveal:has(> .pd-gradient-heading),
:is(.site-about,.site-service).company-motion main [data-company-reveal]:is(.pd-gradient-heading,:has(.pd-gradient-heading)) {
  transition: opacity 1s cubic-bezier(.76,0,.24,1) .1s, transform 1.2s cubic-bezier(.76,0,.24,1) .1s;
}
@media (prefers-reduced-motion: reduce) {
  :is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading[data-pd-gradient] .pd-title-text {
    background-position: var(--pd-title-sweep-end) 50%;
    transition: none;
  }
  html.pd-content-motion .pd-editorial :is([data-pd-reveal].pd-gradient-heading,[data-pd-reveal]:has(> .pd-gradient-heading)),
  .v2-motion .pd-aupo-v2 .v2-reveal:has(> .pd-gradient-heading),
  :is(.site-about,.site-service).company-motion main [data-company-reveal]:is(.pd-gradient-heading,:has(.pd-gradient-heading)) {
    transition: none;
  }
}
@media (forced-colors: active) {
  :is(.site-product.pd-editorial,.site-home:not(.site-contact),.site-about,.site-service,.site-applications) .pd-gradient-heading .pd-title-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
    transition: none;
  }
}

/* Inline text preserves homepage line breaks and the existing nested heading spans. */
.site-home:not(.site-contact) .pd-gradient-heading .pd-title-text {
  display: inline;
  vertical-align: baseline;
}
