/* PPS — Home: "A Strategic Bridge to Saudi Healthcare"
   Dotted world map; gold arcs from partners around the world (and inside the Kingdom) meet at a gate over Riyadh. */
.bridge-sec { overflow: hidden; }
.bridge-sec .section-head { margin-bottom: 10px; }
.bridge-wrap { position: relative; max-width: 1200px; margin: 0 auto; }
.bridge-map { display: block; width: 100%; height: auto; overflow: visible; }

.br-dots circle { fill: #c9d1de; }
.br-ksa circle { fill: var(--gold); opacity: .25; transition: opacity 1.2s ease 1.6s; }
.br-ksa-shape { fill: rgba(170, 137, 59, .08); stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; opacity: 0; transition: opacity 1.2s ease 1.4s; }

.br-arc { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.br-hub { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.br-arch { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.br-arch.in { stroke-width: 1.6; opacity: .7; }
.br-core { fill: var(--gold); opacity: 0; }
.br-pulse { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* everything starts when the map scrolls into view */
.bridge-wrap.go .br-hub { animation: br-pop .5s ease calc(var(--i) * .12s) forwards; }
.bridge-wrap.go .br-arc { animation: br-draw 1.6s cubic-bezier(.45, .05, .25, 1) calc(.2s + var(--i) * .12s) forwards; }
.bridge-wrap.go .br-ksa circle { opacity: 1; }
.bridge-wrap.go .br-ksa-shape { opacity: 1; }
.bridge-wrap.go .br-arch { animation: br-draw 1s ease 2.2s forwards; }
.bridge-wrap.go .br-arch.in { animation-delay: 2.5s; }
.bridge-wrap.go .br-core { animation: br-show .4s ease 2.6s forwards; }
.bridge-wrap.go .br-pulse { animation: br-pulse 2.8s ease-out 3s infinite; }
.bridge-wrap.go .br-pulse.p2 { animation-delay: 4.4s; }
@keyframes br-draw { to { stroke-dashoffset: 0; } }
@keyframes br-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes br-show { to { opacity: 1; } }
@keyframes br-pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.2); } }

/* once drawn, a light keeps travelling along every arc towards Riyadh */
.br-arcs .br-run { fill: none; stroke: #f3dfa6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px rgba(201, 168, 92, .9)); }
.bridge-wrap.go .br-run { animation: br-run 3.2s linear calc(2.4s + var(--i) * .27s) infinite, br-show .3s ease calc(2.4s + var(--i) * .27s) forwards; }
@keyframes br-run { from { stroke-dashoffset: 1.06; } to { stroke-dashoffset: 0; } }

@media (max-width: 680px) { .bridge-wrap { margin-inline: -16px; } }
@media (prefers-reduced-motion: reduce) {
  .bridge-wrap .br-arc, .bridge-wrap .br-arch { stroke-dashoffset: 0; animation: none !important; }
  .bridge-wrap .br-hub, .bridge-wrap .br-core, .bridge-wrap .br-ksa-shape { opacity: 1; animation: none !important; }
  .bridge-wrap .br-run, .bridge-wrap .br-pulse { display: none; }
}
