/* Keep the drawing on the visible process pin, without changing its scroll area. */
.process-pin,
.about {
  position: relative;
  isolation: isolate;
}
.process-pin::before,
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/circuit-board-sketch.png") center / cover no-repeat;
  opacity: .06;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.about::before {
  background-position: 40% center;
  transform: scaleX(-1);
}
.process-inner,
.about-layout { position: relative; z-index: 1; }
:root[data-theme="light"] .process-pin::before,
:root[data-theme="light"] .about::before {
  opacity: .07;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}
/* The light theme retains its existing page grain; add the same texture in dark. */
:root:not([data-theme="light"]) .process-pin::after,
:root:not([data-theme="light"]) .about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/noise.png") repeat;
  opacity: .045;
  mix-blend-mode: soft-light;
}
@media (max-width: 680px) {
  .process-pin::before,
  .about::before {
    background-size: auto 850px;
    background-position: 60% center;
  }
}
