.workshop-brush-heading {
  position: relative;
  font-family: inherit;
  line-height: 1.4;
}

.homepage-section-title .workshop-brush-title {
  position: relative;
  isolation: isolate;
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0.12em 0.14em;
  color: #211e19;
  background: none;
}

.workshop-brush-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.65em -0.8em;
  background: url("assets/images/workshop-brush-ochre-v1.webp") center / 100% 100% no-repeat;
  transform: rotate(-1deg);
  pointer-events: none;
}

.workshop-brush-heading.brush-waiting .workshop-brush-title::before {
  clip-path: polygon(0 0, -12% 0, -8% 18%, 0 42%, -7% 58%, -3% 82%, -12% 100%, 0 100%);
}

.workshop-brush-heading.brush-painted .workshop-brush-title::before {
  animation: workshop-paint 1.9s cubic-bezier(.32, .05, .3, 1) 350ms both;
}

@keyframes workshop-paint {
  from { clip-path: polygon(0 0, -12% 0, -8% 18%, 0 42%, -7% 58%, -3% 82%, -12% 100%, 0 100%); }
  to { clip-path: polygon(0 0, 108% 0, 112% 18%, 120% 42%, 113% 58%, 117% 82%, 108% 100%, 0 100%); }
}

@media (max-width: 600px) {
  .workshop-brush-heading { gap: 14px; font-size: clamp(1.15rem, 5.1vw, 1.5rem); }
  .workshop-brush-heading > span:first-child { width: 28px; }
  .workshop-brush-title::before { inset-inline: -0.55em; }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-brush-heading.brush-waiting .workshop-brush-title::before,
  .workshop-brush-heading.brush-painted .workshop-brush-title::before {
    animation: none;
    clip-path: none;
  }
}
