/* ============================================================================
   ApexEvolv — THE REGION MAP

   The markets and the map of "Where we work" (expertise.html#region), shared
   since 22 Nov 2026 with the home page's expertise panel (index.html
   #expertise), so the two pages show one map rather than two copies that
   could drift apart. Loaded on both pages after mission.css and before the
   page's own stylesheet (expertise.css, home.css).

   These rules were moved here unchanged, in the same order, from
   expertise.css: the warm black ground (.ex-dark, which the Expertise page
   also uses for "The scope of our work"), the copy-and-map grid, the market
   chips, the map, with their keyframes, reduced motion and the
   tablet and phone steps.

   The map's markup is generated: tools/region-map/build.py writes the dots
   (assets/img/expertise-region-dots.svg) and the overlay of lines, points
   and labels into both pages between the "map overlay" comments. Pointing at
   a market lights its line: assets/js/region-map.js, also shared.
   ============================================================================ */

/* ---- where we work: warm black --------------------------------------------------
   The same black and token set as the Executive & C-Level hero, so the
   label, rules and type take their dark-ground values on their own. */
.sec.ex-dark{
  --ink:#FFFFFF; --onIvory:#FFFFFF;
  --mu:rgba(244,243,239,.74); --onIvoryMu:rgba(244,243,239,.74);
  --gold:#D6BE93; --goldDeep:#D6BE93; --goldHi:#EBD9B4; --onGold:#12100A;
  --line:rgba(244,243,239,.14); --line2:rgba(244,243,239,.26);
  background:#12110F;color:var(--ink);padding:var(--sec-gap) 0}
section:has(+ .ex-dark){padding-bottom:var(--sec-gap)}
.ex-dark + section{padding-top:var(--sec-gap)}
.ex-reg{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2.2vw,32px);align-items:center}
/* ---- where we work: the copy left, the map right (19 Nov 2026) -------------------------
   The client's choice: the region in dots, a fine champagne line out of
   Bangkok, the base, to a point for each market, labelled. Since 22 Nov
   2026 the map runs from the Gulf to South-East Asia and Hong Kong (Asia
   and the Middle East), so it is landscape, 640 by 440. The dots are
   an image (assets/img/expertise-region-dots.svg); the lines and points
   are inline SVG over it, the labels HTML at the site's label size, so
   they stay legible however large the map is drawn. All of it is
   generated by tools/region-map/build.py. */
.ex-reg__txt{grid-column:1 / 6}
.ex-reg__txt .lab{margin:0}
.ex-reg__h{margin:clamp(20px,2.8vh,28px) 0 0;max-width:none;
  font-size:clamp(2.4rem,4.4vw,4rem);font-weight:600;letter-spacing:-.045em;line-height:1.02;color:var(--ink)}
.ex-reg__copy{margin-top:clamp(24px,3.4vh,32px)}
/* the seven markets as quiet pills; Thailand, the base, carries the champagne point */
.ex-chips{list-style:none;margin:clamp(28px,4vh,40px) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 10px}
.ex-chip{display:inline-flex;align-items:center;gap:9px;padding:8px 15px;border:1px solid var(--line2);border-radius:999px;
  font-size:var(--t-micro);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);cursor:default;
  transition:border-color .3s var(--e),color .3s var(--e)}
.ex-chip i{width:6px;height:6px;border-radius:50%;background:#FFFFFF;flex:none}
.ex-chip--base i{background:#D6BE93}
/* the newest market (22 Nov 2026, the United Arab Emirates): a hollow point,
   as on the map; otherwise the same pill */
.ex-chip--new i{background:none;box-shadow:inset 0 0 0 1.2px #FFFFFF}
.ex-chip.is{border-color:#D6BE93;color:#D6BE93}
.ex-map{grid-column:6 / -1;justify-self:end;position:relative;width:100%;max-width:600px;margin:0}
.ex-map__fr{position:relative}   /* the map itself: the overlay and labels are placed on it */
.ex-map img{display:block;width:100%;height:auto}
.ex-ov{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ex-arc{fill:none;stroke:#D6BE93;stroke-width:1.2;stroke-opacity:.5;vector-effect:non-scaling-stroke;
  transition:stroke-opacity .4s var(--e),stroke-width .4s var(--e)}
.ex-arc.is{stroke-opacity:1;stroke-width:2}
/* the newest market: the same line, dashed; nothing draws the lines in, so
   the dashes are never flattened by an animation */
.ex-arc--new{stroke-dasharray:5 4}
.ex-pt{fill:#FFFFFF}
.ex-pt--base{fill:#D6BE93}
/* the newest market: a hollow ring, the panel's black inside */
.ex-pt--new{fill:#12110F;stroke:#FFFFFF;stroke-width:1.3;vector-effect:non-scaling-stroke}
.ex-ring{fill:none;stroke:#D6BE93;stroke-width:1;transform-box:fill-box;transform-origin:center;
  animation:exRing 3.2s var(--e) infinite}
@keyframes exRing{0%{transform:scale(.5);opacity:.9}100%{transform:scale(2.4);opacity:0}}
.ex-pin{position:absolute;transform:translate(14px,-50%);white-space:nowrap;
  font-size:var(--t-micro);font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1;color:#F4F3EF;
  text-shadow:0 0 5px #12110F,0 0 10px #12110F;transition:color .3s var(--e)}
.ex-pin--l{transform:translate(calc(-100% - 14px),-50%)}
/* above its point, starting at it: the Emirates label, clear of its own
   line; anchored by its foot, so a second line grows it upwards */
.ex-pin--t{transform:translate(-6px,calc(-100% - 11px))}
/* the newest market's second line, "New market": smaller, in the gold of
   the base */
.ex-pin small{display:block;margin-top:7px;font-size:.64rem;letter-spacing:.16em;color:#D6BE93}
.ex-pin--base{color:#D6BE93}
.ex-pin.is{color:#D6BE93}
/* the key that stood under the map (Base / Established market / New market)
   was taken off on 23 Nov 2026 at the client's request, with the "· Base"
   and "· New" after the Thailand and UAE chips; the map's own "New market"
   label and the chips' points still mark the base and the newest market */
@media(prefers-reduced-motion:reduce){.ex-ring{animation:none;opacity:.5}.ex-arc,.ex-chip,.ex-pin{transition:none}}

/* ---- tablet: the map comes under the copy ---------------------------------------- */
@media(max-width:959px){
  .ex-reg{grid-template-columns:minmax(0,1fr)}
  .ex-reg > *{grid-column:1 / -1 !important;grid-row:auto !important}
  .ex-map{justify-self:center;max-width:520px;margin-top:clamp(48px,7vh,64px)}
}

/* ---- the map on a phone ---------------------------------------------------------------------
   The points around the Malay peninsula come too close for their labels,
   so only Bangkok and the newest market, alone on the left, keep theirs;
   the chips above name every market. */
@media(max-width:620px){
  .ex-pin:not(.ex-pin--base):not(.ex-pin--new){display:none}
  /* Bangkok's lines leave it upwards and down to the right: its label sits
     below and to the left of the point, over the Andaman Sea */
  .ex-pin--base{transform:translate(calc(-100% - 4px),9px)}
}
