.service-map {
  --map-surface: #111210;
  --map-type: #f2f1e9;
  --map-quiet: #c6c6bb;
  --map-accent: #efa58c;
  background: var(--map-surface);
}
.service-map .map-pin {
  max-width: 1480px;
  padding: clamp(60px, 7vw, 108px) 6%;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  column-gap: clamp(30px, 5vw, 82px);
}
.jc-v2 .service-map .map-copy h2 {
  margin: 0 0 26px;
  color: var(--map-type);
  font: 600 clamp(34px, 3.75vw, 62px)/1.07 Arial, sans-serif;
  letter-spacing: -.04em;
  text-transform: none;
}
.service-map .map-copy h2 em {
  display: block;
  margin-top: .12em;
  font: italic 400 .94em/1.12 Georgia, serif;
  letter-spacing: -.035em;
}
.service-map .map-copy > p {
  margin: 0;
  max-width: 35ch;
  text-wrap: pretty;
  color: var(--map-quiet);
  font: 400 clamp(16px, 1.3vw, 19px)/1.65 Arial, sans-serif;
}
.service-map .map-copy > a {
  margin-top: 28px;
  gap: 20px;
  padding-inline: 22px;
  color: #161713;
  background: var(--map-type);
  border: 1px solid var(--map-type);
}
.service-map .map-copy > a:is(:hover,:focus-visible) { background: #fff; color: #111; }
.service-map .map-copy > a:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 4px; }
.service-flow { position: relative; isolation: isolate; width: 100%; max-width: 650px; }
.service-flow .flow-wires {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  pointer-events: none;
  fill: none;
}
.service-flow.has-wires ul::before,
.service-flow.has-wires li::before { display: none; }
.service-flow ul { gap: 34px clamp(22px, 3vw, 50px); padding-block: 38px; }
.service-flow .tree-hub {
  position: relative;
  padding: 6px 12px;
  border: 0;
  background: var(--map-surface);
  color: var(--map-type);
  font: italic 19px/1.3 Georgia, serif;
}
.service-flow .tree-hub::after {
  position: absolute;
  content: '';
  width: 6px;
  height: 6px;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--map-accent);
}
.service-flow ul + .tree-hub::after { top: -3px; bottom: auto; }
.service-flow a {
  position: relative;
  min-height: 54px;
  padding: 12px 10px;
  border: 0;
  border-block: 1px solid #62645b;
  border-radius: 0;
  color: var(--map-type);
  background: var(--map-surface);
  font: 500 clamp(15px, 1.22vw, 18px)/1.28 Arial, sans-serif;
  transition: background-color .18s, border-color .18s;
}
.service-flow a span { color: var(--map-quiet); }
.service-flow a:is(:hover,:focus-visible) {
  color: var(--map-type);
  background: #23241f;
  border-color: var(--map-accent);
}
.service-flow a:is(:hover,:focus-visible) span { color: var(--map-accent); }
.service-flow a:focus-visible,
.service-flow .flow-toggle:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 3px; }
.flow-wire { stroke: #77796d; stroke-width: 1; }
.flow-signal {
  stroke: #e8c1ac;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 2 72;
  animation: map-signal 3s linear infinite;
  animation-play-state: paused;
}
.flow-wire.is-traced { stroke: var(--map-accent); stroke-width: 1.6; }
.flow-signal.is-traced { stroke: #ffebe0; stroke-width: 2.1; }
.service-flow.is-flowing .flow-signal { animation-play-state: running; }
@keyframes map-signal { to { stroke-dashoffset: -74; } }
.flow-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #43453c;
  margin-top: 24px;
  gap: 12px;
}
.service-flow .tree-handoff {
  color: var(--map-quiet);
  margin: 0;
  padding-block: 12px;
  text-align: left;
  font: 13px/1.4 Arial, sans-serif;
}
.service-flow .flow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  flex-shrink: 0;
  border: 0;
  padding: 8px 3px 8px 8px;
  background: transparent;
  color: var(--map-quiet);
  font: 13px/1.4 Arial, sans-serif;
}
.service-flow .flow-toggle::before {
  content: '';
  width: 7px;
  height: 9px;
  box-sizing: border-box;
  border-inline: 2px solid currentColor;
}
.service-flow:not(.is-flowing) .flow-toggle::before {
  width: 0;
  border: 5px solid transparent;
  border-left: 7px solid currentColor;
  border-right: 0;
}
.service-flow .flow-toggle[hidden] { display: none; }
@media (max-width: 800px) {
  .service-map .map-pin { grid-template-columns: 1fr; row-gap: 36px; padding: 50px 7%; }
  .service-map .map-diagram { margin: 0; }
  .service-map .map-copy > p { max-width: 44ch; }
  .jc-v2 .service-map .map-copy h2 { margin-bottom: 18px; }
  .service-map .map-copy > a { margin-top: 18px; }
}
@media (max-width: 600px) {
  .service-flow { max-width: 430px; }
  .service-flow ul { padding: 25px 0 25px 26px; gap: 0; }
  .service-flow a { padding: 12px 6px; min-height: 51px; border-top: 0; }
  .service-flow li:first-child a { border-top: 1px solid #62645b; }
  .service-flow .flow-caption { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-flow .flow-toggle, .service-flow .flow-signal { display: none; }
}
