/* ==========================================================
   De10x home visuals: hero dust + caption, "Our work" gallery, SVG world map.
   Loaded after style.css so it wins the cascade.
   ========================================================== */

/* ---------- hero extras ---------- */
.hr-dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hr-dust i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(190, 255, 255, 0.9); opacity: 0;
  animation: hrDust linear infinite;
}
@keyframes hrDust {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translate3d(var(--dx, 24px), -105vh, 0); opacity: 0; }
}
.hr-now {
  position: absolute; right: 190px; bottom: 26px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #a1a1aa; pointer-events: none; max-width: 38%;
}
.hr-now .hr-now-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4ee2e2; box-shadow: 0 0 0 4px rgba(78,226,226,.18); }
.hr-now .hr-now-k { color: #71717a; letter-spacing: .02em; }
.hr-now b { color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { .hr-now { display: none; } .hr-dust i:nth-child(n+11) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hr-dust { display: none; } }

/* ---------- Our work gallery ---------- */
.wg { position: relative; background: #000; padding: 6rem 0 5.5rem; border-top: 1px solid rgba(39,39,42,.6); }
.wg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 35% at 50% 0%, rgba(78,226,226,.08), transparent 70%);
}
.wg-wrap { position: relative; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wg-wrap { padding: 0 1.5rem; } }
.wg-head { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.wg-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4ee2e2; margin-bottom: 14px; }
.wg-label::before { content: ""; width: 22px; height: 2px; background: #4ee2e2; border-radius: 2px; }
.wg-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; color: #fff; margin: 0; }
.wg-lede { max-width: 30rem; color: #a1a1aa; font-size: 1rem; line-height: 1.6; margin: 0; }
.wg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 1.75rem; }
.wg-fbtn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: transparent; color: #d4d4d8;
  font-weight: 600; font-size: 14px; transition: background .2s, color .2s, border-color .2s;
}
.wg-fbtn:hover { border-color: #4ee2e2; color: #fff; }
.wg-fbtn:focus-visible { outline: 2px solid #4ee2e2; outline-offset: 2px; }
.wg-fbtn.is-on { background: #fff; color: #000; border-color: #fff; }
.wg-count { margin-left: auto; font-size: 13px; color: #71717a; }

.wg-grid { display: flex; gap: 16px; align-items: flex-start; }
.wg-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wg-tile {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.10); border-radius: 16px; overflow: hidden; background: #0a0f10; color: #fff;
  isolation: isolate; text-align: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
  animation: wgIn .5s ease both;
}
@keyframes wgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wg-tile:hover, .wg-tile:focus-visible { transform: translateY(-4px); border-color: rgba(78,226,226,.6); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(78,226,226,.25); }
.wg-tile:focus-visible { outline: 2px solid #4ee2e2; outline-offset: 3px; }
.wg-tile img, .wg-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wg-tile video { opacity: 0; transition: opacity .45s ease; }
.wg-tile.is-live video { opacity: 1; }
.wg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 46%); pointer-events: none; }
.wg-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.wg-cap b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.wg-cap span { font-size: 12px; color: #a1f0f0; letter-spacing: .02em; }
.wg-play {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
}
.wg-play svg { width: 12px; height: 12px; margin-left: 2px; fill: #fff; }
.wg-more { text-align: center; margin-top: 2.25rem; }
.wg-more button {
  min-height: 52px; padding: 0 30px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px;
  color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.22); transition: border-color .2s, background .2s;
}
.wg-more button:hover { border-color: #4ee2e2; background: rgba(78,226,226,.08); }
.wg-more button:focus-visible { outline: 2px solid #4ee2e2; outline-offset: 3px; }
.wg-note { margin-top: 1.25rem; text-align: center; font-size: 13px; color: #71717a; }
html:not(.js) .wg { display: none; }
@media (max-width: 639px) { .wg { padding: 4rem 0 3.5rem; } .wg-grid, .wg-col { gap: 10px; } .wg-count { display: none; } .wg-tile { border-radius: 12px; } .wg-cap b { font-size: 12px; } .wg-cap span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .wg-tile { animation: none; transition: none; } .wg-tile video { display: none; } }

/* ---------- SVG world map (replaces Leaflet, no external requests) ---------- */
#world-map { position: relative; display: grid; place-items: start center; padding-top: 6%; background: radial-gradient(60% 70% at 50% 40%, #0b1516 0%, #050808 70%); }
#world-map .wm-svg { width: 100%; height: auto; max-height: 100%; display: block; }
.wm-grat { fill: none; stroke: rgba(255,255,255,.045); stroke-width: .6; }
.wm-land { fill: #11201f; stroke: rgba(78,226,226,.28); stroke-width: .6; stroke-linejoin: round; }
.wm-arc { fill: none; stroke: rgba(78,226,226,.55); stroke-width: 1; stroke-dasharray: 3 5; animation: wmDash 16s linear infinite; }
@keyframes wmDash { to { stroke-dashoffset: -160; } }
.wm-pt { cursor: pointer; outline: none; }
.wm-dot { fill: #4ee2e2; stroke: #bdf; stroke-opacity: .5; stroke-width: 1; }
.wm-pulse { fill: #4ee2e2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: wmPulse 2.8s ease-out infinite; }
.wm-hq .wm-pulse { animation-duration: 2s; }
@keyframes wmPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(4.2); opacity: 0; } }
.wm-pt:hover .wm-dot, .wm-pt:focus-visible .wm-dot { fill: #fff; }
.wm-tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: #fff;
  background: rgba(0,0,0,.85); border: 1px solid rgba(78,226,226,.35); box-shadow: 0 4px 15px rgba(0,0,0,.5);
  transform: translate(-50%, -135%); white-space: nowrap; opacity: 0; transition: opacity .15s;
}
.wm-tip.is-on { opacity: 1; }
#world-map.wm-fail::after { content: "Map unavailable offline"; color: #71717a; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .wm-arc, .wm-pulse { animation: none; } }
@media (max-width: 639px) { #world-map { padding-top: 12%; } }
