/* ============================================================
   M2 — MercerMorgan | Global Stylesheet
   ============================================================ */

:root {
  /* Brand colors */
  --blue: #3976F1;
  --blue-dark: #2A5FD6;
  --blue-light: #6E93F5;
  --navy: #0E1C33;
  --navy-2: #002850;
  --green: #8DD837;
  --green-dark: #006837;
  --teal: #02A28F;
  --teal-dark: #02648F;
  --teal-2: #027B6E;
  --purple: #7030A0;
  --cyan: #00AEEF;
  --lime: #AFD136;
  --navy-blue: #005CAD;

  /* Neutrals */
  --ink: #111318;
  --body: #3C4250;
  --muted: #6B7280;
  --line: #E7EAF0;
  --surface: #fefeff;
  --surface-tint: #F6F9FE;
  --bg-soft: #FAFBFD;

  /* Type */
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1200px;
  --nav-h: 84px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(14, 28, 51, 0.06);
  --shadow-lg: 0 20px 60px rgba(14, 28, 51, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.accent { color: var(--blue); }
.accent-green { color: var(--green-dark); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn svg { transition: transform 0.22s ease; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(57, 118, 241, 0.28);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(57, 118, 241, 0.38);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.btn-light:hover svg { transform: translateX(4px); }

.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Nav — sticky
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(14,28,51,0.05);
}

.site-nav .wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 60px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { display: flex; align-items: center; }
.nav-links li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 22px;
}
.nav-links a {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: none;
  inset: var(--nav-h) 0 0 0;
  background: #fff;
  z-index: 999;
  padding: 28px 32px;
  overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-panel a {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a.active { color: var(--blue); }
.mobile-panel .btn { margin-top: 24px; width: 100%; justify-content: center; color: #ffffff;
    text-align: center; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Eyebrow / section label
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ============================================================
   Page hero header (shared pattern across inner pages)
   ============================================================ */
.page-head {
  padding: 72px 0 48px;
}
.page-head h1 { font-size: clamp(36px, 5vw, 56px); max-width: 900px; }
.page-head .lede {
  font-size: 19px;
  color: var(--body);
  max-width: 720px;
  margin-top: 20px;
}

section { position: relative; }

/* ============================================================
   Slot-machine counters: rolling digit + speed lines
   ============================================================ */
[data-target] {
  position: relative;
  display: inline-block;
}
.speed-line {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

/* ============================================================
   Home hero
   ============================================================ */
.hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 20px;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.hero-left .eyebrow { color: var(--blue-light); }
.hero-left h1 {
  font-size: clamp(36px, 4vw, 54px);
  margin-top: 6px;
}
.hero-left p.desc {
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
  margin-top: 26px;
  max-width: 540px;
}
.hero-left p.desc strong { color: var(--blue); font-weight: 700; }
.hero-left .btn { margin-top: 32px; }

.stats-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .num {
  font-size: clamp(22px, 9vw, 50px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stats-row .stat:nth-child(1) .num { color: #027b6e; }
.stats-row .stat:nth-child(3) .num { color: #85c441; }
.stats-row .stat:nth-child(5) .num { color: #3976f1; }
.stat .label {
  font-size: clamp(10px, 2.6vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .stats-row { flex-wrap: nowrap; gap: 14px; }
  .stat { min-width: 0; }
}
@media (max-width: 400px) {
  .stats-row { gap: 8px; }
}

.hero-right { display: flex; flex-direction: column; gap: 22px; }
.badges-row { display: flex; gap: 0; align-items: center; }
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 0 18px;
}
.badge:first-child { padding-left: 0; }
.badge img.crest { width: 44px; height: 44px; }
.badge .name { font-weight: 700; color: var(--ink); font-size: 16px; }
.badge .tag { font-size: 12.5px; color: var(--blue); font-weight: 700; }
.badge-sep { width: 1px; height: 40px; background: var(--line); }

.news-label { font-size: 14px; font-weight: 300; letter-spacing: 0.12em; color: var(--blue-light); text-transform: uppercase; }

.news-card {
  position: relative;
  background: var(--navy);
  border-radius: 22px;
  padding: 44px 40px;
  min-height: 434px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

/* fade carousel */
.carousel { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute;
  inset: 0;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  background-size: cover;
  background-position: center;
}
.carousel-slide.is-active { opacity: 1; z-index: 2; }
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,28,51,0.94), rgba(14,28,51,0.75));
  z-index: 0;
}
.carousel-slide .slide-inner {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
}
.carousel-slide .slide-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide .slide-image picture,
.carousel-slide .slide-image a { display: contents; }
.carousel-slide .slide-image img {
  width: 100%;
  /* height: 100%; */
  object-fit: contain;
  border-radius: 12px;
}
a.slide-inner .slide-title { transition: color 0.2s ease; }
a.slide-inner:hover .slide-title { color: var(--blue-light); }
a.slide-inner:hover .slide-tag { text-decoration: underline; }
.slide-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.slide-brand img { height: 26px; }
.slide-brand .divider { width: 1px; height: 22px; background: rgba(255,255,255,0.25); }
.slide-brand .plus { font-size: 20px; font-weight: 300; color: rgba(255,255,255,0.35); }
.slide-brand .signal { font-size: 20px; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.slide-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: #fff; line-height: 1.15; }
.slide-title .hl { color: var(--teal); }
.slide-title .hl2 { color: var(--blue-light); }
.slide-title .hl-green { color: var(--green); }
.slide-desc { margin-top: 18px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 460px; }
.slide-desc strong { color: #fff; font-weight: 700; }
.slide-pretitle { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.slide-domain { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.45); }
.slide-tag { display: inline-block; margin-bottom: 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.slide-inner .eyebrow { color: var(--blue-light); margin-bottom: 18px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .badges-row { flex-wrap: wrap; row-gap: 14px; }
}

/* ============================================================
   Card grids (Services / Sectors / Process / Insights shared)
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
}

/* Contact form (Let's Talk page) */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  min-width: 0;
}
.form-textarea { resize: vertical; }
@media (max-width: 640px) {
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--blue);
  padding: 34px 30px 36px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-bar {
  background-color: var(--blue);
  width: 100%;
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
}
.card.c-blue .card-bar { background-color: var(--blue); }
.card.c-purple .card-bar { background-color: var(--purple); }
.card.c-green .card-bar { background-color: var(--green-dark); }

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.card-icon img { width: 100%; height: 100%; object-fit: contain; }

.card-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.card-kicker span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card h3 { font-size: 24px; margin-top: 4px; }
.card .card-body { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--body); }

.card.c-blue { border-top-color: var(--blue); }
.card.c-purple { border-top-color: var(--purple); }
.card.c-green { border-top-color: var(--green-dark); }
.card.c-blue .card-kicker span { color: var(--blue); }
.card.c-purple .card-kicker span { color: var(--purple); }
.card.c-green .card-kicker span { color: var(--green-dark); }

.sector-card.c1 { border-top-color: var(--navy-2); }
.sector-card.c2 { border-top-color: var(--teal); }
.sector-card.c3 { border-top-color: var(--purple); }
.sector-card.c4 { border-top-color: var(--teal-dark); }
.sector-card.c5 { border-top-color: var(--cyan); }
.sector-card.c6 { border-top-color: var(--navy-blue); }

.stat-card.c1 { border-top-color: var(--blue); }
.stat-card.c1 .num { color: var(--blue); }
.stat-card.c2 { border-top-color: var(--cyan); }
.stat-card.c2 .num { color: var(--cyan); }
.stat-card.c3 { border-top-color: var(--lime); }
.stat-card.c3 .num { color: var(--lime); }
.stat-card.c4 { border-top-color: var(--teal-2); }
.stat-card.c4 .num { color: var(--teal-2); }
.stat-card.c5 { border-top-color: var(--purple); }
.stat-card.c5 .num { color: var(--purple); }

/* Sector cards */
.sector-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy-2);
  border-radius: var(--radius);
  padding: 30px 28px;
  min-height: 168px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sector-card img.icon { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.sector-card h3 { font-size: 21px; line-height: 1.3; }

.sector-card-bar {
  background-color: #002850;
  width: 100%;
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
}
.sector-card.c1 .sector-card-bar { background-color: var(--navy-2); }
.sector-card.c2 .sector-card-bar { background-color: var(--teal); }
.sector-card.c3 .sector-card-bar { background-color: var(--purple); }
.sector-card.c4 .sector-card-bar { background-color: var(--teal-dark); }
.sector-card.c5 .sector-card-bar { background-color: var(--cyan); }
.sector-card.c6 .sector-card-bar { background-color: var(--navy-blue); }
.lead-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--green);
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 6px;
}

/* Process phase cards */
.phase-card {
  background: var(--surface-tint);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
}
.phase-num { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.phase-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 14px; }
.phase-card p { font-size: 15px; line-height: 1.65; color: var(--body); }

/* Stat strip (process page) */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  overflow: hidden;
}
.stat-card-bar {
  background-color: var(--blue);
  width: 100%;
  height: 10px;
  position: absolute;
  top: 0;
  left: 0;
}
.stat-card.c1 .stat-card-bar { background-color: var(--blue); }
.stat-card.c2 .stat-card-bar { background-color: var(--cyan); }
.stat-card.c3 .stat-card-bar { background-color: var(--lime); }
.stat-card.c4 .stat-card-bar { background-color: var(--teal-2); }
.stat-card.c5 .stat-card-bar { background-color: var(--purple); }
.stat-card .num { font-size: 34px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card .num .suffix { font-size: 22px; }
.stat-card .label { margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
@media (max-width: 980px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stat-strip { grid-template-columns: 1fr; } }

/* Insights cards */
.insight-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.insight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.insight-tag { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; display: block; }
.insight-card h3 { font-size: 24px; line-height: 1.3; margin-bottom: 24px; }
.insight-card h3 a { color: var(--ink); transition: color 0.2s ease; }
.insight-card h3 a:hover { color: var(--blue); }

/* Team cards */
.team-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px;
  margin-top: 8px;
}
.team-panel-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 34px;
    margin-top: -53px;
    padding-left: 16px;
    background-color: white;
}
.team-panel-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card .photo {
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--surface-tint);
  border-bottom: 6px solid var(--blue);
}

.team-card .btn svg {
    transition: transform 0.22s ease;
    flex-shrink: 0;
    background-color: white;
    color: #3b72e2;
    border-radius: 2px;
    overflow: hidden;
    padding: 1px;
    margin-top: -2px;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #EAF0FD, #F6F9FE);
  color: var(--blue-light);
}
.team-card .photo-placeholder .initials { font-size: 40px; font-weight: 700; color: var(--blue); }
.team-card .photo-placeholder span.label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.team-card { display: flex; flex-direction: column; }
.team-card h3 { font-size: 22px; margin-top: 22px; }
.team-card .role { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); margin-top: 6px; }
.team-card .bio { font-size: 15px; margin-bottom: 20px; line-height: 1.65; color: var(--body); margin-top: 14px; }
.team-card .btn { margin-top: auto; align-self: flex-start; }
.li-icon { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 980px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-panel { padding: 30px; }
  .team-card .photo { width: 100%; }
  .team-panel-label { margin-top: -40px; }
}

/* ============================================================
   CTA banner (footer top / lets-talk)
   ============================================================ */
.cta-banner {
  background: var(--navy);
  border-radius: 24px;
  padding: 64px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  box-shadow: var(--shadow-lg);
}
#contact-email {
  font-size: clamp(16px, 2vw, 20px);
}
/* Animated cta-icon: three balls drop, bounce once, morph into the M2 mark bars. Plays once when scrolled into view. */
.cta-icon-anim { position: relative; width: 70px; height: 140px; flex-shrink: 0; align-self: center; margin-top: -210px; }
.cta-icon-anim .cta-ball {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  transform-origin: bottom center;
  will-change: transform, height;
  animation-duration: 1.5s;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-play-state: paused;
  opacity: 0;
}
.cta-icon-anim.is-visible .cta-ball { animation-play-state: running; }

@keyframes ctaFall {
  0%   { transform: translateY(-80px) scale(1,1); height: 14px; opacity: 0; }
  3%   { opacity: 1; }
  18%  { transform: translateY(-2px)  scale(1,1);       height: 14px; }
  20%  { transform: translateY(0)     scale(1.35,0.66); height: 14px; }
  32%  { transform: translateY(-18px) scale(0.92,1.12); height: 14px; }
  44%  { transform: translateY(0)     scale(1.15,0.85); height: 14px; }
  50%  { transform: translateY(0)     scale(1,1);       height: 14px; }
  75%  { transform: translateY(0)     scale(1,1);       height: var(--final-h); }
  100% { transform: translateY(0)     scale(1,1);       height: var(--final-h); opacity: 1; }
}

.cta-banner h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.cta-banner h2 .hl { color: var(--green); }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.6; margin-top: 18px; max-width: 620px; }
@media (max-width: 640px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 30px 44px 30px;
  }
  .cta-icon-anim { margin-top: 0; }
}

/* ============================================================
   Advisors panel (Team page) — mimics the team-panel border
   treatment, adapted for the dark cta-banner surface.
   ============================================================ */
.advisor-panel {
background: var(--navy);
    border-radius: 24px;
    padding: 26px 24px;
    box-shadow: var(--shadow-lg);
}
.advisor-panel-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 30px;
    background-color: #0e1c33;
    width: min-content;
    padding: 0 10px;
    margin-top: -28px;
    margin-left: -10px;
}
.floating-border {
    border: 1px solid rgba(110, 147, 245, 0.28);
    border-radius: 24px;
    padding: 20px 30px;
}
.advisor-panel-inner {
    display: flex;
    gap: 48px;
    min-height: 200px;
}

.advisor-panel-inner .cta-icon-anim {
    position: relative;
    width: 70px;
    height: 140px;
    flex-shrink: 0;
    align-self: center;
    margin-top: -180px;
    transform: scale(1.5);
 }
.advisor-copy h2 {     
    color: #fff;
    font-size: clamp(24px, 5.5vw, 47px);
    line-height: 1.28; 
  }
.advisor-copy h2 .hl { color: var(--green); }
.advisor-copy p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.6; margin-top: 14px; max-width: 460px; }
.advisor-avatars { 
      display: flex;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    right: 50px;
    bottom: 50px;
 }
.advisor-avatars .avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.38);
  margin-left: -14px;
  opacity: 0;
  transform: scale(0.15) translateY(34px) rotate(-24deg);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.34,1.8,.4,1);
}
.advisor-avatars .avatar-circle:first-child { margin-left: 0; }
.advisor-avatars .avatar-plus {
  background: var(--blue) !important;
  border-color: var(--blue);
  color: #fff;
  animation: advisorPulse 1.8s ease-in-out infinite;
  animation-play-state: paused;
}
.advisor-avatars.is-visible .avatar-circle { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); background-color: #0e1c33;}
.advisor-avatars.is-visible .avatar-circle:nth-child(1) { transition-delay: 0s; z-index: 2; }
.advisor-avatars.is-visible .avatar-circle:nth-child(2) { transition-delay: 0.15s; z-index: 1; }
.advisor-avatars.is-visible .avatar-circle:nth-child(3) { transition-delay: 0.3s; }
.advisor-avatars.is-visible .avatar-circle:nth-child(4) { transition-delay: 0.45s; }
.advisor-avatars.is-visible .avatar-plus { animation-play-state: running; }
@keyframes advisorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57,118,241,0.55); }
  50% { box-shadow: 0 0 0 14px rgba(57,118,241,0); }
}
@media (max-width: 980px) {
  .advisor-panel { padding: 20px; }
  .floating-border { padding: 24px; }
  .advisor-panel-inner {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        min-height: 0;
        text-align: center;
        margin: auto;
  }
  .advisor-panel-inner .cta-icon-anim {
    margin-top: -90px;
    align-self: center;
    margin-bottom: 30px;
  }
  .advisor-copy p { max-width: none; }
  .advisor-avatars {
    position: static;
    right: auto;
    bottom: auto;
    margin-top: 4px;
  }
  .stats-row {
    justify-content: center;
  }
  .stat .num {
    font-size: clamp(22px, 9vw, 60px);
  }
  .news-card {
        min-height: 80vw;
  }
}
@media (max-width: 640px) {
  .advisor-panel { padding: 36px 28px; }
  .advisor-panel-inner { flex-direction: column; }
  .advisor-avatars { margin-top: 4px; }

  .floating-border {
    border: 1px solid rgba(110, 147, 245, 0.28);
    border-radius: 24px;
    padding: 20px !important;
}
}

@media (max-width: 1200px) {
  .v-1200 {
    display: none;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-soft); }
.footer-top { padding-bottom: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 40px;
}
.footer-grid > div:nth-child(-n+3) { border-right: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 280px; }
.footer-brand .site-link { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 700; }
.footer-col h4 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 15px; color: var(--body); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(-n+3) { border-right: none; }
}

/* ============================================================
   Utilities / reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 20px 0; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section-pad { padding: 56px 0; }
  .cta-banner { border-radius: 18px; }
}
