/* ── GLOBAL PRESENCE MAP (index.html #global-presence) ──
   The whole section is sized to fit one screen: the map's width is capped by the viewport height. */
#global-presence { background: #FAF9F4; padding: 44px 32px 28px; position: relative; }
#global-presence .container { max-width: 1200px; margin: 0 auto; }
.gp-head { text-align: center; max-width: 640px; margin: 0 auto 14px; }
.gp-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #0080FF; margin-bottom: 8px; }
.gp-head h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -0.5px; color: #0d1117; margin: 0 0 8px; }
.gp-head h2 span { color: #0080FF; }
.gp-head p { font-size: 15.5px; color: #3d4f63; line-height: 1.6; margin: 0 auto; max-width: 560px; }

/* 2.535 = map width / height. 330px leaves room for the fixed nav, heading, legend and padding. */
.gp-map { position: relative; width: min(100%, calc((100vh - 330px) * 2.535)); aspect-ratio: 1000 / 394.4; margin: 0 auto; }
@supports (height: 100svh) { .gp-map { width: min(100%, calc((100svh - 330px) * 2.535)); } }
.gp-map-base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; pointer-events: none; }

/* Deployments: translucent orange halos with a dot in the middle */
.gp-halo { position: absolute; z-index: 1; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); padding: 0; border: 0; cursor: pointer;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 42%, transparent) 0%, color-mix(in srgb, var(--c) 30%, transparent) 55%, color-mix(in srgb, var(--c) 18%, transparent) 100%);
  transition: background 0.2s; }
.gp-halo:hover, .gp-halo:focus-visible { background: color-mix(in srgb, var(--c) 46%, transparent); }
.gp-halo:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.gp-halo-dot { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }

/* Associations & partners: small teal markers (above the halos, below the office pins) */
.gp-partner { position: absolute; z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.gp-partner:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.gp-partner-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; transform: rotate(45deg);
  background: var(--c); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(10,22,40,0.28); transition: transform 0.2s; }
.gp-partner:hover .gp-partner-dot, .gp-partner:focus-visible .gp-partner-dot { transform: rotate(45deg) scale(1.3); }

/* Offices: solid pins with a pulsing ring, each in its own colour */
.gp-pin { position: absolute; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.gp-pin:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.gp-dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; z-index: 1;
  background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 10px rgba(10,22,40,0.3); transition: transform 0.2s; }
.gp-pin::before, .gp-pin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--c); opacity: 0.4; animation: gp-pulse 2.6s ease-out infinite; animation-delay: var(--delay, 0s); }
.gp-pin::after { animation-delay: calc(var(--delay, 0s) + 1.3s); }
@keyframes gp-pulse { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(4); opacity: 0; } }
.gp-pin:hover .gp-dot, .gp-pin:focus-visible .gp-dot { transform: scale(1.25); }

/* Hover / focus card */
.gp-tip { position: absolute; left: 50%; bottom: calc(50% + 14px); z-index: 5; transform: translate(-50%, 6px); width: max-content; max-width: 280px;
  background: #0d1117; color: #fff; border-radius: 10px; padding: 10px 14px; text-align: left; line-height: 1.4; white-space: normal;
  box-shadow: 0 12px 30px rgba(10,22,40,0.28); border-left: 3px solid var(--c);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.gp-tip strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 700; }
.gp-tip small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px; color: var(--c); margin-top: 2px; filter: brightness(1.25); }
.gp-tip-list { display: block; font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 5px; }
.gp-pin:hover .gp-tip, .gp-pin:focus .gp-tip, .gp-halo:hover .gp-tip, .gp-halo:focus .gp-tip, .gp-partner:hover .gp-tip, .gp-partner:focus .gp-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* a hovered halo only rises above other halos; office pins (z-index 3) always stay on top so they can be hovered */
.gp-halo:hover, .gp-halo:focus { z-index: 1; }
.gp-partner:hover, .gp-partner:focus { z-index: 4; }
.gp-pin:hover, .gp-pin:focus { z-index: 6; }
.gp-tip-right { left: 0; transform: translate(0, 6px); }
.gp-tip-left { left: auto; right: 0; transform: translate(0, 6px); }
.gp-pin:hover .gp-tip-right, .gp-pin:focus .gp-tip-right, .gp-halo:hover .gp-tip-right, .gp-halo:focus .gp-tip-right, .gp-partner:hover .gp-tip-right, .gp-partner:focus .gp-tip-right,
.gp-pin:hover .gp-tip-left, .gp-pin:focus .gp-tip-left, .gp-halo:hover .gp-tip-left, .gp-halo:focus .gp-tip-left, .gp-partner:hover .gp-tip-left, .gp-partner:focus .gp-tip-left { transform: translate(0, 0); }
.gp-tip-below { bottom: auto; top: calc(50% + 14px); }

.gp-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 12px 0 0; padding: 0; }
.gp-legend li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #3d4f63; }
.gp-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,0.08); }
.gp-swatch-halo { width: 16px; height: 16px; background: color-mix(in srgb, var(--c) 35%, transparent); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent);
  position: relative; }
.gp-swatch-halo::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c); }

.gp-swatch-partner { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); margin: 0 1px; }

/* flows straight into the partners section below, which shares the same background */
#global-presence + #partners-clients { padding-top: 36px; }

@media (max-width: 768px) {
  #global-presence { padding: 44px 14px 16px; }
  .gp-map { width: 100%; }
  .gp-pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .gp-dot, .gp-pin::before, .gp-pin::after { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
  .gp-halo-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
  .gp-partner { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .gp-partner-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .gp-tip { max-width: 220px; }
  .gp-legend li { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-pin::before, .gp-pin::after { animation: none; }
}
