.site-header .brand-contour-highlight {
  stroke: #b47a2b;
  stroke-width: 3;
  stroke-dasharray: 25 100;
  stroke-dashoffset: 25;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header .brand-contour-highlight {
    --logo-contour-intro: profi-logo-contour-intro 1100ms linear 650ms;
    animation: var(--logo-contour-intro);
  }

  .site-header .brand:focus-visible .brand-contour-highlight {
    animation: var(--logo-contour-intro), profi-logo-contour-replay 1100ms linear;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-header .brand:hover .brand-contour-highlight {
    animation: var(--logo-contour-intro), profi-logo-contour-replay 1100ms linear;
  }
}

@keyframes profi-logo-contour-intro {
  0% { stroke-dashoffset: 25; opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* A different name restarts the sweep when the visitor interacts with the logo. */
@keyframes profi-logo-contour-replay {
  0% { stroke-dashoffset: 25; opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
