/* Services map */

.smap {
  padding-block: clamp(40px, 6vw, 96px);
}

.smap__pick {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.smap__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-ui, 3px);
  border: 0;
  background: var(--grey-2, #e2e2e4);
  color: var(--ink, #0b0b0c);
  cursor: pointer;
  transition: background 200ms var(--ease-expo, ease), color 200ms var(--ease-expo, ease);
}

.path-chip:hover {
  background: var(--ink, #0b0b0c);
  color: var(--grey, #d6d6d6);
}

.path-chip.is-active {
  background: var(--ink, #0b0b0c);
  color: var(--pink, #ff2d96);
}

.path-chip:focus-visible {
  outline: 2px solid var(--pink, #ff2d96);
  outline-offset: 2px;
}

/* Board */

.smap__board {
  position: relative;
}

.smap__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.smap__territories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(72px, 7vw, 120px);
  position: relative;
  z-index: 1;
}

/* Territories */

.territory__level {
  /* eyebrow styling inherited from site css */
}

.territory__name {
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 48px);
  letter-spacing: -0.02em;
  margin: 6px 0 clamp(20px, 2.4vw, 32px);
}

.territory__stations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  row-gap: clamp(28px, 3.4vw, 52px);
}

/* Stations: the whole list starts grey. Services on the chosen path turn
   black and get a pink dot hanging in the gutter, so names stay flush with
   the headings. The dot the line is heading for pulses; once the line
   reaches it, it settles to a static black dot. Each dot sits in a ring of
   page grey, so the line fades out as it enters it. */

.territory__name { margin-left: -0.05em; }

.station {
  position: relative;
  cursor: default;
}

.station__mark {
  --dot: clamp(30px, 2.55vw, 39px);
  position: absolute;
  left: calc(-1 * var(--dot) - 12px);
  top: calc(clamp(19px, 1.5vw, 23px) * 0.6 - var(--dot) / 2);
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: rgba(255, 45, 150, .28);
  box-shadow: 0 0 0 6px var(--smap-halo), 0 0 10px 10px var(--smap-halo);
  overflow: visible;
  opacity: 0;
  transform: scale(.3);
  transition: opacity 600ms var(--ease-expo, ease), transform 600ms var(--ease-expo, ease), background 700ms var(--ease-expo, ease), box-shadow 700ms var(--ease-expo, ease);
}

.station__name {
  font-weight: 700;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.2;
  margin: 0;
  color: rgba(11, 11, 12, 0.3);
  transition: color 600ms var(--ease-expo, ease);
}

.station__text { display: none; }

.station.is-on .station__name { color: var(--ink, #0b0b0c); }
.station.is-on .station__mark { opacity: 1; transform: none; }

/* Beacon: the dot ahead of the line breathes, solid pink throughout. It
   swells from half size to 10% over, settles at full size, holds for a
   moment, then sinks back to half and goes again. */
.station.is-target .station__mark {
  background: var(--pink, #ff2d96);
  box-shadow: 0 0 0 6px var(--smap-halo), 0 0 10px 10px var(--smap-halo);
  animation: smap-breathe 2.6s ease-in-out infinite;
}
@keyframes smap-breathe {
  0% { transform: scale(.5); }
  30% { transform: scale(1.1); }
  42% { transform: scale(1); }
  72% { transform: scale(1); }
  100% { transform: scale(.5); }
}

.station.is-reached .station__mark { background: var(--smap-trail); box-shadow: 0 0 0 6px var(--smap-halo), 0 0 10px 10px var(--smap-halo); }

/* Phones */

@media (max-width: 900px) {
  .smap__territories {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  /* Narrow gutter: indent the lists just enough for the hanging dots */
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .station__mark,
  .station__name,
  .path-chip {
    transition: none;
  }
  .station.is-target .station__mark { animation: none; }
}
/* Level labels sit on one line so the three columns align */
.territory__level { white-space: nowrap; }

/* Services hero: a normal-height intro aligned with the map below it,
   not the full-window homepage hero */
.hero.page-hero--services {
  min-height: 0;
  display: block;
  padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px));
  padding-bottom: 0;
}
.hero.page-hero--services .container {
  max-width: var(--max);
  padding-inline: var(--gutter);
  padding-bottom: 0;
}
.page-hero--services + .smap { padding-top: clamp(40px, 4vw, 64px); }


/* ==========================================================================
   Version A: sectors as big buttons; Strategy, Creative and Marketing as
   cards. The route runs over the cards but under the words and dots.
   ========================================================================== */
.smap {
  --smap-halo: var(--grey-2, #e2e2e4);
  --smap-trail: #a2a2a7;
  --dot-size: clamp(30px, 2.55vw, 39px);
}
/* The trail is a darker grey; pink is kept for the dots still ahead */
.smap__route path { stroke: var(--smap-trail); }
.path-chip {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  padding: clamp(14px, 1.2vw, 18px) clamp(20px, 1.8vw, 28px);
}
.smap__chips { gap: 12px; }
.smap__territories { position: static; z-index: auto; column-gap: clamp(16px, 1.8vw, 28px); }
.territory {
  background: var(--grey-2, #e2e2e4);
  border-radius: var(--card-radius, 4px);
  padding: clamp(28px, 2.6vw, 40px) clamp(24px, 2vw, 32px) clamp(32px, 3vw, 48px);
}
/* Headings sit flush with the card's edge; the service list is indented to
   leave room for its dots */
.territory__stations { padding-left: calc(var(--dot-size) + 14px); }
.territory__level, .territory__name, .station { position: relative; z-index: 1; }
.territory__level { white-space: normal; }
.territory__name { font-size: clamp(22px, 1.8vw, 28px); margin-bottom: clamp(20px, 2vw, 28px); }
.territory__stations { row-gap: clamp(24px, 2.6vw, 40px); }
.station__name { font-size: clamp(17px, 1.3vw, 20px); }
.station__mark { top: calc(clamp(17px, 1.3vw, 20px) * 0.6 - var(--dot) / 2); }

