/* Header call to action hover: navy ink sweeps through the button from the left and the label
   turns yellow. On leave the ink retracts to the right. Keyboard focus shows the same. */
.bar__cta { position: relative; isolation: isolate; transition: color 200ms var(--ease-out), background-color var(--dur-short) var(--ease-out); }

/* Ink sweep: under the label, above the yellow fill. */
.bar__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms var(--ease-in-out);
}

.bar__cta:focus-visible { color: var(--color-sun); }
.bar__cta:focus-visible::before { transform: scaleX(1); transform-origin: left center; transition: transform 420ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .bar__cta:hover { color: var(--color-sun); transition: color 200ms var(--ease-out) 100ms, background-color var(--dur-short) var(--ease-out); }
  .bar__cta:hover::before { transform: scaleX(1); transform-origin: left center; transition: transform 420ms var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  .bar__cta, .bar__cta:hover, .bar__cta::before, .bar__cta:hover::before, .bar__cta:focus-visible::before { transition: none; }
}
