/* ============================================================
   Apex Synergy Eurasia — Landing styles
   Visual language aligned with the official presentation:
   deep navy (#0A192C), metallic gold (#C4A052), light text.
   ============================================================ */

/* Fonts are served from the site itself: no external request, and they work in
   markets where Google Fonts is unreachable. Cyrillic is a separate file so
   Latin-only visitors never download it. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/source-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/source-serif-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* Type scale — 7 steps. 13px is the floor so nothing is hard to read at 36+;
     headings stay restrained so the page reads elegant rather than shouty. */
  --fs-xs: 13px;     /* eyebrows, tags, meta, map labels */
  --fs-sm: 15px;     /* nav, chips, form controls, captions */
  --fs-base: 18px;   /* body copy, card descriptions */
  --fs-md: 20px;     /* lead paragraphs, card titles */
  --fs-lg: 24px;     /* subsection headings */
  --fs-h2: clamp(28px, 3vw, 36px);    /* section titles */
  --fs-h1: clamp(34px, 4.2vw, 46px);  /* hero only */

  --navy: #0A192C;          /* base background (from deck) */
  --navy-2: #0C1E33;        /* slightly raised section */
  --navy-3: #081524;        /* deepest */
  --surface: rgba(255, 255, 255, 0.028);  /* dark card fill */
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.10);       /* hairline on dark */
  --line-strong: rgba(255, 255, 255, 0.18);
  --paper: #F5F7FA;         /* white card */
  --gold: #C4A052;
  --gold-bright: #E4C87A;
  --gold-deep: #A9863B;
  --white: #F2F4F6;
  --text: #C3CEDA;          /* body on navy */
  --muted: #8291A2;         /* secondary */
  --faint: #64748699;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* serif headings read as established and institutional rather than start-up;
     CJK/Devanagari/Thai fall through to the system serif, which is correct for them */
  --font-display: "Source Serif 4", "Songti SC", "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
/* Form controls default to the OS font (Arial), not the page font — this is why
   the map labels rendered in Arial. Inherit everywhere so it cannot recur. */
button, input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
/* sticky header is 74px tall — anchored sections must land below it, not under it */
[id] { scroll-margin-top: 86px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--navy);
  line-height: 1.62;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* every heading uses the display serif, so the page reads as one system */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h3, h4 { line-height: 1.22; }
/* h5 is a small tracked label, not a heading — it stays in the sans */
h5 { font-family: var(--font); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* figures (.shot, .member) carry UA margins of 1em/40px — they silently shrank
   every photo inside its grid track until reset */
figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 104px 0; }
.section--tight { padding: 76px 0; }
.section--raised { background: var(--navy-2); }
.section--deep { background: var(--navy-3); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-head { max-width: 780px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2.section-title { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-md); color: var(--muted); line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #1c1503; }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   Brand mark (apex peak) — replicates the deck logo
   ============================================================ */
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand__peak { width: 34px; height: 40px; flex: none; }
.brand__name { font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.15; }
.brand__name small { display: block; font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--gold); margin-top: 4px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 20, 34, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.nav__links { display: flex; gap: 28px; margin-left: 22px; }
.nav__links a { color: var(--text); font-size: var(--fs-sm); font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--gold-bright); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* Language dropdown */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text); padding: 7px 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; font-family: inherit; transition: border-color 0.15s, color 0.15s;
}
.lang__toggle:hover { border-color: var(--gold); color: var(--white); }
.lang__globe { width: 15px; height: 15px; color: var(--gold); }
.lang__current { min-width: 20px; text-align: left; }
.lang__caret { width: 13px; height: 13px; transition: transform 0.2s; opacity: 0.7; }
.lang.open .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  list-style: none; margin: 0; padding: 6px;
  min-width: 168px; border-radius: 12px;
  background: #0E2135; border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--text); font-family: inherit; font-size: var(--fs-sm); padding: 9px 12px; border-radius: 8px;
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.lang__menu button:hover { background: var(--surface-2); color: var(--white); }
.lang__menu button.is-active { color: var(--gold-bright); font-weight: 700; }

.nav__toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 34%, rgba(10,25,44,0.72) 56%, rgba(10,25,44,0.30) 100%),
    linear-gradient(0deg, var(--navy), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; padding: 118px 0 108px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.hero__slogan {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: var(--fs-h1);
  line-height: 1.12; letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--gold); display: block; font-weight: 600; }
.hero__sub { font-size: var(--fs-md); line-height: 1.4; color: var(--text); max-width: 560px; margin-bottom: 34px; text-transform: none; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__meta {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  /* spacing instead of "·" separators: wraps cleanly in every language,
     with no separator left orphaned at the start of a new line */
  display: flex; gap: 10px 30px; flex-wrap: wrap; align-items: center;
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.hero__meta span { position: relative; }

/* Restrained brand panel (replaces the animated motif) */
.brand-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  padding: 46px 44px 38px;
  text-align: center;
}
.brand-panel__peak { width: 46px; height: 54px; margin: 0 auto 22px; display: block; }
.brand-panel__ase {
  font-size: 34px; font-weight: 700; letter-spacing: 0.34em; color: var(--white);
  padding-left: 0.34em; /* optical balance for tracking */
}
.brand-panel__tag {
  margin-top: 12px; font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.brand-panel__rule { height: 1px; background: var(--line); margin: 30px 0 6px; }
.brand-panel__lines { display: grid; }
.bl { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; gap: 14px; text-align: left; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.bl:last-child { border-bottom: 0; }
.bl__k { color: var(--gold); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.06em; }
.bl__v { color: var(--text); font-size: var(--fs-sm); letter-spacing: 0.01em; }

/* ============================================================
   Content blocks
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--surface); }
.pillar__icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 11px; border: 1px solid var(--line);
  background: rgba(196, 160, 82, 0.09); color: var(--gold-bright);
}
.pillar__icon svg { width: 21px; height: 21px; }
.pillar h4 { font-size: var(--fs-md); margin-bottom: 7px; color: var(--white); }
.pillar p { margin: 0; font-size: var(--fs-base); color: var(--muted); }

/* numbered list — deck style (gold index + gold keyword) */
.num-list { list-style: none; padding: 0; margin: 0; }
.num-list li {
  display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.num-list li:first-child { border-top: 1px solid var(--line); }
.num-list .idx { color: var(--gold); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.08em; }
.num-list b { color: var(--gold-bright); font-weight: 700; }
.num-list p { margin: 4px 0 0; color: var(--text); }

/* check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-size: var(--fs-base); color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(196,160,82,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C4A052' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.two-cols-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.two-cols-list li { margin: 0; }
/* larger, more prominent check lists */
.check-list--lg { gap: 16px; }
.check-list--lg li { font-size: var(--fs-md); padding-left: 48px; line-height: 1.35; }
.check-list--lg li::before { width: 33px; height: 33px; top: 4px; }

/* ============================================================
   Services (dark deck cards)
   ============================================================ */
/* Services carousel */
.services-carousel { position: relative; }
.services-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 16px; margin: -8px -2px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.services-track::-webkit-scrollbar { display: none; }
.services-track .service-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.carousel-arrow {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); background: transparent; color: var(--white);
  cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s, background 0.2s;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-bright); background: rgba(196,160,82,0.08); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }
/* The dot stays 8px visually, but the button is a 24x32 hit area — an 8px
   target is far too small to tap reliably on a phone. */
.carousel-dots { display: flex; align-items: center; gap: 4px; }
.carousel-dots button {
  min-width: 24px; height: 32px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
}
.carousel-dots button::before {
  content: ""; display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); transition: background 0.2s, width 0.2s;
}
.carousel-dots button.is-active::before { background: var(--gold); width: 22px; border-radius: 4px; }

.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(196,160,82,0.55); background: var(--surface-2); }
.service-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.services-cta { text-align: center; margin-top: 44px; }
.services-cta p { color: var(--muted); font-size: var(--fs-md); margin-bottom: 20px; }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.service-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(196,160,82,0.08); color: var(--gold-bright);
}
.service-card__icon svg { width: 23px; height: 23px; }
.service-card__num { font-size: var(--fs-sm); font-weight: 600; color: var(--gold); letter-spacing: 0.08em; }
.service-card__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.service-card h3 { font-size: var(--fs-md); margin-bottom: 10px; }
.service-card > p { font-size: var(--fs-base); color: var(--muted); margin-bottom: 16px; }
.service-card__results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service-card__results li { font-size: var(--fs-sm); padding-left: 22px; position: relative; color: var(--text); }
.service-card__results li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.service-card .btn { margin-top: auto; }

/* ============================================================
   Results / Industries / Geography
   ============================================================ */
/* Key-figures band: counts up once when scrolled into view (initStats) */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 0 0 52px; padding: 30px 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat__n {
  font-size: 38px; font-weight: 600; color: var(--white);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat__n--gold { color: var(--gold-bright); }
.stat__l { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }

.result-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.result-grid .result-item { flex: 0 0 calc((100% - 48px) / 4); }
.result-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--surface); }
.result-item svg { width: 26px; height: 26px; color: var(--gold-bright); margin-bottom: 14px; }
.result-item p { margin: 0; font-weight: 600; color: var(--white); font-size: var(--fs-base); }

/* white cards for industries (deck style) */
.industry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.industry-grid .industry { flex: 0 0 calc((100% - 48px) / 4); }
.industry {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; background: var(--paper); color: #0C1E33; min-height: 132px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.industry .industry__idx { position: absolute; top: 20px; left: 22px; font-size: var(--fs-xs); color: var(--gold-deep); font-weight: 700; letter-spacing: 0.08em; }
.industry .industry__icon { position: absolute; top: 18px; right: 20px; color: #16324f; }
.industry .industry__icon svg { width: 24px; height: 24px; }
.industry h4 { color: #0C1E33; font-size: var(--fs-base); margin: 40px 0 0; }

/* ============================================================
   Network map
   ============================================================ */
/* Full-bleed so the baked-in country labels read larger */
.network-map { margin: 8px calc(50% - 50vw) 0; padding: 0 20px; }
.network-map img { width: 100%; max-width: 1560px; height: auto; display: block; margin: 0 auto; }

/* --- interactive layer: markers, hover card, sphere filter --- */
.network-map__inner { position: relative; max-width: 1560px; margin: 0 auto; }
.network-map__inner img { width: 100%; height: auto; display: block; transition: opacity 0.25s ease; }
.network-map__inner.is-filtered img { opacity: 0.45; }

.map-markers { position: absolute; inset: 0; }
.mk {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.mk__dot {
  position: relative;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
/* Quiet "living network" pulse: a faint ring breathes outwards every ~4s.
   Three phase groups so the map shimmers gently instead of blinking in sync. */
@keyframes mkPulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.mk__dot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0;
  animation: mkPulse 4.2s ease-out infinite;
}
.mk:nth-child(3n)   .mk__dot::after { animation-delay: 1.4s; }
.mk:nth-child(3n+2) .mk__dot::after { animation-delay: 2.8s; }
.mk.is-off .mk__dot::after, .mk:hover .mk__dot::after { animation: none; opacity: 0; }
.mk:hover .mk__dot, .mk:focus-visible .mk__dot { transform: scale(1.5); box-shadow: 0 0 0 6px rgba(196, 160, 82, 0.3); }
.mk.is-on .mk__dot { background: var(--gold-bright); transform: scale(1.6); box-shadow: 0 0 0 7px rgba(228, 200, 122, 0.28); }
.mk.is-off .mk__dot { opacity: 0.18; transform: scale(0.7); box-shadow: none; }
/* Country name in real text — the map SVG carries no baked-in labels. */
.mk__label {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  /* Title case, no tracking: bold TRACKED CAPS only affects Latin/Cyrillic (Thai,
     Devanagari and CJK ignore uppercase), which made EN/RU labels read heavy and
     shouty next to the naturally light zh/hi/th rendering. Keep all five even. */
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  /* fixed line box so Thai/Devanagari marks don't make the label taller than Latin */
  line-height: 1;
  /* the name IS part of the button — hovering/clicking it must open the card */
  color: #E8EDF3; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(10, 25, 44, 0.95), 0 0 8px rgba(10, 25, 44, 0.8);
  transition: color 0.2s ease, opacity 0.2s ease;
}
/* label on the left where the right side is crowded (India, Chile) */
.mk--left .mk__label { left: auto; right: 22px; }
.mk:hover .mk__label, .mk:focus-visible .mk__label, .mk.is-on .mk__label { color: var(--gold-bright); }
.mk.is-off .mk__label { opacity: 0.22; }
/* letter-spacing breaks the combining marks in Thai and Devanagari */
.mk__label [data-lang="hi"], .mk__label [data-lang="th"] { letter-spacing: 0; }

.map-card {
  position: absolute; z-index: 5; width: 268px; padding: 16px 18px;
  border-radius: var(--radius); background: #0E2135; border: 1px solid var(--line-strong);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55); pointer-events: none;
}
.map-card__name { color: var(--white); font-size: var(--fs-base); font-weight: 700; margin-bottom: 10px; }
.map-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-card__list li { display: flex; gap: 9px; align-items: center; font-size: var(--fs-sm); color: var(--text); line-height: 1.3; }
.map-card__ico { flex: none; width: 17px; height: 17px; color: var(--gold); }
.map-card__ico svg { width: 100%; height: 100%; }

/* legend / filter */
.sphere-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 34px; }
.sphere {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font-family: inherit; font-size: var(--fs-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sphere:hover { border-color: var(--gold); color: var(--white); }
.sphere__ico { width: 18px; height: 18px; color: var(--gold); flex: none; }
.sphere__ico svg { width: 100%; height: 100%; }
.sphere__n { font-size: var(--fs-xs); font-weight: 700; color: var(--gold); }
.sphere.is-active { border-color: var(--gold); background: rgba(196, 160, 82, 0.14); color: var(--white); }

/* sphere icon row used on the mobile chips */
.sph-icons { display: inline-flex; gap: 5px; margin-left: 9px; }
.sph-ico { width: 15px; height: 15px; color: var(--muted); opacity: 0.28; }
.sph-ico svg { width: 100%; height: 100%; }
.sph-ico.is-on { color: var(--gold); opacity: 1; }

/* Mobile-only region chips (the detailed map is unreadable on a phone) */
.network-regions { display: none; }
.mchip__name { white-space: nowrap; }
.mchip.is-off { opacity: 0.32; }
.region { margin-bottom: 24px; }
.region:last-child { margin-bottom: 0; }
.region__name { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 13px; }
.region__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.mchip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-size: var(--fs-sm); font-weight: 500; color: var(--white); transition: opacity 0.2s; }

/* ============================================================
   Photo gallery (selected cases)
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--navy-3); aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.shot figcaption { z-index: 2; }
.shot:hover img, .shot:focus-within img { transform: scale(1.04); }
/* Editorial style: captions are always visible on a bottom gradient with a short
   gold rule — reads like a magazine spread, and mobile visitors (no hover) finally
   see what each event is. Photos themselves stay full colour. */
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 52px 16px 14px;
  font-size: var(--fs-xs); letter-spacing: 0.06em; color: #EAF0F6; font-weight: 500;
  background: linear-gradient(0deg, rgba(6,15,26,0.94) 26%, rgba(6,15,26,0.55) 60%, transparent);
}
/* the rule sits on the visible language span only (hidden spans render no ::before) */
.shot figcaption [data-lang]::before {
  content: ""; display: block; width: 26px; height: 2px;
  background: var(--gold); margin-bottom: 8px;
}

/* ============================================================
   Partners
   ============================================================ */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px;
  background: var(--surface); text-align: center;
}
.partner__badge {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(196,160,82,0.10); border: 1px solid var(--line); color: var(--gold-bright);
}
.partner__badge svg { width: 28px; height: 28px; }
.partner h4 { font-size: var(--fs-base); margin-bottom: 6px; }
.partner p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* ============================================================
   Process
   ============================================================ */
/* "Why us" list inside the merged section */
.why-list { max-width: 940px; margin: 0 auto; grid-template-columns: 1fr 1fr; gap: 18px 44px; }

/* process nested under "Why clients choose us" */
.process-block { margin-top: 70px; padding-top: 54px; border-top: 1px solid var(--line); }
.process-block__label {
  text-align: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 42px;
}

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 0 6px; }
.step__num {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 20px;
  font-size: var(--fs-md); font-weight: 700; color: var(--gold);
  background: transparent; border: 1px solid var(--gold);
}
.step h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--fs-base); }

/* ============================================================
   Contacts + CTA
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.contact-grid--single { grid-template-columns: minmax(0, 460px); }

/* Board / team */
.board-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.member { margin: 0; width: 220px; text-align: center; }
.member__photo {
  width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); background: var(--navy-3);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-family: var(--font-display); color: var(--white); font-size: var(--fs-base); font-weight: 600; }
.member__role { color: var(--gold); font-size: var(--fs-xs); letter-spacing: 0.05em; margin-top: 5px; }
.contact-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--paper); border-radius: var(--radius-lg); padding: 26px 28px;
}
.contact-card__avatar {
  width: 78px; height: 78px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #12233a, #0a192c); color: var(--gold-bright);
  font-weight: 800; font-size: var(--fs-md); letter-spacing: 1px; border: 2px solid var(--gold);
  overflow: hidden;
}
.contact-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-card__name { font-family: var(--font-display); color: #0C1E33; font-size: var(--fs-base); font-weight: 600; margin-bottom: 10px; }
.contact-card__rows { display: grid; gap: 0; }
/* phone/email are the key tap targets — padding gives them a ~38px hit area */
.contact-card__rows a, .contact-card__rows span { display: flex; gap: 10px; font-size: var(--fs-sm); color: #33475B; padding: 7px 0; }
.contact-card__rows b { color: var(--gold-deep); font-weight: 700; min-width: 76px; }
.contact-card__rows a:hover { color: var(--gold-deep); }

.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; padding: 60px; text-align: center;
  background:
    radial-gradient(680px 300px at 100% 0, rgba(196,160,82,0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border: 1px solid var(--line);
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 2.6vw, 30px); }
.cta-band p { color: var(--text); font-size: var(--fs-md); max-width: 640px; margin: 0 auto 28px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-3); color: var(--muted); padding: 58px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-tagline { max-width: 340px; margin-top: 16px; font-size: var(--fs-sm); letter-spacing: 0.02em; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { color: var(--white); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
/* padding, not margin, so the tappable area is ~38px tall on a phone */
.footer-col a { display: block; color: var(--muted); font-size: var(--fs-sm); padding: 7px 0; margin-bottom: 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-strip {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ============================================================
   Brief page
   ============================================================ */
.brief-hero { position: relative; overflow: hidden; padding: 72px 0 60px; border-bottom: 1px solid var(--line); }
.brief-hero__bg { position: absolute; inset: 0; z-index: 0; }
.brief-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.brief-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 40%, rgba(10,25,44,0.7)); }
.brief-hero .container { position: relative; z-index: 1; }
.brief-hero h1 { color: var(--white); font-size: clamp(30px, 3.6vw, 40px); }
.brief-hero p { color: var(--text); font-size: var(--fs-base); max-width: 660px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; }
.back-link:hover { color: var(--gold-bright); }

.brief-layout { display: grid; grid-template-columns: 264px 1fr; gap: 48px; align-items: start; }
.brief-toc { position: sticky; top: 96px; }
.brief-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.brief-toc a {
  display: block; padding: 9px 14px; border-radius: 10px; font-size: var(--fs-sm); color: var(--muted);
  transition: all 0.15s; border-left: 2px solid transparent;
}
.brief-toc a:hover, .brief-toc a.is-active { background: var(--surface); color: var(--white); border-left-color: var(--gold); }

.form-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 34px 30px; margin-bottom: 24px; scroll-margin-top: 90px;
}
/* accordion: service sections stay collapsed until their checkbox is ticked */
.form-section[hidden] { display: none;
}
.form-section > h2 { font-size: var(--fs-lg); margin-bottom: 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
/* a tracked label, like .eyebrow — stays in the sans even inside a serif heading */
.form-section__tag { font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.form-section > p.sec-note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 24px; }
.form-section__expected { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: rgba(196,160,82,0.10); border: 1px solid rgba(196,160,82,0.32); font-size: var(--fs-sm); color: var(--text); }
.form-section__expected b { color: var(--gold-bright); }

.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; color: var(--white); margin-bottom: 8px; font-size: var(--fs-sm); }
.field .req { color: #E08A6A; }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="tel"], .field input[type="number"], .field textarea, .field select {
  /* 16px min: iOS Safari zooms the page when focusing a smaller field */
  width: 100%; font-family: inherit; font-size: 16px; color: var(--white);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: rgba(0,0,0,0.22); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5f6f80; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,160,82,0.18); background: rgba(0,0,0,0.32);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.choice-group { display: grid; gap: 10px; margin-top: 4px; }
.choice-group.cols-2 { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: var(--fs-sm);
  color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--gold); }
.choice input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(196,160,82,0.10); color: var(--white); }

.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }

.brief-thanks { display: none; background: rgba(196,160,82,0.10); border: 1px solid rgba(196,160,82,0.4); border-radius: var(--radius-lg); padding: 34px; text-align: center; margin-top: 20px; }
.brief-thanks.show { display: block; }
.brief-thanks h2 { color: var(--white); }
.brief-thanks p { color: var(--text); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(12, 30, 51, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
              border-color 0.2s ease, color 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { border-color: var(--gold); color: var(--gold-bright); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 620px) {
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ============================================================
   Interactions: header state, scroll-reveal, lightbox
   ============================================================ */
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); border-bottom-color: var(--line-strong); }

/* Reveal-on-scroll. Built on a keyframe animation, NOT transitions, for two reasons:
   1) adding .reveal at init must hide instantly — a transition would visibly fade
      content out on load (~100 parasite animations at once);
   2) cards carry their own hover transitions (transform 0.2s) — a reveal transition
      would either animate the hiding or override the hover timing. Keyframes touch
      neither. :not(.is-in) also mutes component transitions while hidden. */
.reveal:not(.is-in) { transition: none; }
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; animation: revealIn 0.7s ease backwards; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(16px); }
}

/* brief section highlight when arriving from a service card */
.form-section.is-target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.18); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(5, 12, 20, 0.86); backdrop-filter: blur(6px);
}
.lightbox.show { display: flex; animation: lb-in 0.25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { margin: 0; max-width: 1100px; text-align: center; }
.lightbox__fig img {
  max-width: 100%; max-height: 82vh; border-radius: var(--radius);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
/* caption under the enlarged photo — same editorial style as the gallery:
   short gold rule above the text */
.lightbox__fig figcaption {
  margin-top: 18px; color: #EAF0F6; font-size: var(--fs-sm);
  letter-spacing: 0.06em; font-weight: 500;
}
.lightbox__fig figcaption::before {
  content: ""; display: block; width: 26px; height: 2px;
  background: var(--gold); margin: 0 auto 10px;
}
.lightbox__fig figcaption:empty { display: none; }
.lightbox__close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04);
  color: var(--white); font-size: 26px; line-height: 1; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.10); border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; animation: none; }
  .lightbox.show { animation: none; }
  .mk__dot::after { animation: none; opacity: 0; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__bg::after { background: linear-gradient(0deg, var(--navy) 30%, rgba(10,25,44,0.75)); }
  .motif { max-width: 360px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .services-track .service-card { flex-basis: calc((100% - 20px) / 2); }
  .result-grid .result-item, .industry-grid .industry { flex-basis: calc((100% - 16px) / 2); }
  .partner-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .brief-layout { grid-template-columns: 1fr; }
  .brief-toc { display: none; }
  .nav__toggle { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* compact brand + no nav CTA so the header never overflows on tablets/phones */
  .brand__peak { width: 28px; height: 33px; }
  .brand__name { font-size: 13px; letter-spacing: 0.05em; line-height: 1.22; }
  .brand__name small { display: none; }
  .nav { gap: 12px; }
  .nav__actions .btn { display: none; }
  /* mobile menu as a dropdown panel */
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #0E2135; border-bottom: 1px solid var(--line-strong);
    padding: 6px 24px 14px; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .site-header.nav-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
}
/* Country labels are real 13px text, so they need a map at least ~1060px wide to
   sit side by side without colliding. Narrower than that, show the region chips. */
@media (max-width: 1100px) {
  .network-map { display: none; }
  .network-regions { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .stat__n { font-size: 32px; }
  .shot figcaption { padding: 38px 14px 12px; }
  /* 9 dots + two 48px arrows must fit a 375px screen */
  .carousel-controls { gap: 12px; }
  .carousel-dots button { min-width: 20px; }
  .section { padding: 66px 0; }
  .services-track .service-card { flex-basis: 85%; }
  .result-grid .result-item, .industry-grid .industry { flex-basis: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .field-grid, .choice-group.cols-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .gallery { grid-template-columns: 1fr; }
  .nav__actions .btn { display: none; }
  /* map chips also cover 620-900px — see the ≤900px rule below */
  /* contact cards: stack so long phone/email don't overflow */
  .contact-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .contact-card__avatar { width: 64px; height: 64px; }
  .contact-card__rows a, .contact-card__rows span { flex-wrap: wrap; gap: 2px 10px; word-break: break-word; }
}
