/* ================================================================
   MetaNex Redesign 3.0 — Navy & Gold Premium Theme
   Ported from client-provided reference design, adapted for the
   real 3-division / 16-service site structure.
   ================================================================ */
:root{
  --mx-navy:#141c2e;
  --mx-navy2:#1c2740;
  --mx-navy3:#273659;
  --mx-white:#f8fafc;
  --mx-muted:#aebbd0;
  --mx-gold:#e2ab47;
  --mx-gold2:#eecf96;
  --mx-line:rgba(255,255,255,.12);
}

.mx-page { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #10213a; overflow-x: hidden; }
/* Reset: neutralize legacy Bootstrap/module link-color and text-decoration
   defaults everywhere inside our new sections, so stray <a> tags or
   inherited styles never show through as unintended blue/underlined text.
   Every component rule below sets its own explicit color on top of this. */
.mx-page a { color: inherit; text-decoration: none; }
.mx-page p, .mx-page span, .mx-page li, .mx-page div { color: inherit; }
.mx-page h1, .mx-page h2, .mx-page h3 { font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.mx-gold-text { color: var(--mx-gold); }
.mx-container { width: min(1180px, calc(100% - 40px)); margin: auto; }

/* ---- Hero ---- */
.mx-hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 42%, rgba(26,75,124,.52), transparent 29%),
    radial-gradient(circle at 16% 90%, rgba(15,53,92,.55), transparent 30%),
    linear-gradient(115deg, #0b0f19 0%, #141c2e 54%, #0b0f19 100%);
  padding: 140px 0 60px;
}
.mx-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.mx-hero-grid { position: relative; z-index: 2; min-height: 560px; display: grid; grid-template-columns: 46% 54%; align-items: center; gap: 30px; }
@media (max-width: 991px) { .mx-hero-grid { grid-template-columns: 1fr; } }
.mx-eyebrow { color: #e8edf5; font-size: 11px; letter-spacing: .32em; margin-bottom: 18px; text-transform: uppercase; }
.mx-eyebrow i { display: inline-block; width: 42px; height: 1px; background: var(--mx-gold2); vertical-align: middle; margin-left: 12px; }
.mx-hero h1 { max-width: 610px; font: 700 clamp(38px,5.2vw,66px)/1.05 "Manrope", sans-serif; letter-spacing: -.03em; color: #fff; }
.mx-hero-copy { max-width: 520px; color: #c8d4e2; line-height: 1.7; font-size: 15px; margin: 22px 0 26px; }
.mx-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.mx-btn { border: 0; border-radius: 9px; padding: 15px 24px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 11px; cursor: pointer; transition: .3s; text-decoration: none; }
.mx-btn.mx-gold { background: linear-gradient(135deg, var(--mx-gold2), var(--mx-gold)); color: #061426; box-shadow: 0 12px 35px rgba(217,162,79,.23); }
.mx-btn.mx-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(217,162,79,.35); color: #061426; }
.mx-btn.mx-outline { border: 1px solid #fff8; color: #fff; background: #ffffff08; }
.mx-btn.mx-outline:hover { background: #fff; color: #07172b; }
.mx-trust { display: flex; align-items: center; gap: 13px; margin-top: 26px; color: #dce5ef; font-size: 13px; }
.mx-avatar-stack { display: flex; }
.mx-avatar-stack img { width: 34px; height: 34px; border-radius: 50%; margin-left: -8px; border: 2px solid #141c2e; object-fit: cover; background: #64748b; }
.mx-avatar-stack img:first-child { margin-left: 0; }

/* ---- Hero visual (globe + orbit) ---- */
.mx-visual { height: 560px; position: relative; display: grid; place-items: center; }
@media (max-width: 767px) {
  .mx-hero { padding: 130px 0 40px; min-height: auto; }
  .mx-hero-grid { min-height: auto; gap: 10px; }
  .mx-visual { height: 340px; }
  .mx-globe { width: min(240px, 62vw); }
  .mx-float-tag { min-width: 118px; padding: 8px 11px; }
  .mx-float-tag b { font-size: 12px; }
  .mx-float-tag small { font-size: 10px; }
}
.mx-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(68,139,210,.24), transparent 64%); filter: blur(10px); animation: mxBreathe 5s ease-in-out infinite; }
@keyframes mxBreathe { 50% { transform: scale(1.08); opacity: .75; } }
.mx-globe { position: relative; width: min(400px, 74vw); aspect-ratio: 1; animation: mxFloat 6s ease-in-out infinite; filter: drop-shadow(0 0 60px rgba(74,153,232,.35)); }
.mx-globe canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
@keyframes mxFloat { 50% { transform: translateY(-9px); } }
@keyframes mxSpin { to { transform: rotate(341deg); } }
.mx-float-tag { position: absolute; z-index: 4; min-width: 150px; padding: 12px 15px; border-radius: 12px; background: rgba(4,17,33,.78); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 350ms ease, transform 350ms ease, visibility 350ms; pointer-events: none; }
.mx-float-tag.mx-tag-active { opacity: 1; visibility: visible; transform: translateY(0); animation: mxTagFloat 5s ease-in-out infinite; pointer-events: auto; }
.mx-float-tag b { display: block; color: #fff; font-size: 13px; }
.mx-float-tag small { display: block; color: #b9c7d7; font-size: 11px; margin-top: 3px; }
.mx-tag-icon { font-size: 20px; float: left; margin-right: 10px; color: #f4ca7b; }
.mx-tag1 { top: 6%; left: 0; }
.mx-tag2 { top: 26%; right: -2%; animation-delay: .7s; }
.mx-tag3 { bottom: 20%; left: 2%; animation-delay: 1.1s; }
.mx-tag4 { bottom: 10%; right: 2%; animation-delay: 1.7s; }
@keyframes mxTagFloat { 50% { transform: translateY(-8px); } }
@media (max-width: 767px) { .mx-float-tag:not(.mx-tag-active) { display: none; } }

/* ---- Reveal on scroll ---- */
.mx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.mx-reveal.mx-show { opacity: 1; transform: none; }

/* ---- Generic section ---- */
.mx-section { padding: 90px 0; }
@media (max-width: 767px) {
  .mx-section { padding: 44px 0; }
}
.mx-white { background: #f7f8fa; }
.mx-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 44px; }
@media (max-width: 767px) { .mx-section-head { grid-template-columns: 1fr; } }
.mx-kicker { font-size: 11px; letter-spacing: .28em; color: var(--mx-gold); margin-bottom: 12px; text-transform: uppercase; }
.mx-kicker:after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--mx-gold); margin-left: 12px; vertical-align: middle; }
.mx-page h2 { font: 700 clamp(32px,4vw,46px)/1.05 "Manrope", sans-serif; letter-spacing: -.03em; color: #07162d; }
.mx-page .mx-section-desc { font-size: 14.5px; line-height: 1.75; color: #53657e !important; max-width: 500px; text-decoration: none !important; }

/* ---- Division/service cards ---- */
.mx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 991px) { .mx-cards { grid-template-columns: 1fr; } }
.mx-card { position: relative; background: rgba(255,255,255,.9); border: 1px solid #cbd5e122; border-radius: 16px; padding: 30px; min-height: 240px; overflow: hidden; transition: .35s; box-shadow: 0 8px 35px rgba(7,22,45,.05); display: block; text-decoration: none; }
.mx-card:before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -100px; top: -100px; background: rgba(217,162,79,.11); transition: .45s; }
.mx-card:hover { transform: translateY(-8px); border-color: rgba(217,162,79,.4); box-shadow: 0 25px 55px rgba(7,22,45,.14); }
.mx-card:hover:before { transform: scale(1.45); }
.mx-card-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #f0eadf; color: #0a1c34; font-size: 24px; margin-bottom: 20px; }
.mx-card h3 { margin: 0 0 8px; font: 700 21px "Manrope", sans-serif; color: #0a1830; }
.mx-card p.mx-card-tag { color: var(--mx-gold, #b17c38); font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.mx-card p { margin: 0; color: #617189; font-size: 13.5px; line-height: 1.6; }
.mx-learn { display: inline-flex; margin-top: 18px; color: #a16f34; font-size: 13px; font-weight: 800; gap: 8px; }
.mx-learn span { transition: .25s; }
.mx-card:hover .mx-learn span { transform: translateX(5px); }

/* ---- Stats strip ---- */
.mx-stats { background: #141c2e; color: #fff; position: relative; overflow: hidden; }
.mx-stats:before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent, #ffffff04, transparent); transform: translateX(-100%); animation: mxSweep 7s linear infinite; }
@keyframes mxSweep { to { transform: translateX(100%); } }
.mx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
@media (max-width: 767px) { .mx-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.mx-stat { padding: 34px 25px; display: flex; align-items: center; gap: 18px; border-right: 1px solid #ffffff15; }
.mx-stat:last-child { border-right: 0; }
@media (max-width: 767px) { .mx-stat:nth-child(2n) { border-right: 0; } }
.mx-stat-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(240,194,110,0.12); border: 1px solid rgba(240,194,110,0.35); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #f0c26e; }
.mx-stat strong { font-size: 28px; font-weight: 700; display: block; line-height: 1.2; }
.mx-stat span { font-size: 12.5px; color: #aebbd0; letter-spacing: 0.02em; }

/* ---- About section ---- */
.mx-about { background: radial-gradient(circle at 80% 45%, rgba(32,83,132,.42), transparent 30%), linear-gradient(120deg, #141c2e, #202d4a 65%, #141c2e); color: #fff; position: relative; overflow: hidden; }
.mx-about:before { content: ""; position: absolute; width: 650px; height: 650px; border: 1px solid #ffffff0d; border-radius: 50%; right: -260px; top: -210px; animation: mxSlowspin 30s linear infinite; }
@keyframes mxSlowspin { to { transform: rotate(360deg); } }
.mx-about-grid { display: grid; grid-template-columns: 45% 55%; gap: 50px; align-items: center; position: relative; }
@media (max-width: 991px) { .mx-about-grid { grid-template-columns: 1fr; } }
.mx-about .mx-kicker { color: var(--mx-gold); }
.mx-about h2 { color: #fff; }
.mx-about p { color: #c4d0df; line-height: 1.75; font-size: 14px; max-width: 510px; }
.mx-about-visual { min-height: 400px; border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(135deg, rgba(4,17,31,.78), rgba(4,17,31,.42)), radial-gradient(circle at 65% 40%, rgba(235,193,117,.18), transparent 22%), linear-gradient(145deg, #132b43, #071321 62%, #020a13); border: 1px solid #ffffff18; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.mx-office-lines { position: absolute; inset: 0; overflow: hidden; }
.mx-office-lines span { position: absolute; height: 1px; width: 160%; left: -30%; background: linear-gradient(90deg, transparent, #e8bb72aa, transparent); transform: rotate(-20deg); animation: mxLineMove 5s linear infinite; }
.mx-office-lines span:nth-child(1) { top: 28%; animation-delay: 0s; }
.mx-office-lines span:nth-child(2) { top: 55%; animation-delay: 1.5s; }
.mx-office-lines span:nth-child(3) { top: 75%; animation-delay: 3s; }
@keyframes mxLineMove { from { transform: translateX(-30%) rotate(-20deg); } to { transform: translateX(35%) rotate(-20deg); } }
.mx-office-logo { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); width: 200px; }
.mx-office-logo img { width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .92; }
.mx-feature-panel { position: absolute; right: 18px; top: 18px; bottom: 18px; width: 200px; background: rgba(3,15,29,.82); border: 1px solid #ffffff18; border-radius: 14px; backdrop-filter: blur(14px); padding: 20px; }
@media (max-width: 767px) { .mx-feature-panel { position: static; width: auto; margin-top: 20px; } }
.mx-feature-panel div { display: flex; gap: 11px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #ffffff12; color: #dbe5ef; font-size: 12px; }
.mx-feature-panel div:last-child { border-bottom: 0; }
.mx-feature-panel b { color: #efc373; font-size: 18px; }
.mx-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 600px) { .mx-pillars { grid-template-columns: 1fr; } }
.mx-pillar { border-top: 1px solid #ffffff1c; padding-top: 12px; font-size: 12px; }
.mx-pillar span { display: block; color: #aebbd0; font-size: 10px; margin-top: 5px; line-height: 1.5; }

/* ---- Process ---- */
.mx-process { background: #f7f8fa; }
.mx-process-grid { display: grid; grid-template-columns: 34% 66%; gap: 30px; align-items: center; }
@media (max-width: 991px) { .mx-process-grid { grid-template-columns: 1fr; } }
.mx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 767px) { .mx-steps { grid-template-columns: 1fr 1fr; } }
.mx-step { position: relative; padding: 15px 10px; }
.mx-step:not(:last-child):after { content: "→"; position: absolute; right: -8px; top: 27px; color: #163d78; font-size: 20px; }
@media (max-width: 767px) { .mx-step:nth-child(2n):after, .mx-step:last-child:after { display: none; } }
.mx-step-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #f0eadf; color: #0a1b33; font-size: 22px; margin-bottom: 14px; }
.mx-step b { display: block; color: #0a1830; font-size: 15px; }
.mx-step small { display: block; color: #63748b; font-size: 11px; line-height: 1.5; margin-top: 6px; }

/* ---- CTA ---- */
.mx-cta { min-height: 320px; color: #fff; display: flex; align-items: center; background: radial-gradient(circle at 80% 20%, rgba(223,176,93,.18), transparent 24%), linear-gradient(110deg, #111827, #202d4a 55%, #0b0f19); position: relative; overflow: hidden; }
@media (max-width: 767px) {
  .mx-cta { min-height: 0; padding: 48px 0; }
}
.mx-cta:before, .mx-cta:after { content: ""; position: absolute; border: 1px solid rgba(224,180,99,.22); border-radius: 50%; width: 680px; height: 240px; right: -140px; top: -30px; transform: rotate(-13deg); }
.mx-cta:after { width: 760px; height: 270px; right: -180px; top: 0; border-color: #ffffff0c; }
.mx-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.mx-cta p { color: #b9c7d7; font-size: 14px; margin: 14px 0 26px; }

/* ---- Case study cards (navy/gold variant) ---- */
.mx-case-card { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid #e8e4da; }
.mx-case-card__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--mx-gold, #b17c38); text-transform: uppercase; margin-bottom: 12px; }
.mx-case-card h4 { font: 700 19px "Manrope", sans-serif; margin-bottom: 10px; color: #0a1830; }
.mx-case-card p { font-size: 13.5px; color: #617189; line-height: 1.65; }

/* ---- FAQ (navy/gold variant) ---- */
.mx-faq-item { border-bottom: 1px solid #e8e4da; padding: 22px 0; cursor: pointer; }
.mx-faq-item__q { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; color: #0a1830; font-family: "Manrope", sans-serif; }
.mx-faq-item__icon { transition: transform 300ms ease; color: var(--mx-gold, #b17c38); font-size: 20px; }
.mx-faq-item.mx-open .mx-faq-item__icon { transform: rotate(45deg); }
.mx-faq-item__a { max-height: 0; overflow: hidden; transition: max-height 350ms ease; font-size: 13.5px; color: #617189; line-height: 1.7; }
.mx-faq-item.mx-open .mx-faq-item__a { max-height: 300px; padding-top: 14px; }

/* ---- Logo strip ---- */
.mx-logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; opacity: .8; }
.mx-logo-strip img { height: 30px; width: auto; filter: grayscale(1); transition: filter 300ms ease, opacity 300ms ease; opacity: .7; }
.mx-logo-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ================================================================
   Technologies marquee — continuous right-to-left scrolling strip
   ================================================================ */
.mx-tech-strip {
  padding: 50px 0 40px;
  background: #fafbfe;
  border-bottom: 1px solid #ececf4;
  text-align: center;
}
.mx-tech-strip__heading {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #10213a;
  margin: 0 0 28px;
}
.mx-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mx-marquee__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: mxMarqueeScroll 28s linear infinite;
}
.mx-marquee:hover .mx-marquee__track {
  animation-play-state: paused;
}
.mx-marquee__item {
  flex: 0 0 auto;
  width: 170px;
  height: 78px;
  padding: 14px 20px;
  border: 1px solid #e3e7f3;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mx-marquee__item img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes mxMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mx-tech-strip__note {
  font-size: 11px;
  color: #a3adc2;
  margin: 22px 0 0;
}
@media (max-width: 767px) {
  .mx-tech-strip__heading { font-size: 13px; }
  .mx-marquee__item { width: 140px; height: 64px; padding: 10px 16px; }
  .mx-marquee__item img { max-height: 28px; }
}

/* ================================================================
   Final CTA section (footer) — replaces the old mismatched bright
   blue "newsletter" section with one matching the Navy & Gold
   design used throughout the rest of the site.
   ================================================================ */
.mx-final-cta {
  background: radial-gradient(circle at 20% 20%, rgba(217,162,79,.08), transparent 50%), linear-gradient(135deg, var(--mx-navy), var(--mx-navy3));
  padding: 80px 0;
  text-align: center;
}
.mx-final-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.mx-final-cta__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.mx-final-cta__text {
  color: #aebbd0;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 34px;
}
.mx-final-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 575px) {
  .mx-final-cta { padding: 56px 0; }
  .mx-final-cta__actions { flex-direction: column; align-items: stretch; }
}

/* ================================================================
   Hero v2 — premium gateway visual, real responsive layout built
   around the supplied reference image (not just a background swap —
   full layout, nav integration, animation and mobile composition).
   ================================================================ */
.mx-hero-v2 {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 48px;
  color: #fff;
}
.mx-hero-v2 {
  background: var(--mx-navy);
}
.mx-hero-v2__bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 88% bottom;
  z-index: 0;
  transform: scale(1.0);
  animation: mxHeroBgIn 1.6s ease-out forwards;
}
@keyframes mxHeroBgIn {
  from { transform: scale(1.03); opacity: 0; }
  to   { transform: scale(1.0); opacity: 1; }
}
.mx-hero-v2__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(6,10,18,.94) 0%, rgba(6,10,18,.82) 28%, rgba(6,10,18,.35) 52%, rgba(6,10,18,.08) 68%, transparent 82%),
    linear-gradient(0deg, rgba(4,8,14,.55) 0%, transparent 30%);
}
#mx-particles-v2 {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.mx-hero-v2 .mx-container {
  position: relative;
  z-index: 3;
}
.mx-hero-v2__grid {
  padding: 20px 0 24px;
}
.mx-hero-v2__content {
  max-width: 560px;
  opacity: 0;
  transform: translateY(18px);
  animation: mxHeroContentIn 900ms ease-out 400ms forwards;
}
@keyframes mxHeroContentIn {
  to { opacity: 1; transform: translateY(0); }
}
.mx-hero-v2__title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  margin: 14px 0 18px;
  color: #fff;
}
.mx-hero-v2__copy {
  font-size: 16px;
  line-height: 1.75;
  color: #cfd7e3;
  max-width: 460px;
  margin-bottom: 26px;
}

/* Vertical brand message, right edge — subtle, never competes with headline */
.mx-hero-v2__vertical-text {
  position: absolute;
  right: 20px;
  top: 130px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  opacity: .8;
}
.mx-hero-v2__vertical-text span {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #f1f4f9;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.6);
}
.mx-hero-v2__vertical-text em {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--mx-gold);
  margin: 10px 0 10px auto;
  opacity: .6;
  font-style: normal;
}
.mx-hero-v2__vertical-sub {
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 1.6;
  color: var(--mx-gold2);
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.6);
}

/* Stats bar at the base of the hero */
.mx-hero-v2__stats {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(4,8,14,.55);
  backdrop-filter: blur(6px);
  padding: 16px 0;
  opacity: 0;
  animation: mxHeroContentIn 900ms ease-out 800ms forwards;
}
.mx-hero-v2__stats-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
}
.mx-hero-v2__stat-group { display: flex; align-items: center; }
.mx-hero-v2__stat-label {
  font-size: 11px;
  letter-spacing: .14em;
  color: #8a94a6;
  text-transform: uppercase;
}
.mx-hero-v2__stat {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mx-hero-v2__stat strong {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}
.mx-hero-v2__stat span {
  font-size: 12px;
  color: #9aa4b5;
  margin-top: 2px;
}
.mx-hero-v2__stat-tagline {
  margin-left: auto;
  font-size: 13px;
  color: #9aa4b5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mx-hero-v2__globe-icon { color: var(--mx-gold); font-size: 15px; }

/* Ambient ultra-subtle glow pulse behind the gateway opening */
.mx-hero-v2__bg::after {
  content: "";
}

@media (max-width: 1199px) {
  .mx-hero-v2__vertical-text { display: none; }
  .mx-hero-v2__bg { background-position: 70% center; }
}

@media (max-width: 991px) {
  .mx-hero-v2__stats-inner { gap: 24px 32px; }
  .mx-hero-v2__stat-tagline { margin-left: 0; width: 100%; order: 10; }
}

/* --------------------------------------------------------------
   Mobile — dedicated composition, not a shrunk desktop layout.
   Headline/copy/CTA first, image as a block below (not a
   full-bleed background), simplified stats.
   -------------------------------------------------------------- */
@media (max-width: 767px) {
  .mx-hero-v2 {
    min-height: auto;
    display: block;
    padding-top: 108px;
    background: var(--mx-navy);
  }
  .mx-hero-v2__bg {
    position: static;
    inset: auto;
    height: 360px;
    width: 100%;
    background-position: 58% center;
    transform: none;
    animation: none;
    order: 3;
  }
  .mx-hero-v2__scrim { display: none; }
  #mx-particles-v2 { display: none; }
  .mx-hero-v2 > .mx-container { display: contents; }
  .mx-hero-v2__grid { padding: 24px 16px 0; order: 1; }
  .mx-hero-v2__content { max-width: none; animation: none; opacity: 1; transform: none; }
  .mx-hero-v2__title { font-size: 34px; }
  .mx-hero-v2__copy { max-width: none; margin-bottom: 24px; }
  .mx-hero-v2__actions,
  .mx-hero-v2 .mx-actions { flex-direction: column; align-items: stretch; margin-bottom: 20px; }
  .mx-hero-v2__stats {
    order: 4;
    animation: none;
    opacity: 1;
    padding: 18px 16px;
  }
  .mx-hero-v2__stats-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mx-hero-v2__stat-tagline { order: 0; margin: 0 0 6px; }
  .mx-hero-v2 {
    display: flex;
    flex-direction: column;
  }
}

/* ---- Global Footprint (world map section) ---- */
.mx-footprint {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background: #f7f5f0;
  color: #10213a;
  text-align: center;
}
@media (max-width: 767px) {
  .mx-footprint { padding: 48px 0 44px; }
}
.mx-footprint .mx-kicker { justify-content: center; display: inline-flex; align-items: center; }
.mx-footprint h2 { font-size: clamp(28px, 3.6vw, 44px); color: #10213a; margin-top: 4px; }
.mx-footprint-sub { max-width: 560px; margin: 16px auto 0; color: #5b6a80; font-size: 14.5px; line-height: 1.7; }

.mx-footprint-map {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  margin: 52px auto 0;
  line-height: 0;
}
.mx-map-svg { width: 100%; height: auto; display: block; }

.mx-map-country {
  fill: var(--mx-navy, #141c2e);
  stroke: #f7f5f0;
  stroke-width: 0.6;
}

.mx-map-arc {
  fill: none;
  stroke: var(--mx-gold2, #eecf96);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .95;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: mx-map-draw 1.6s ease forwards;
  animation-delay: var(--mx-delay, 0s);
  filter: drop-shadow(0 0 3px rgba(226,171,71,.65));
}
@media (prefers-reduced-motion: reduce) {
  .mx-map-arc { animation: none; stroke-dashoffset: 0; }
  .mx-map-dot, .mx-map-hub-ring { animation: none !important; opacity: 1 !important; }
}
@keyframes mx-map-draw {
  to { stroke-dashoffset: 0; }
}

.mx-map-dot { opacity: 0; animation: mx-map-fade-in .5s ease forwards; animation-delay: var(--mx-delay, 0s); }
@keyframes mx-map-fade-in { to { opacity: 1; } }
.mx-map-dot-core { fill: var(--mx-gold, #e2ab47); stroke: #f7f5f0; stroke-width: 1.5; }
.mx-map-dot-pulse {
  fill: none;
  stroke: var(--mx-gold, #e2ab47);
  stroke-width: 1.2;
  opacity: .55;
  transform-origin: center;
  animation: mx-map-pulse 2.6s ease-out infinite;
}
@keyframes mx-map-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.4); opacity: 0; }
}

.mx-map-hub-core { fill: var(--mx-gold, #e2ab47); stroke: #f7f5f0; stroke-width: 1.5; }
.mx-map-hub-ring {
  fill: none;
  stroke: var(--mx-gold, #e2ab47);
  stroke-width: 1.2;
  opacity: .5;
  transform-origin: center;
  animation: mx-map-pulse 2.4s ease-out infinite;
}
.mx-map-hub-ring--2 { animation-delay: 1.2s; }

@media (max-width: 767px) {
  .mx-footprint-map { margin: 34px auto 0; }
}

/* ---- Inner page hero (About / Careers / Insights / Contact) ---- */
.mx-page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: linear-gradient(120deg, var(--mx-navy), var(--mx-navy3) 65%, var(--mx-navy));
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.mx-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.mx-page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,28,46,.92), rgba(39,54,89,.82) 65%, rgba(20,28,46,.92));
  z-index: 1;
}
.mx-page-hero > .mx-container { position: relative; z-index: 2; }
@media (max-width: 767px) {
  .mx-page-hero { padding: 118px 0 48px; }
}
.mx-page-hero .mx-eyebrow { justify-content: center; display: inline-flex; align-items: center; color: var(--mx-gold2, #eecf96); }
.mx-page-hero__title { font: 700 clamp(30px,4.2vw,50px)/1.1 "Manrope", sans-serif; letter-spacing: -.03em; color: #fff; margin: 6px 0 18px; }
.mx-page-hero__copy { max-width: 620px; margin: 0 auto; color: #c4d0df; font-size: 15px; line-height: 1.75; }

/* ---- Mission / Vision / Values cards ---- */
.mx-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .mx-values-grid { grid-template-columns: 1fr; } }
.mx-value-card { background: #fff; border: 1px solid #ecedf1; border-radius: 16px; padding: 32px 26px; box-shadow: 0 18px 40px rgba(15,26,45,.05); }
.mx-value-card .mx-value-icon { font-size: 26px; color: var(--mx-gold, #e2ab47); margin-bottom: 14px; }
.mx-value-card h3 { font: 700 19px "Manrope", sans-serif; color: #10213a; margin-bottom: 10px; }
.mx-value-card p { font-size: 13.5px; line-height: 1.7; color: #5b6a80; }

/* ---- Light-background pillar variant (used on light sections like About > Why Choose Us) ---- */
.mx-why { background: #f7f8fa; }
.mx-pillars--light .mx-pillar { border-top: 1px solid #dfe2e8; color: #10213a; }
.mx-pillars--light .mx-pillar span { color: #5b6a80; }

/* ---- Careers: job listing cards ---- */
.mx-jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .mx-jobs-grid { grid-template-columns: 1fr; } }
.mx-job-card { display: flex; flex-direction: column; }
.mx-job-apply { margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--mx-gold, #b17c38); text-decoration: none; }
.mx-job-apply:hover { text-decoration: underline; }

/* ---- Insights: article listing cards ---- */
.mx-insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .mx-insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .mx-insights-grid { grid-template-columns: 1fr; } }
.mx-insight-card { text-decoration: none; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.mx-insight-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(15,26,45,.09); }
.mx-insight-card__thumb { margin: -28px -26px 18px; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16/10; }
.mx-insight-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mx-insights-empty { text-align: center; padding: 60px 20px; color: #5b6a80; font-size: 15px; }

.mx-insights-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.mx-insights-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #e2e5ea; color: #10213a; text-decoration: none; font-size: 13px; font-weight: 600; }
.mx-insights-pagination .page-numbers.current { background: var(--mx-gold, #e2ab47); border-color: var(--mx-gold, #e2ab47); color: #061426; }
.mx-insights-pagination .page-numbers:hover:not(.current) { border-color: var(--mx-gold, #e2ab47); color: var(--mx-gold, #b17c38); }

/* ---- Contact page ---- */
.mx-contact-grid { display: grid; grid-template-columns: 42% 58%; gap: 50px; align-items: start; }
@media (max-width: 900px) { .mx-contact-grid { grid-template-columns: 1fr; } }

.mx-contact-info p { color: #5b6a80; font-size: 14px; line-height: 1.75; max-width: 420px; margin-bottom: 8px; }
.mx-contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.mx-contact-item { display: flex; gap: 16px; align-items: flex-start; }
.mx-contact-item__icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: linear-gradient(135deg, var(--mx-gold2, #eecf96), var(--mx-gold, #e2ab47)); display: flex; align-items: center; justify-content: center; font-size: 17px; color: #061426; }
.mx-contact-item b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #10213a; margin-bottom: 4px; }
.mx-contact-item a, .mx-contact-item span { color: #5b6a80; font-size: 14px; text-decoration: none; line-height: 1.6; }
.mx-contact-item a:hover { color: var(--mx-gold, #b17c38); }

.mx-contact-form-card { background: #fff; border: 1px solid #ecedf1; border-radius: 18px; padding: 40px; box-shadow: 0 24px 60px rgba(15,26,45,.06); }
.mx-contact-form-fallback { font-size: 14.5px; line-height: 1.75; color: #5b6a80; margin: 0; }
.mx-contact-form-fallback a { color: var(--mx-gold, #b17c38); font-weight: 600; text-decoration: none; }
.mx-contact-form-fallback a:hover { text-decoration: underline; }

.mx-contact-map-section { padding-top: 0; }
.mx-contact-map { width: 100%; height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid #ecedf1; }

/* ================================================================
   Homepage redesign pass 2 — flatter grid-wall style
   (Odoo-inspired concept, adapted to Navy & Gold)
   ================================================================ */

/* ---- Grid wall (divisions, process, client work) ---- */
.mx-page .mx2-wall {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.mx-page .mx2-wall--three { grid-template-columns: repeat(3, 1fr); }
.mx-page .mx2-wall--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .mx-page .mx2-wall, .mx-page .mx2-wall--three, .mx-page .mx2-wall--four { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .mx-page .mx2-wall, .mx-page .mx2-wall--three, .mx-page .mx2-wall--four { grid-template-columns: 1fr !important; }
}

.mx-page a.mx2-cell,
.mx-page div.mx2-cell {
  background: #fff !important;
  padding: 34px 26px;
  min-height: 230px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e2e5ea;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 28, 46, 0.05);
  transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
  text-decoration: none !important;
  color: inherit !important;
  border: 0;
}
.mx-page a.mx2-cell:hover { background: #fffaf0 !important; box-shadow: 0 10px 24px rgba(20, 28, 46, 0.1); transform: translateY(-3px); }
.mx-page a.mx2-cell:visited { color: inherit !important; }
.mx-page .mx2-cell--static { min-height: 190px; }
.mx-page .mx2-cell__num { font: 800 12px "Manrope", sans-serif; color: var(--mx-gold, #b17c38); letter-spacing: .04em; }
.mx-page .mx2-cell__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--mx-gold, #b17c38); text-transform: uppercase; margin-bottom: 10px; }
.mx-page .mx2-cell__body { flex: 1 1 auto; }
.mx-page .mx2-cell__body h3 { font: 700 19px "Manrope", sans-serif !important; color: #0a1830 !important; margin: 12px 0 0; line-height: 1.25; text-decoration: none !important; }
.mx-page .mx2-cell__tag { color: var(--mx-gold, #b17c38) !important; font-weight: 700; font-size: 12.5px; margin: 8px 0 0; text-decoration: none !important; }
.mx-page .mx2-cell__desc { font-size: 13px; color: #617189 !important; margin: 10px 0 0; line-height: 1.65; text-decoration: none !important; }
.mx-page .mx2-cell__services { margin-top: auto; padding-top: 18px; font-size: 11.5px; color: #96a2b3 !important; text-decoration: none !important; }

/* ---- Proof / stats strip ---- */
.mx-page .mx2-proof { background: var(--mx-navy, #141c2e) !important; padding: 90px 0; color: #fff; position: relative; overflow: hidden; }
@media (max-width: 767px) {
  .mx-page .mx2-proof { padding: 48px 0; }
}
.mx-page .mx2-proof:before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); right: -220px; top: -180px; }
.mx-page .mx2-proof__grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; position: relative; }
@media (max-width: 900px) { .mx-page .mx2-proof__grid { grid-template-columns: 1fr !important; } }
.mx-page .mx2-proof h2.mx2-proof__title { font: 800 clamp(26px,3.2vw,38px)/1.15 "Manrope", sans-serif; color: #fff !important; margin-top: 6px; }
.mx-page .mx2-proof__copy { color: #b9c4d4 !important; font-size: 14.5px; line-height: 1.75; margin-top: 16px; max-width: 46ch; }
.mx-page .mx2-metric-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 480px) { .mx-page .mx2-metric-grid { grid-template-columns: 1fr !important; } }
.mx-page .mx2-metric { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.mx-page .mx2-metric strong { display: block; font: 800 30px "Manrope", sans-serif; color: var(--mx-gold2, #eecf96) !important; }
.mx-page .mx2-metric span { font-size: 12px; color: #93a2b8 !important; }

/* ---- Process section background ---- */
.mx-page .mx2-process { background: #f7f8fa !important; }

/* ---- About pillars (flatter row) ---- */
.mx-page .mx2-pillar-row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 600px) { .mx-page .mx2-pillar-row { grid-template-columns: 1fr !important; } }
.mx-page .mx2-pillar { border-top: 1px solid #ffffff1c; padding-top: 12px; font-size: 12px; color: #aebbd0 !important; line-height: 1.6; }
.mx-page .mx2-pillar span { display: block; color: #fff !important; font-weight: 700; font-size: 13px; margin-bottom: 4px; }

/* ================================================================
   Nav dropdown redesign — Navy & Gold, smooth fade+slide entrance
   Overrides the legacy Finris 3D-flip dropdown (dark navy #121A46,
   perspective rotateX flip) with something that matches the rest
   of the site and feels intentional rather than tacked on.
   ================================================================ */
.main-menu .main-menu__list > li > ul,
.main-menu .main-menu__list > li > ul > li > ul,
.stricky-header .main-menu__list > li > ul,
.stricky-header .main-menu__list > li > ul > li > ul {
  background-color: var(--mx-navy, #141c2e);
  border: 1px solid rgba(226, 171, 71, 0.18);
  border-radius: 14px;
  padding: 10px;
  min-width: 260px;
  box-shadow: 0 24px 48px rgba(6, 12, 24, 0.35), 0 4px 12px rgba(6, 12, 24, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.main-menu .main-menu__list > li:hover > ul,
.main-menu .main-menu__list > li > ul > li:hover > ul,
.stricky-header .main-menu__list > li:hover > ul,
.stricky-header .main-menu__list > li > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu .main-menu__list > li > ul > li,
.main-menu .main-menu__list > li > ul > li > ul > li,
.stricky-header .main-menu__list > li > ul > li,
.stricky-header .main-menu__list > li > ul > li > ul > li {
  border-radius: 8px;
}

.main-menu .main-menu__list > li > ul > li + li,
.main-menu .main-menu__list > li > ul > li > ul > li + li,
.stricky-header .main-menu__list > li > ul > li + li,
.stricky-header .main-menu__list > li > ul > li > ul > li + li {
  border-top: 0;
  margin-top: 2px;
}

.main-menu .main-menu__list > li > ul > li > a,
.main-menu .main-menu__list > li > ul > li > ul > li > a,
.stricky-header .main-menu__list > li > ul > li > a,
.stricky-header .main-menu__list > li > ul > li > ul > li > a {
  color: #cdd6e3;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 8px;
  transition: background-color 160ms ease, color 160ms ease, padding-left 160ms ease;
}

.main-menu .main-menu__list > li > ul > li:hover > a,
.main-menu .main-menu__list > li > ul > li > ul > li:hover > a,
.stricky-header .main-menu__list > li > ul > li:hover > a,
.stricky-header .main-menu__list > li > ul > li > ul > li:hover > a {
  background-color: rgba(226, 171, 71, 0.12);
  color: var(--mx-gold2, #eecf96);
  padding-left: 18px;
}

/* ================================================================
   Mega menu — Services & Our Divisions dropdowns
   2-column grid with icon/number, title and one-line description
   per item, replacing the plain single-column link list.
   ================================================================ */
.main-menu .main-menu__list > li.mx-megamenu-parent,
.stricky-header .main-menu__list > li.mx-megamenu-parent {
  position: static;
}

.main-menu-two__main-menu-box,
.main-menu-two__wrapper-inner {
  position: relative;
}

.main-menu .main-menu__list > li.mx-megamenu-parent > ul.mx-megamenu,
.stricky-header .main-menu__list > li.mx-megamenu-parent > ul.mx-megamenu {
  left: 50%;
  right: auto;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 4px;
  width: 600px;
  min-width: 0;
  max-width: min(600px, calc(100vw - 40px));
  padding: 14px;
  align-items: stretch;
}

.main-menu .main-menu__list > li.mx-megamenu-parent:hover > ul.mx-megamenu,
.stricky-header .main-menu__list > li.mx-megamenu-parent:hover > ul.mx-megamenu {
  transform: translate(-50%, 0);
}

.main-menu .main-menu__list > li.mx-megamenu-parent > ul.mx-megamenu.mx-megamenu--divisions,
.stricky-header .main-menu__list > li.mx-megamenu-parent > ul.mx-megamenu.mx-megamenu--divisions {
  min-width: 480px;
  max-width: 560px;
}

.mx-megamenu .mx-megamenu__item {
  width: auto;
  flex: none;
}

.mx-megamenu .mx-megamenu__item > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 10px;
  height: 100%;
  transition: background-color 160ms ease, color 160ms ease;
}

.mx-megamenu .mx-megamenu__item:hover > a,
.mx-megamenu .mx-megamenu__item.current > a {
  background-color: rgba(226, 171, 71, 0.1);
  padding-left: 12px;
}

.mx-megamenu__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(226, 171, 71, 0.12);
  border: 1px solid rgba(226, 171, 71, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mx-gold2, #eecf96);
  font-size: 16px;
}

.mx-megamenu__num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(226, 171, 71, 0.12);
  border: 1px solid rgba(226, 171, 71, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mx-gold2, #eecf96);
  font: 800 12px "Manrope", sans-serif;
}

.mx-megamenu__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mx-megamenu__title {
  color: #e9edf3;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.mx-megamenu .mx-megamenu__item:hover .mx-megamenu__title,
.mx-megamenu .mx-megamenu__item.current .mx-megamenu__title {
  color: var(--mx-gold2, #eecf96);
}

.mx-megamenu__desc {
  color: #8b98ab;
  font-size: 11.5px;
  line-height: 1.5;
}

@media (max-width: 1400px) {
  .main-menu .main-menu__list > li.mx-megamenu-parent > ul.mx-megamenu,
  .stricky-header .main-menu__list > li.mx-megamenu-parent > ul.mx-megamenu {
    min-width: 500px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* Mobile nav: the mega menu markup is cloned wholesale into the
   mobile hamburger menu (see script.js), so its desktop 2-column
   grid + icon badges must be reset back to a simple stacked list
   that matches the rest of the mobile nav — otherwise it renders
   as a cramped, overlapping mess on small screens. */
/* Mobile nav base reset — the cloned .main-menu__list picks up
   plain browser list-item bullets and default link-blue since it's
   rendered outside .mx-page (this nav lives in footer.php); reset
   both explicitly rather than relying on scoped fixes elsewhere. */
.mobile-nav__container .main-menu__list,
.mobile-nav__container .main-menu__list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.mobile-nav__container .main-menu__list li {
  list-style: none;
}
.mobile-nav__container .main-menu__list > li > a {
  color: #fff;
}
.mobile-nav__container .main-menu__list > li > a:hover {
  color: var(--mx-gold2, #eecf96);
}

.mobile-nav__container .main-menu__list .mx-megamenu,
.mobile-nav__container .main-menu__list .mx-megamenu.mx-megamenu--divisions {
  position: static;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.mobile-nav__container .main-menu__list .mx-megamenu__item {
  width: 100%;
}

.mobile-nav__container .main-menu__list .mx-megamenu__item > a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-radius: 0;
  height: auto;
  color: #fff;
}

.mobile-nav__container .main-menu__list .mx-megamenu__item:hover > a,
.mobile-nav__container .main-menu__list .mx-megamenu__item.current > a {
  background: transparent;
  padding-left: 0;
}

.mobile-nav__container .main-menu__list .mx-megamenu__icon,
.mobile-nav__container .main-menu__list .mx-megamenu__num {
  width: 28px;
  height: 28px;
  font-size: 12px;
  flex: 0 0 auto;
}

.mobile-nav__container .main-menu__list .mx-megamenu__desc {
  display: none;
}

.mobile-nav__container .main-menu__list .mx-megamenu__title {
  font-size: 14px;
}

/* Mobile nav: the expanded/active dropdown trigger still used the
   old pre-redesign blue brand color (--finris-base). Bring it in
   line with Navy & Gold. */
.mobile-nav__container .main-menu__list li a.expanded {
  color: var(--mx-gold2, #eecf96) !important;
}

/* ---- Division page service cards (.dyn-card) — bring the old
   pre-redesign blue link color in line with Navy & Gold, and tame
   excess mobile spacing from the fixed min-height. ---- */
.dyn-card__link {
  color: var(--mx-gold2, #eecf96) !important;
}
@media (max-width: 767px) {
  .dyn-card {
    min-height: 0 !important;
    padding: 26px 22px;
  }
  .dyn-card__icon-ring {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 16px;
  }
}

/* ================================================================
   Story-section animations — replaces the static browser-mockup SVG
   illustration in division/service "story" sections. Each page gets
   a distinct hand-drawn scene themed to its topic (see
   metanex_get_story_scene_svg() in inc/theme-helpers.php), built
   from these shared primitives: line strokes that draw themselves
   in once, gold accents that fade in or pulse gently. Scenes only
   start animating once scrolled into view.
   ================================================================ */
.mx-story-anim {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  background: var(--mx-navy, #141c2e);
  border-radius: 20px;
  overflow: hidden;
}
.mx-story-anim__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(226,171,71,.18) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 60% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(circle at 60% 30%, black 0%, transparent 70%);
}
.mx-story-anim__scene {
  position: absolute;
  inset: 0;
}

/* Line-drawn strokes: shared draw-in mechanic. Each path/shape sets
   --mx-len to its own measured length (via stroke-dasharray) and
   optionally --mx-delay to stagger multiple strokes in one scene. */
.mx-story-anim .mx-draw {
  fill: none;
  stroke: #eef1f6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--mx-len, 900);
  stroke-dashoffset: var(--mx-len, 900);
  animation: mx-draw-in 1.8s ease forwards;
  animation-delay: var(--mx-delay, 0s);
  animation-play-state: paused;
}
.mx-story-anim.mx-in-view .mx-draw {
  animation-play-state: running;
}
@keyframes mx-draw-in {
  to { stroke-dashoffset: 0; }
}

/* Gold glow fill accents (dots, swatches, nodes, coins). */
.mx-story-anim .mx-gold-fill {
  fill: var(--mx-gold, #e2ab47);
  filter: drop-shadow(0 0 6px rgba(226,171,71,.75)) drop-shadow(0 0 14px rgba(226,171,71,.4));
}

/* Appears once and holds — for accents that shouldn't loop. */
.mx-story-anim .mx-fade-hold {
  opacity: 0;
  animation: mx-fade-in .6s ease forwards;
  animation-delay: var(--mx-delay, 0s);
  animation-play-state: paused;
}
.mx-story-anim.mx-in-view .mx-fade-hold {
  animation-play-state: running;
}
@keyframes mx-fade-in { to { opacity: 1; } }

/* Gentle ambient pulse loop, for idle motion after the scene draws in. */
.mx-story-anim .mx-pulse-loop {
  animation: mx-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--mx-delay, 0s);
  animation-play-state: paused;
  transform-origin: center;
}
.mx-story-anim.mx-in-view .mx-pulse-loop {
  animation-play-state: running;
}
@keyframes mx-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .mx-story-anim .mx-draw,
  .mx-story-anim .mx-fade-hold {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .mx-story-anim .mx-pulse-loop {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.mx-story-anim__label {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---- Top bar CTA (SEO request: add CTA alongside contact info) ---- */
.mx-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mx-gold, #e2ab47);
  color: #10182b !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-right: 16px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}
.mx-topbar-cta:hover {
  background: var(--mx-gold2, #eecf96);
  transform: translateY(-1px);
}
@media (max-width: 991px) {
  .mx-topbar-cta { display: none; }
}

/* ---- Larger header logo (SEO request: 3x size) ---- */
.main-menu-two__top-inner {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.main-menu-two__logo {
  padding: 12px 0 !important;
  position: relative;
  overflow: visible;
  width: 260px;
  flex: 0 0 260px;
}
.main-menu-two__logo img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 140px;
  width: auto;
  max-width: none;
  z-index: 5;
}
@media (min-width: 992px) {
  .main-menu-two__wrapper-inner {
    flex-wrap: nowrap !important;
    gap: 20px;
    padding-top: 5px !important;
    padding-bottom: 4px !important;
  }
  .main-menu-two__main-menu-box {
    flex: 1 1 auto;
    min-width: 0;
  }
  .main-menu-two__main-menu-box .main-menu__list {
    flex-wrap: nowrap;
    gap: 18px !important;
  }
  .main-menu-two__main-menu-box .main-menu__list > li > a {
    white-space: nowrap;
  }
  .main-menu-two__right {
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    margin-left: 12px;
  }
}
@media (max-width: 991px) {
  .main-menu-two__logo {
    padding: 10px 0 !important;
    width: 190px;
    flex: 0 0 190px;
  }
  .main-menu-two__logo img {
    height: 140px;
  }
}

/* ---- Real contact form (SEO request: proper functional form) ---- */
.mx-contact-form { display: flex; flex-direction: column; gap: 18px; }
.mx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .mx-form-row { grid-template-columns: 1fr; } }
.mx-form-group { display: flex; flex-direction: column; gap: 6px; }
.mx-form-group label { font-size: 12.5px; font-weight: 700; color: #10213a; }
.mx-form-group input,
.mx-form-group textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #dde1e8;
  border-radius: 10px;
  color: #10213a;
  background: #fbfbfc;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.mx-form-group input:focus,
.mx-form-group textarea:focus {
  outline: none;
  border-color: var(--mx-gold, #e2ab47);
  box-shadow: 0 0 0 3px rgba(226,171,71,.15);
  background: #fff;
}
.mx-contact-form button.mx-btn { align-self: flex-start; margin-top: 4px; border: 0; cursor: pointer; }
.mx-form-success {
  background: #f0faf3;
  border: 1px solid #cdeed8;
  border-radius: 12px;
  padding: 24px;
  color: #1a5c34;
}
.mx-form-success p:first-child { margin-top: 0; }
.mx-form-success p:last-child { margin-bottom: 0; }
.mx-form-error {
  background: #fdf1f0;
  border: 1px solid #f3cfcb;
  color: #9c3128;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* ---- Footer logo: match header logo size (SEO request) ---- */
.footer-widget-two__about-logo img {
  height: 156px;
  width: auto;
  max-width: none;
}
@media (max-width: 767px) {
  .footer-widget-two__about-logo img {
    height: 100px;
  }
}
