/* Shared presence map — base panel, map, labels, arcs */
.pres-panel {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 80% -10%, rgba(124, 92, 252, 0.14), transparent 60%),
    radial-gradient(520px 380px at 6% 110%, rgba(247, 145, 62, 0.14), transparent 60%),
    linear-gradient(180deg, #0e1838, #0a1230);
  box-shadow: var(--sh-lg);
}
.pres-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
  filter: brightness(1.035);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.pres-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pres-arc {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-opacity: 0.95;
}
.pres-arc--co,
.pres-arc--de,
.pres-arc--es {
  stroke: url(#presArc);
}
.pres-arc--ap {
  stroke: #7c5cfc;
  stroke-opacity: 0.6;
  stroke-dasharray: 6 5;
}
.pres-label {
  position: absolute;
  transform: translate(-50%, -150%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(14, 23, 54, 0.06);
  box-shadow: 0 2px 8px rgba(14, 23, 54, 0.08), 0 8px 20px rgba(14, 23, 54, 0.06);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy-800);
  white-space: nowrap;
  z-index: 2;
}
.pres-label .pin {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.pres-label.hq .pin {
  box-shadow: 0 0 0 3px var(--orange-tint);
}
.pres-label.soon {
  background: rgba(18, 14, 48, 0.72);
  color: #fff;
  border: 1px solid rgba(124, 92, 252, 0.45);
  backdrop-filter: blur(6px);
}
.pres-label.soon .pin {
  background: var(--violet);
}
.pres-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-700);
  background: var(--orange-tint);
  padding: 2px 7px;
  border-radius: 100px;
}
.pres-label.soon .pres-tag {
  color: var(--violet);
  background: rgba(124, 92, 252, 0.18);
}

/* Partners — interactive map */
.pres--interactive .pres-arc {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: pres-draw 2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.pres--interactive .pres-arc--co {
  animation-delay: 0.15s;
}
.pres--interactive .pres-arc--de {
  animation-delay: 0.35s;
}
.pres--interactive .pres-arc--es {
  animation-delay: 0.55s;
}
.pres--interactive .pres-arc--ap {
  animation: none;
  stroke-dashoffset: 0;
}
@keyframes pres-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.pres--interactive .pres-label {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s, border-color 0.2s;
}
.pres--interactive .pres-label.is-active {
  border-color: rgba(242, 130, 62, 0.35);
  box-shadow: 0 0 0 3px rgba(242, 130, 62, 0.12), 0 8px 22px rgba(14, 23, 54, 0.12);
}
.pres--interactive .pres-label.soon.is-active {
  border-color: rgba(124, 92, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15), 0 8px 22px rgba(14, 23, 54, 0.12);
}
.pres--interactive .pres-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f4f6fa, #eceff5);
  border: 1px solid rgba(14, 23, 54, 0.1);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(14, 23, 54, 0.06);
}
.pres--interactive .pres-chip {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 100px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(14, 23, 54, 0.06);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--t-strong);
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.pres--interactive .pres-chip::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  pointer-events: none;
}
.pres--interactive .pres-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(14, 23, 54, 0.12);
}
.pres--interactive .pres-chip:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}
.pres--interactive .pres-chip.active {
  background: linear-gradient(180deg, #fff6ee, #fff);
  color: var(--navy-800);
  box-shadow: 0 10px 28px rgba(242, 130, 62, 0.22);
}
.pres--interactive .pres-chip.active::after {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-tint);
}
.pres--interactive .pres-chip.soon {
  background: linear-gradient(180deg, #f3f0fe, #fff);
}
.pres--interactive .pres-chip.soon.active {
  background: linear-gradient(180deg, #ede9fe, #fff);
}
.pres--interactive .pres-chip.soon.active::after {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-tint);
}
.pres--interactive .pres-chip .fl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f5f7fb);
  border: 1px solid rgba(14, 23, 54, 0.1);
  box-shadow: 0 2px 8px rgba(14, 23, 54, 0.06);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.pres--interactive .pres-chip.active .fl {
  border-color: rgba(242, 130, 62, 0.25);
  box-shadow: 0 0 0 3px rgba(242, 130, 62, 0.12);
}
.pres--interactive .pres-chip .pres-chip-nm {
  letter-spacing: -0.01em;
}
.pres--interactive .pres-chip .b {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-600));
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(242, 130, 62, 0.3);
}
.pres--interactive .pres-chip.soon .b {
  background: linear-gradient(135deg, var(--violet), #6b4fdb);
  box-shadow: 0 2px 6px rgba(124, 92, 252, 0.28);
}
.pres--interactive .pres-info {
  max-width: 100%;
  margin: 20px auto 0;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(14, 23, 54, 0.1);
  border-left: 4px solid var(--orange);
  border-radius: var(--r-xl);
  padding: 20px 22px 22px;
  box-shadow: 0 6px 8px rgba(14, 23, 54, 0.03), 0 16px 40px rgba(14, 23, 54, 0.1);
  position: relative;
  overflow: hidden;
}
.pres--interactive .pres-info.is-apac {
  border-left-color: var(--violet);
}
.pres--interactive .pres-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: opacity 0.18s cubic-bezier(0.23, 1, 0.32, 1), transform 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}
.pres--interactive .pres-info.is-swapping .pres-info-inner {
  opacity: 0;
  transform: translateY(6px);
}
.pres--interactive .pres-info-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--orange-tint), var(--violet-tint));
  border: 1px solid rgba(14, 23, 54, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 24px;
  line-height: 1;
}
.pres--interactive .pres-info.is-apac .pres-info-icon {
  background: linear-gradient(145deg, var(--violet-tint), #e8e4fe);
}
.pres--interactive .pres-info-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.pres--interactive .pres-info-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pres--interactive .pres-info-t {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--t-strong);
  letter-spacing: -0.02em;
}
.pres--interactive .pres-info-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-700);
  background: var(--orange-tint);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(242, 130, 62, 0.18);
}
.pres--interactive .pres-info.is-apac .pres-info-tag {
  color: var(--violet);
  background: rgba(124, 92, 252, 0.12);
  border-color: rgba(124, 92, 252, 0.22);
}
.pres--interactive .pres-info-d {
  margin-top: 8px;
  color: var(--t-body);
  font-size: 15px;
  line-height: 1.55;
}

/* About — lite static map */
.pres--lite .pres-panel {
  aspect-ratio: 5 / 2;
}
.pres--lite .pres-arc {
  stroke-dashoffset: 0;
}
.pres-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f4f6fa, #eceff5);
  border: 1px solid rgba(14, 23, 54, 0.1);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(14, 23, 54, 0.06);
}
.pres-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid rgba(14, 23, 54, 0.08);
  box-shadow: 0 2px 6px rgba(14, 23, 54, 0.06);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--t-strong);
}
.pres-pill .fl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f5f7fb);
  border: 1px solid rgba(14, 23, 54, 0.1);
  box-shadow: 0 2px 8px rgba(14, 23, 54, 0.06);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.pres-pill .b {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-600));
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(242, 130, 62, 0.3);
}
.pres-pill.soon {
  background: linear-gradient(180deg, #f3f0fe, #fff);
}
.pres-pill.soon .b {
  background: linear-gradient(135deg, var(--violet), #6b4fdb);
  box-shadow: 0 2px 6px rgba(124, 92, 252, 0.28);
}
.pres--lite .pres-link {
  display: inline-flex;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .pres-panel {
    aspect-ratio: 3 / 2;
    border-radius: var(--r-lg);
  }
  .pres--lite .pres-panel,
  .pres--interactive .pres-panel {
    margin-inline: -20px;
    width: calc(100% + 40px);
  }
  /* Chips/pills already list locations — hide overlapping map labels on small screens */
  .pres-label {
    display: none;
  }
  .pres--interactive .pres-legend,
  .pres-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 12px 20px 16px;
    margin-inline: -20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    border-radius: 16px;
  }
  .pres--interactive .pres-legend::-webkit-scrollbar,
  .pres-pills::-webkit-scrollbar {
    display: none;
  }
  .pres--interactive .pres-chip,
  .pres-pill {
    scroll-snap-align: start;
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 14px 8px 8px;
    gap: 8px;
  }
  .pres--interactive .pres-chip .fl,
  .pres-pill .fl {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .pres--interactive .pres-chip .b,
  .pres-pill .b {
    padding: 3px 8px;
    font-size: 9px;
  }
  .pres--interactive .pres-info {
    margin-top: 20px;
    padding: 20px 18px 22px;
  }
  .pres--lite .pres-link {
    margin-top: 20px;
  }
}

@media (max-width: 400px) {
  .pres-panel {
    aspect-ratio: 1 / 1;
  }
  .pres--interactive .pres-info-t {
    font-size: 1.05rem;
  }
  .pres--interactive .pres-info-d {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pres--interactive .pres-arc {
    animation: none;
    stroke-dashoffset: 0;
  }
}
