/* ============================================================
   MetroLabX — Global stylesheet (Bootstrap 5.3 add-on layer)
   Brand: #12372f  #1f7467  #C5a46d  #f2f4f3  #111111
   ============================================================ */

:root {
  --mx-green: #12372f;
  --mx-teal: #1f7467;
  --mx-gold: #c5a46d;
  --mx-light: #f2f4f3;
  --mx-ink: #111111;

  --mx-green-900: #0c2620;
  --mx-surface: #10241f;
  --mx-line: rgba(242, 244, 243, 0.12);

  --mx-header-h: 76px;
  --mx-radius: 16px;
  --mx-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

  /* Bootstrap variable overrides */
  --bs-primary: var(--mx-teal);
  --bs-primary-rgb: 31, 116, 103;
  --bs-body-font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--mx-light);
  --bs-body-color: #23302c;
  --bs-link-color: var(--mx-teal);
  --bs-link-hover-color: var(--mx-gold);
  --bs-border-color: rgba(17, 17, 17, 0.12);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--bs-body-font-family);
  background: var(--mx-light);
  color: #23302c;
  overflow-x: hidden;
}
body.mx-no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, .mx-display {
  font-family: "Sora", var(--bs-body-font-family);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mx-green);
}

::selection { background: var(--mx-gold); color: var(--mx-ink); }

/* ---------- Utilities ---------- */
.text-gold { color: var(--mx-gold) !important; }
.text-teal { color: var(--mx-teal) !important; }
.text-green { color: var(--mx-green) !important; }
.bg-green { background-color: var(--mx-green) !important; }
.bg-green-deep { background-color: var(--mx-green-900) !important; }
.bg-teal { background-color: var(--mx-teal) !important; }
.bg-light-brand { background-color: var(--mx-light) !important; }
.bg-ink { background-color: var(--mx-ink) !important; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5 { color: var(--mx-light); }
.on-dark p, .on-dark li { color: rgba(242, 244, 243, 0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mx-gold);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--mx-gold);
  display: inline-block;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.12; }
.lead-brand { font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.75; max-width: 62ch; }

.btn { border-radius: 999px; font-weight: 600; padding: .72rem 1.6rem; }
.btn-brand { background: var(--mx-teal); color: var(--mx-light); border: 1px solid var(--mx-teal); }
.btn-brand:hover, .btn-brand:focus { background: var(--mx-green); border-color: var(--mx-green); color: var(--mx-light); }
.btn-gold { background: var(--mx-gold); color: var(--mx-ink); border: 1px solid var(--mx-gold); }
.btn-gold:hover, .btn-gold:focus { background: #d8bb8a; border-color: #d8bb8a; color: var(--mx-ink); }
.btn-outline-light-brand { border: 1px solid rgba(242, 244, 243, .55); color: var(--mx-light); }
.btn-outline-light-brand:hover { background: var(--mx-light); color: var(--mx-green); }

/* ---------- Header ---------- */
.mx-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  height: var(--mx-header-h);
  display: flex;
  align-items: center;
  background: rgba(18, 55, 47, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mx-line);
  transition: transform .38s ease, background-color .38s ease, border-color .38s ease, box-shadow .38s ease;
  will-change: transform;
}
.mx-header.is-transparent {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}
.mx-header.is-hidden { transform: translateY(-105%); }
.mx-header.is-solid { box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }

.mx-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.mx-brand img { height: 42px; width: auto; display: block; }
.mx-brand span {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--mx-light);
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.mx-brand span b { color: var(--mx-gold); font-weight: 700; }

.mx-nav { display: flex; align-items: center; gap: .25rem; }
.mx-nav a {
  color: rgba(242, 244, 243, .84);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  padding: .5rem .8rem;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.mx-nav a:hover { color: var(--mx-light); background: rgba(242, 244, 243, .1); }
.mx-nav a.active { color: var(--mx-gold); }

.mx-burger {
  display: none;
  width: 46px; height: 46px;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.mx-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--mx-light);
  transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 991.98px) {
  .mx-nav, .mx-header .btn-header { display: none !important; }
  .mx-burger { display: flex; }
}

/* ---------- Side menu (off-canvas) ---------- */
.mx-side {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(340px, 86vw);
  background: var(--mx-green-900);
  z-index: 1060;
  transform: translateX(102%);
  transition: transform .42s cubic-bezier(.22, .8, .2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--mx-shadow);
}
.mx-side.is-open { transform: translateX(0); }
.mx-side-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 15, .62);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mx-side-backdrop.is-open { opacity: 1; visibility: visible; }

.mx-side-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom:1rem; }
.mx-side-close {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(242, 244, 243, .25);
  background: transparent;
  color: var(--mx-light);
  font-size: 1.35rem;
  line-height: 1;
}
.mx-side-links { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.mx-side-links a {
  display: block;
  padding: .95rem .25rem;
  color: rgba(242, 244, 243, .88);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 1.06rem;
  border-bottom: 1px solid rgba(242, 244, 243, .09);
}
.mx-side-links a.active, .mx-side-links a:hover { color: var(--mx-gold); }
.mx-side-foot { margin-top: auto; padding-top: 1.5rem; color: rgba(242, 244, 243, .6); font-size: .86rem; }
.mx-side-foot a { color: var(--mx-gold); text-decoration: none; }

/* ---------- Hero carousel (home) ---------- */
.mx-hero-carousel, .mx-hero-carousel .carousel-inner, .mx-hero-carousel .carousel-item {
  height: 100svh;
  min-height: 560px;
}
@media (orientation: landscape) and (max-height: 560px) {
  .mx-hero-carousel, .mx-hero-carousel .carousel-inner, .mx-hero-carousel .carousel-item {
    height: auto;
    min-height: 100svh;
  }
  .mx-hero-slide { padding-top: calc(var(--mx-header-h) + 1.5rem); padding-bottom: 3rem; }
}
.mx-hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.mx-hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12, 38, 32, .92) 0%, rgba(12, 38, 32, .72) 45%, rgba(17, 17, 17, .45) 100%);
}
.mx-hero-slide > .container { position: relative; z-index: 2; }
.mx-hero-slide h1 {
  color: var(--mx-light);
  font-size: clamp(1.85rem, 5.4vw, 4rem);
  line-height: 1.07;
  max-width: 20ch;
}
.mx-hero-slide p {
  color: rgba(242, 244, 243, .84);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  max-width: 56ch;
  margin-top: 1.1rem;
}
.mx-hero-carousel .carousel-indicators { margin-bottom: 2.2rem; z-index: 3; }
.mx-hero-carousel .carousel-indicators [data-bs-target] {
  width: 34px; height: 3px;
  border: 0; border-radius: 4px;
  background: rgba(242, 244, 243, .4);
}
.mx-hero-carousel .carousel-indicators .active { background: var(--mx-gold); }
.mx-hero-carousel .carousel-control-prev, .mx-hero-carousel .carousel-control-next { width: 8%; z-index: 3; }
.mx-scroll-cue {
  position: absolute;
  left: 50%; bottom: 3.2rem;
  transform: translateX(-50%);
  color: rgba(242, 244, 243, .7);
  z-index: 3;
  animation: mxBob 2.4s ease-in-out infinite;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(242, 244, 243, .25);
  display: grid;
  place-items: center;
  background: rgba(12, 38, 32, .35);
  backdrop-filter: blur(4px);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.mx-scroll-cue:hover {
  background: rgba(197, 164, 109, .15);
  border-color: var(--mx-gold);
  color: var(--mx-gold);
}
.mx-scroll-cue i {
  font-size: 1.4rem;
}
@keyframes mxBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@media (max-width: 575.98px) { .mx-scroll-cue { display: none; } }

/* ---------- Inner page hero ---------- */
.mx-page-hero {
  position: relative;
  min-height: min(66svh, 620px);
  display: flex;
  align-items: center;
  padding: calc(var(--mx-header-h) + 3rem) 0 3rem;
  background: var(--mx-green);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.mx-page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12, 38, 32, .95), rgba(12, 38, 32, .7) 55%, rgba(17, 17, 17, .55));
}
.mx-page-hero > .container { position: relative; z-index: 2; }
.mx-page-hero h1 { color: var(--mx-light); font-size: clamp(1.9rem, 5vw, 3.5rem); line-height: 1.1; }
.mx-page-hero p { color: rgba(242, 244, 243, .82); }

/* ---------- Cards ---------- */
.mx-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--mx-radius);
  padding: 1.8rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.mx-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(18, 55, 47, .14); border-color: rgba(31, 116, 103, .4); }
.mx-card.on-dark { background: rgba(242, 244, 243, .05); border-color: var(--mx-line); }
.mx-card.on-dark:hover { border-color: rgba(197, 164, 109, .5); }
.mx-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.mx-card p { font-size: .96rem; line-height: 1.7; margin: 0; color: #4a5b55; }
.mx-card.on-dark p { color: rgba(242, 244, 243, .74); }

.mx-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(31, 116, 103, .12);
  color: var(--mx-teal);
  margin-bottom: 1.1rem;
}
.mx-card.on-dark .mx-icon { background: rgba(197, 164, 109, .16); color: var(--mx-gold); }

.mx-mini {
  display: flex;
  gap: .9rem;
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, .08);
  background: #fff;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mx-mini:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 55, 47, .1); border-color: rgba(31, 116, 103, .45); }
.mx-mini i { color: var(--mx-gold); font-size: 1.25rem; }
.mx-mini h4 { font-size: 1rem; margin: 0 0 .3rem; }
.mx-mini p { font-size: .9rem; margin: 0; color: #55655f; line-height: 1.6; }

/* ---------- Stats ---------- */
.mx-stat { border-left: 2px solid var(--mx-gold); padding-left: 1.25rem; }
.mx-stat .num {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--mx-gold);
  line-height: 1;
}
.mx-stat p { color: rgba(242, 244, 243, .76); font-size: .95rem; margin-top: .7rem; }
.mx-stat cite { display: block; margin-top: .4rem; font-size: .82rem; color: rgba(197, 164, 109, .85); font-style: normal; }

/* ---------- Quote / map band ---------- */
.mx-quote-band {
  position: relative;
  background: var(--mx-ink) center/cover no-repeat;
  overflow: hidden;
}
.mx-quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(9, 26, 22, .78); }
.mx-quote-band > .container { position: relative; z-index: 2; }
.mx-quote {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.45;
  color: var(--mx-light);
  max-width: 22ch;
}
.mx-quote-wide { max-width: 46ch; }

/* ---------- Parallax ---------- */
.mx-parallax {
  position: relative;
  min-height: clamp(320px, 55vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--mx-green-900);
}
.mx-parallax-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.mx-parallax::after { content: ""; position: absolute; inset: 0; background: rgba(9, 26, 22, .72); }
.mx-parallax > .container { position: relative; z-index: 2; }

/* ---------- Proposal / back cover ---------- */
.mx-proposal { background: var(--mx-green); position: relative; overflow: hidden; }
.mx-proposal::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 116, 103, .5), transparent 65%);
  top: -160px; right: -140px;
}
.mx-proposal-figure {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}
.mx-proposal-figure img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5);
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.mx-proposal-figure:hover img { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
.mx-proposal-figure::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -26px;
  width: 70%; height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%);
  filter: blur(6px);
}

/* ---------- Marquee ---------- */
.mx-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mx-marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: mxMarquee 32s linear infinite; }
.mx-marquee:hover .mx-marquee-track { animation-play-state: paused; }
@keyframes mxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mx-trust-chip {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.3rem;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: var(--mx-green);
  white-space: nowrap;
  background: #fff;
}
.mx-trust-chip i { color: var(--mx-gold); }
@media (prefers-reduced-motion: reduce) { .mx-marquee-track { animation: none; } }

/* ---------- Projects ---------- */
.mx-project {
  position: relative;
  border-radius: var(--mx-radius);
  overflow: hidden;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: var(--mx-green) center/cover no-repeat;
  color: var(--mx-light);
}
.mx-project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 38, 32, .15), rgba(9, 26, 22, .9));
  transition: opacity .35s ease;
}
.mx-project:hover::after { opacity: .82; }
.mx-project-body { position: relative; z-index: 2; padding: 1.6rem; }
.mx-project-body h3 { color: var(--mx-light); font-size: 1.15rem; }
.mx-project-body p { color: rgba(242, 244, 243, .8); font-size: .92rem; margin: .4rem 0 0; }
.mx-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mx-gold);
  border: 1px solid rgba(197, 164, 109, .5);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: .7rem;
}

/* ---------- Forms ---------- */
.mx-form-card {
  background: #fff;
  border-radius: var(--mx-radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 22px 50px rgba(18, 55, 47, .12);
  border: 1px solid rgba(17, 17, 17, .06);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--mx-green); }
.form-control, .form-select {
  border-radius: 12px;
  padding: .78rem 1rem;
  border-color: rgba(17, 17, 17, .16);
  background: #fbfcfb;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mx-teal);
  box-shadow: 0 0 0 .22rem rgba(31, 116, 103, .18);
  background: #fff;
}
.mx-form-card.on-dark { background: rgba(242, 244, 243, .06); border-color: var(--mx-line); box-shadow: none; }
.mx-form-card.on-dark .form-label { color: var(--mx-gold); }
.mx-form-card.on-dark .form-control {
  background: rgba(9, 26, 22, .45);
  border-color: rgba(242, 244, 243, .18);
  color: var(--mx-light);
}
.mx-form-card.on-dark .form-control::placeholder { color: rgba(242, 244, 243, .45); }

/* ---------- Contact channels & socials ---------- */
.mx-channel {
  display: flex; flex-direction: column; gap: .35rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--mx-radius);
  background: #fff;
  border: 1px solid rgba(17, 17, 17, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mx-channel:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(18, 55, 47, .12); border-color: var(--mx-teal); }
.mx-channel i.head { font-size: 1.5rem; color: var(--mx-teal); }
.mx-channel h3 { font-size: 1.02rem; margin: .6rem 0 0; }
.mx-channel .val { font-size: .95rem; color: #4a5b55; word-break: break-word; }
.mx-channel a.cta { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .9rem; color: var(--mx-teal); text-decoration: none; }
.mx-channel a.cta:hover { color: var(--mx-gold); }

.mx-socials { display: flex; flex-wrap: wrap; gap: .7rem; }
.mx-socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 244, 243, .28);
  color: var(--mx-light);
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  position: relative;
}
.mx-socials a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.mx-socials a:hover { background: var(--mx-gold); border-color: var(--mx-gold); color: var(--mx-green) !important; transform: translateY(-4px); }
.mx-socials.on-light a { border-color: rgba(17, 17, 17, .18); color: var(--mx-green); }
.mx-socials.on-light a:hover { background: var(--mx-gold); border-color: var(--mx-gold); color: var(--mx-green) !important; }

/* ---------- Legal pages ---------- */
.mx-legal h2 { font-size: 1.22rem; margin-top: 2.2rem; }
.mx-legal p { line-height: 1.85; color: #48574f; }

/* ---------- Footer ---------- */
.mx-footer {
  background: var(--mx-green-900);
  color: rgba(242, 244, 243, .72);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.5rem;
  position: relative;
}
.mx-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mx-gold), transparent);
  opacity: .6;
}
.mx-footer h4 {
  color: var(--mx-light);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.mx-footer a {
  color: rgba(242, 244, 243, .72);
  text-decoration: none;
  transition: color .25s ease, padding-left .25s ease;
  display: inline-block;
}
.mx-footer a:hover {
  color: var(--mx-gold);
  padding-left: 4px;
}
.mx-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mx-footer li {
  margin-bottom: .6rem;
  font-size: .93rem;
}

/* Reach Us column with icons */
.mx-reach li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .85rem;
}
.mx-reach li i {
  color: var(--mx-gold);
  font-size: 1rem;
  margin-top: .15rem;
  flex-shrink: 0;
  opacity: .85;
}
.mx-reach li a:hover {
  padding-left: 0;
}

.mx-footer-bottom {
  border-top: 1px solid var(--mx-line);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  color: rgba(242, 244, 243, .5);
}
.mx-footer-bottom span:last-child {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
}


/* ---------- Custom Modal ---------- */
.mx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 38, 32, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  padding: 1.5rem;
}
.mx-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.mx-modal {
  background: var(--mx-green-900);
  border: 1px solid rgba(197, 164, 109, .25);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(40px) scale(.96);
  transition: transform .5s cubic-bezier(.22, .8, .2, 1);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.mx-modal-overlay.is-open .mx-modal {
  transform: translateY(0) scale(1);
}
.mx-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(197, 164, 109, .12);
  border: 1px solid rgba(197, 164, 109, .3);
  color: var(--mx-gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .3s ease;
  font-size: 1.5rem;
  line-height: 1;
  padding-bottom: 2px;
}
.mx-modal-close:hover {
  background: var(--mx-gold);
  color: var(--mx-ink);
  transform: rotate(90deg);
  border-color: var(--mx-gold);
}
.mx-modal h3 {
  color: var(--mx-gold);
  margin-bottom: .35rem;
  font-size: 1.5rem;
}
.mx-modal > p {
  color: rgba(242, 244, 243, .65);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}
.mx-modal .form-control {
  background: rgba(255,255,255,.06);
  border-color: rgba(197, 164, 109, .2);
  color: #fff;
}
.mx-modal .form-control::placeholder { color: rgba(255,255,255,.35); }
.mx-modal .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--mx-gold);
  box-shadow: 0 0 0 .22rem rgba(197, 164, 109, .12);
  color: #fff;
}
.mx-modal .form-label { color: rgba(255,255,255,.85); }

/* ---------- Cert Cards (Organizations & People) ---------- */
.mx-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991.98px) { .mx-cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .mx-cert-grid { grid-template-columns: 1fr; } }

.mx-cert-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(197, 164, 109, .18);
  border-radius: 16px;
  padding: 2rem 1.25rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.mx-cert-card:hover {
  background: rgba(197, 164, 109, .08);
  border-color: rgba(197, 164, 109, .35);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,.2);
}
.mx-cert-card i {
  font-size: 2.5rem;
  color: var(--mx-gold);
  margin-bottom: 1rem;
  opacity: .9;
}
.mx-cert-card h5 {
  color: var(--mx-light);
  font-size: .92rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: .3px;
}

/* ---------- Scroll animations ---------- */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
[data-anim="left"] { transform: translateX(-34px); }
[data-anim="right"] { transform: translateX(34px); }
[data-anim="zoom"] { transform: scale(.94); }
[data-anim].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Back to top ---------- */
.mx-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--mx-teal);
  color: var(--mx-light);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
}
.mx-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.mx-top:hover { background: var(--mx-gold); color: var(--mx-ink); }

/* ---------- Tablet / landscape tuning ---------- */
@media (max-width: 767.98px) {
  :root { --mx-header-h: 68px; }
  .mx-brand img { height: 34px; }
  .mx-brand span { font-size: 1rem; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .section { padding: 2.5rem 0; }
  .mx-page-hero { min-height: auto; padding: calc(var(--mx-header-h) + 2rem) 0 2rem; }
}
