/* Zworks particle FX · agent G (Claude Fable 5.2) · 26/11/2026 · pairs with fx.js
   <div class="zw-fx" data-zw-fx="morph|ksa-map"></div>
   The block reserves its place before the script runs (no layout shift) and never takes a click: fx.js listens on the
   window. Sizes are zero-specificity defaults (:where), so any layout rule of the page wins without !important. */
:where(.zw-fx) {
  position: relative;
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  aspect-ratio: 1 / 1;
}
.zw-fx {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.zw-fx__c {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  transition: opacity .9s ease;
}
.zw-fx.is-on .zw-fx__c { opacity: 1; }

/* ---- the office pin on the map (ksa-map) ---- */
.zw-fx__pin {
  position: absolute;
  left: 0;
  top: 0;
  inline-size: 0;
  block-size: 0;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.zw-fx.is-on .zw-fx__pin { opacity: 1; }
.zw-fx__dot,
.zw-fx__ring {
  position: absolute;
  left: -7px;
  top: -7px;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
}
.zw-fx__dot {
  background: radial-gradient(circle at 36% 30%, #f6ffcf 0%, #bde821 52%, #6ecd31 100%);
  box-shadow: 0 0 0 2px rgb(10 12 13 / .9), 0 0 14px 3px rgb(189 232 33 / .78), 0 0 36px 9px rgb(189 232 33 / .34);
}
.zw-fx__ring {
  border: 1.5px solid rgb(189 232 33 / .92);
  animation: zw-fx-ping 2.9s cubic-bezier(.2, .6, .3, 1) infinite;
}
.zw-fx__ring--2 { animation-delay: 1.45s; }
@keyframes zw-fx-ping {
  0% { transform: scale(1); opacity: .9; }
  78%, 100% { transform: scale(5.4); opacity: 0; }
}
.zw-fx__label {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  padding: 7px 13px 8px;
  border-radius: 10px;
  font: 600 .86rem/1.35 var(--zw-font, system-ui, sans-serif);
  color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / .13) 0%, rgb(255 255 255 / 0) 52%), linear-gradient(180deg, rgb(62 70 76 / .86) 0%, rgb(20 24 27 / .9) 55%, rgb(8 10 11 / .93) 100%);
  border: 1px solid rgb(189 232 33 / .5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 0 18px rgb(189 232 33 / .16), 0 10px 22px -12px rgb(0 0 0 / .9);
  opacity: 0;
  transition: opacity .6s ease .7s;
  will-change: transform;
}
.zw-fx.is-on .zw-fx__label { opacity: 1; }

/* ---- captions with thin arrows on the figures (morph) · WEB-C (Claude Fable 5.2), 26/11/2026 ----
   A short text above, below or beside the figure, a thin rule between the text and the figure, and a thin arrow that
   leaves the rule and ends on a dot of the figure. fx.js places them (the arrow follows the figure as it tilts) and
   adds «is-in» when the figure has gathered: the rule draws itself, then the arrow, then its head, while the text
   rises in; they leave before the figure dissolves. Decoration only (aria-hidden), no clicks. Physical left/top: the
   places are set in pixels by fx.js. */
.zw-fx__co {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zw-fx__co-svg {
  position: absolute;
  left: 0;
  top: 0;
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
}
.zw-fx__co-rule,
.zw-fx__co-line,
.zw-fx__co-head {
  fill: none;
  stroke: rgb(198 238 52 / .92);
  stroke-width: calc(1.15px * var(--zw-k, 1));
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zw-fx__co-rule,
.zw-fx__co-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .3s ease-in;
}
.zw-fx__co-head,
.zw-fx__co-dot {
  opacity: 0;
  transition: opacity .18s ease;
}
.zw-fx__co-dot { fill: #dcfb62; }
.zw-fx__co-label {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  font: 600 calc(clamp(.84rem, .76rem + .3vw, 1.02rem) * var(--zw-k, 1) * var(--zw-kr, 1))/1.45 var(--zw-font, system-ui, sans-serif); /* follows the theme's wide-screen factors */
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .95), 0 0 12px rgb(6 8 9 / .9), 0 0 26px rgb(6 8 9 / .7);
  text-wrap: balance;
  will-change: transform;
}
.zw-fx__co-label--2 { font-weight: 500; color: rgb(236 242 245 / .94); }
.zw-fx__co-t {
  display: block;
  opacity: 0;
  transform: translate3d(0, 7px, 0);
  transition: opacity .28s ease, transform .28s ease;
}
/* in: rule (.1s → .55s), arrow (.5s → 1.05s), head and dot (1s), text with the rule; the second caption .45s later */
.zw-fx__co.is-in .zw-fx__co-rule { stroke-dashoffset: 0; transition: stroke-dashoffset .45s cubic-bezier(.5, .05, .2, 1) .1s; }
.zw-fx__co.is-in .zw-fx__co-line { stroke-dashoffset: 0; transition: stroke-dashoffset .55s cubic-bezier(.5, .05, .2, 1) .5s; }
.zw-fx__co.is-in .zw-fx__co-head,
.zw-fx__co.is-in .zw-fx__co-dot { opacity: 1; transition: opacity .28s ease 1s; }
.zw-fx__co.is-in .zw-fx__co-t { opacity: 1; transform: none; transition: opacity .6s ease .1s, transform .6s cubic-bezier(.2, .7, .2, 1) .1s; }
.zw-fx__co.is-in .zw-fx__co-g--2 .zw-fx__co-rule { transition-delay: .55s; }
.zw-fx__co.is-in .zw-fx__co-g--2 .zw-fx__co-line { transition-delay: .95s; }
.zw-fx__co.is-in .zw-fx__co-g--2 .zw-fx__co-head,
.zw-fx__co.is-in .zw-fx__co-g--2 .zw-fx__co-dot { transition-delay: 1.45s; }
.zw-fx__co.is-in .zw-fx__co-label--2 .zw-fx__co-t { transition-delay: .55s; }
/* a narrow block: one caption under the figure, no arrow */
.zw-fx__co--compact .zw-fx__co-svg,
.zw-fx__co--compact .zw-fx__co-label--2 { display: none; }

@media (prefers-reduced-motion: reduce) {
  .zw-fx__c,
  .zw-fx__pin,
  .zw-fx__label { transition: none; }
  .zw-fx__ring { animation: none; transform: scale(2.3); opacity: .45; }
  .zw-fx__ring--2 { transform: scale(3.6); opacity: .22; }
  .zw-fx__co .zw-fx__co-rule,
  .zw-fx__co .zw-fx__co-line,
  .zw-fx__co .zw-fx__co-head,
  .zw-fx__co .zw-fx__co-dot,
  .zw-fx__co .zw-fx__co-t { transition: none !important; }
  .zw-fx__co-t { transform: none; }
}
