/* Silver reflections stay within secondary headline letterforms.
   currentColor retains each section's existing grey, including its static fallback. */
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  body.as-clean main:is(.nx-home,.oc-career) :is(h1,h2)>:is(span,em):not(.as-brand-word),
  body.as-clean main.nx-home :is(.ax-card,.as-scenarios-heading) h3>span:not(.as-brand-word) {
    background-image:linear-gradient(108deg,currentColor 0%,currentColor 39%,#c7c7c7 46%,#f6f6f6 49%,#bcbcbc 52%,currentColor 60%,currentColor 100%)!important;
    background-size:250% 100%!important;
    background-repeat:no-repeat!important;
    background-position:100% 50%;
    background-clip:text!important;
    -webkit-background-clip:text!important;
    -webkit-text-fill-color:transparent!important;
    animation:as-silver-heading-pass 9.2s cubic-bezier(.3,0,.25,1) infinite!important;
  }
  body.as-clean main.nx-home h2>:is(span,em):not(.as-brand-word) { animation-delay:-2.1s!important; }
  body.as-clean main.nx-home :is(.ax-card,.as-scenarios-heading) h3>span:not(.as-brand-word) { animation-delay:-4.4s!important; }
  body.as-clean main.oc-career h2>:is(span,em):not(.as-brand-word) { animation-delay:-3.3s!important; }
}
@keyframes as-silver-heading-pass {
  0%,60% { background-position:100% 50%; }
  90%,100% { background-position:0% 50%; }
}

/* clarity.css deliberately resets all logo backgrounds with !important.
   Typed positions reproduce the existing brand-motion reflection while allowing
   its background-position reset to remain overridden throughout the animation. */
@property --as-logo-x1 { syntax:"<percentage>"; inherits:false; initial-value:0%; }
@property --as-logo-y1 { syntax:"<percentage>"; inherits:false; initial-value:15%; }
@property --as-logo-x2 { syntax:"<percentage>"; inherits:false; initial-value:0%; }
@property --as-logo-y2 { syntax:"<percentage>"; inherits:false; initial-value:40%; }
body.as-clean header.as-header a.as-logo.as-brand-word {
  --brand-ink:#1b3124;
  --brand-mid:#538b55;
  --brand-glint:#d5d5d5;
  --brand-edge:#2e5338;
}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  body.as-clean header.as-header a.as-logo.as-brand-word>:is(.as-brand-stem,.as-brand-accent) {
    --metal-dark:var(--brand-ink);
    --metal-mid:var(--brand-mid);
    --metal-light:var(--brand-glint);
    --metal-edge:var(--brand-edge);
    background-image:radial-gradient(ellipse at 35% 0%,transparent 34%,var(--metal-light) 40%,var(--metal-edge) 45%,transparent 53%),linear-gradient(118deg,var(--metal-dark) 7%,var(--metal-mid) 21%,var(--metal-dark) 30%,var(--metal-mid) 40%,var(--metal-light) 45%,var(--metal-edge) 48%,var(--metal-dark) 57%,var(--metal-mid) 70%,var(--metal-light) 75%,var(--metal-dark) 85%)!important;
    background-size:230% 240%,260% 180%!important;
    background-position:var(--as-logo-x1) var(--as-logo-y1),var(--as-logo-x2) var(--as-logo-y2)!important;
    background-repeat:no-repeat!important;
    background-clip:text!important;
    -webkit-background-clip:text!important;
    -webkit-text-fill-color:transparent!important;
    animation:as-header-brand-reflection 24s ease-in-out infinite alternate!important;
    animation-play-state:paused!important;
  }
  body.as-clean header.as-header a.as-logo.as-brand-word>.as-brand-accent {
    --metal-dark:#193123;
    --metal-mid:#a8a8a8;
    --metal-light:#f6f6f6;
    --metal-edge:#437952;
  }
  body.as-clean header.as-header a.as-logo.as-brand-word[data-brand-visible=true]>:is(.as-brand-stem,.as-brand-accent) { animation-play-state:running!important; }
}
@keyframes as-header-brand-reflection {
  0% { --as-logo-x1:0%; --as-logo-y1:15%; --as-logo-x2:0%; --as-logo-y2:40%; }
  50% { --as-logo-x1:65%; --as-logo-y1:85%; --as-logo-x2:55%; --as-logo-y2:60%; }
  100% { --as-logo-x1:100%; --as-logo-y1:25%; --as-logo-x2:100%; --as-logo-y2:45%; }
}

/* The local motion control includes headline reflections in this section. */
body.as-clean main.nx-home #einblicke[data-motion=paused] :is(h2,h3)>:is(span,em):not(.as-brand-word) { animation-play-state:paused!important; }

/* Also pause the new headline treatment when the page is hidden. */
.as-brand-paused body.as-clean main:is(.nx-home,.oc-career) :is(h1,h2)>:is(span,em):not(.as-brand-word),
.as-brand-paused body.as-clean main.nx-home :is(.ax-card,.as-scenarios-heading) h3>span:not(.as-brand-word),
.as-brand-paused body.as-clean header.as-header a.as-logo.as-brand-word>:is(.as-brand-stem,.as-brand-accent) { animation-play-state:paused!important; }

@media (prefers-reduced-motion:reduce) {
  body.as-clean main:is(.nx-home,.oc-career) :is(h1,h2)>:is(span,em):not(.as-brand-word),
  body.as-clean main.nx-home :is(.ax-card,.as-scenarios-heading) h3>span:not(.as-brand-word),
  body.as-clean header.as-header a.as-logo.as-brand-word>:is(.as-brand-stem,.as-brand-accent) {
    animation:none!important;
    background-image:none!important;
    -webkit-text-fill-color:currentColor!important;
  }
}
@media (forced-colors:active) {
  body.as-clean main:is(.nx-home,.oc-career) :is(h1,h2)>:is(span,em):not(.as-brand-word),
  body.as-clean main.nx-home :is(.ax-card,.as-scenarios-heading) h3>span:not(.as-brand-word),
  body.as-clean header.as-header a.as-logo.as-brand-word>:is(.as-brand-stem,.as-brand-accent) {
    animation:none!important;
    background-image:none!important;
    color:CanvasText!important;
    -webkit-text-fill-color:CanvasText!important;
  }
}
