.topbar,
.wd-header {
  isolation: isolate;
}

.wf-header-terrain {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.wf-terrain-art {
  position: absolute;
  inset-block: 0;
  inset-inline-end: clamp(0px, 5%, 76px);
  width: min(73%, 720px);
  height: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent);
}

.wf-terrain-fields {
  fill: none;
  stroke: #84908c;
  stroke-opacity: .38;
  stroke-width: .75;
  stroke-linejoin: round;
}

.wf-terrain-roads {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: .48;
}

.wf-terrain-road-blue { stroke: var(--wf-blue, #96bbd0); }
.wf-terrain-road-sage { stroke: var(--wf-sage, #accaa4); }

.wf-terrain-light {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 340ms ease-out;
}

.wf-terrain-light.is-near {
  opacity: .87;
  transition-duration: 120ms;
}

@media (max-width: 640px) {
  .wf-terrain-art {
    width: 61%;
    inset-inline-end: 2%;
    opacity: .75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-terrain-light { display: none; }
}
