/* ============================================================
   Astrl Mind Technologies — Unified Design System v2.0
   Bootstrap 4.6 + Custom · PHP 5.x Compatible
   UWAMP / GoDaddy Shared Hosting Ready
   ============================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --navy:          #0a1628;
  --navy-mid:      #1a2d50;
  --navy-soft:     #0d1f3c;
  --blue:          #3b6ee8;
  --blue-hover:    #2558d4;
  --blue-light:    #7ba3f5;
  --blue-pale:     #eff6ff;
  --violet:        #7c3aed;
  --cyan:          #0891b2;
  --green:         #059669;
  --amber:         #d97706;

  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --white:         #ffffff;

  --font:          'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'IBM Plex Mono', 'Courier New', monospace;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:     0 12px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:     0 24px 60px rgba(0,0,0,.12);

  --radius-sm:     2px;
  --radius:        4px;
  --radius-md:     6px;

  --transition:         150ms cubic-bezier(.4,0,.2,1);
  --transition-slow:    280ms cubic-bezier(.4,0,.2,1);
}

/* ── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.am-body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); text-decoration: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container-xl   { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad    { padding: 5rem 0; }
.section-pad-lg { padding: 7rem 0; }
.section-pad-sm { padding: 3rem 0; }
.pt-nav         { padding-top: 80px; }

/* ── Eyebrow / Label ─────────────────────────────────────────── */
.am-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}

/* ── Headings ────────────────────────────────────────────────── */
.am-section-title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.am-hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.am-page-hero-title {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
}
.am-page-hero-desc {
  color: rgba(255,255,255,.6);
  font-size: .98rem;
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── Divider ─────────────────────────────────────────────────── */
.am-divider { width: 40px; height: 3px; background: var(--blue); margin: 1rem 0 1.5rem; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.am-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: .7rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow);
  z-index: 1050;
}
.am-navbar.scrolled { box-shadow: var(--shadow-md); }
.am-navbar .nav-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: .5rem .7rem;
  transition: color var(--transition);
  letter-spacing: .01em;
}
.am-navbar .nav-link:hover,
.am-navbar .nav-item.active > .nav-link { color: var(--navy); }
.am-nav-lxp { color: var(--blue) !important; font-weight: 600 !important; }
.am-badge-new {
  display: inline-block;
  font-size: .57rem; font-weight: 700;
  letter-spacing: .06em;
  background: var(--blue); color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 3px;
  text-transform: uppercase;
}
.am-dropdown {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
}
.am-dropdown .dropdown-item {
  font-size: .81rem; font-weight: 500;
  color: var(--gray-600);
  padding: .52rem 1.2rem;
  transition: all var(--transition);
}
.am-dropdown .dropdown-item:hover { color: var(--blue); background: var(--blue-pale); }
.am-toggle-icon { font-size: 1.1rem; color: var(--navy); }

/* Brand */
.am-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.am-brand-logo {
  width: 33px; height: 33px;
  background: var(--navy); color: #fff;
  font-size: .88rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.am-brand-text  { display: flex; flex-direction: column; line-height: 1.1; }
.am-brand-name  { font-size: .77rem; font-weight: 800; color: var(--navy); letter-spacing: .08em; }
.am-brand-sub   { font-size: .59rem; font-weight: 600; color: var(--blue); letter-spacing: .18em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.am-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--blue); color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: .6rem 1.35rem;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
  letter-spacing: .02em;
  text-decoration: none;
}
.am-btn-primary:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 4px 16px rgba(59,110,232,.32); text-decoration: none; }

.am-btn-dark {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--navy); color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: .6rem 1.35rem;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
  text-decoration: none;
}
.am-btn-dark:hover { background: var(--blue); color: #fff; text-decoration: none; }

.am-btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: .6rem 1.35rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.am-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); text-decoration: none; }

.am-btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: var(--blue);
  font-size: .82rem; font-weight: 600;
  padding: .55rem 1.25rem;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.am-btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }

.am-btn-lg { padding: .82rem 1.9rem; font-size: .88rem; }

.am-text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .83rem; font-weight: 600; color: var(--blue);
  transition: gap var(--transition), color var(--transition);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none;
}
.am-text-link:hover { gap: .7rem; color: var(--blue-hover); text-decoration: none; }
.am-text-link-white { color: rgba(255,255,255,.75); }
.am-text-link-white:hover { color: #fff; gap: .7rem; }

/* ═══════════════════════════════════════════════════════════
   TAGS / CHIPS / BADGES
═══════════════════════════════════════════════════════════ */
.am-tag {
  display: inline-block;
  font-size: .69rem; font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid rgba(59,110,232,.28);
  background: rgba(59,110,232,.07);
  color: var(--blue);
  padding: .22rem .62rem;
  border-radius: var(--radius-sm);
}
.am-tag-dark {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--blue-light);
}
.am-chip {
  display: inline-block;
  font-size: .72rem; font-weight: 500;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
}
.am-eyebrow-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(59,110,232,.4);
  background: rgba(59,110,232,.1);
  color: var(--blue-light);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
}
.am-eyebrow-badge .dot {
  width: 6px; height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.am-badge {
  font-size: .65rem; font-weight: 700;
  padding: .2rem .6rem;
  letter-spacing: .04em;
  border-radius: var(--radius-sm);
}
.am-badge-blue { background: var(--blue-pale); color: var(--blue); border: 1px solid rgba(59,110,232,.2); }
.am-badge-gray { background: var(--gray-50);  color: var(--gray-600); border: 1px solid var(--gray-200); }

/* ═══════════════════════════════════════════════════════════
   HERO — Main
═══════════════════════════════════════════════════════════ */
.am-hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 7rem 0 0;
}
.am-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.am-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
  background: linear-gradient(to left, rgba(59,110,232,.08), transparent);
  pointer-events: none;
}
.am-hero-inner { position: relative; z-index: 2; }
.am-hero-title { color: #fff; }
.am-hero-title .am-accent { color: var(--blue-light); }
.am-hero-subtitle {
  color: rgba(255,255,255,.65);
  font-size: 1.02rem; line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2.25rem;
}

/* Inner page hero */
.am-page-hero {
  background: var(--navy);
  padding: 6.5rem 0 4rem;
  position: relative; overflow: hidden;
}
.am-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.03) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.am-page-hero-inner { position: relative; z-index: 2; }

/* Stats strip */
.am-stats-strip {
  background: rgba(255,255,255,.05);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4rem;
}
.am-stat-item { text-align: center; padding: 1.75rem 1rem; }
.am-stat-val  { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1; display: block; }
.am-stat-lbl  { font-size: .77rem; color: rgba(255,255,255,.5); margin-top: .3rem; display: block; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════════
   LXP HERO
═══════════════════════════════════════════════════════════ */
.am-lxp-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1a38 50%, var(--navy-mid) 100%);
  padding: 7rem 0 5rem;
  position: relative; overflow: hidden;
}
.am-lxp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(59,110,232,.1) 0%, transparent 50%);
  pointer-events: none;
}
.am-lxp-hero-inner { position: relative; z-index: 2; }
.am-lxp-title {
  font-size: clamp(1.95rem, 4.5vw, 3.1rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.025em;
}
.am-lxp-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   CARDS — Service
═══════════════════════════════════════════════════════════ */
.am-service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 2rem;
  height: 100%;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.am-service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition-slow);
}
.am-service-card:hover { border-color: rgba(59,110,232,.25); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; text-decoration: none; }
.am-service-card:hover::after { transform: scaleX(1); }
.am-service-icon {
  width: 44px; height: 44px;
  background: var(--navy); color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.am-service-card-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .55rem; }
.am-service-card-desc  { font-size: .83rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 1.25rem; }

/* CARDS — Value / Feature */
.am-value-card {
  border: 1px solid var(--gray-100);
  padding: 2rem;
  height: 100%;
  display: flex; gap: 1.25rem;
  transition: box-shadow var(--transition-slow);
  background: var(--white);
}
.am-value-card:hover { box-shadow: var(--shadow-md); }
.am-value-icon {
  width: 40px; height: 40px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.am-value-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.am-value-desc  { font-size: .82rem; color: var(--gray-500); line-height: 1.65; margin: 0; }

/* CARDS — Dark */
.am-dark-card {
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem;
  transition: border-color var(--transition-slow);
  background: rgba(255,255,255,.03);
}
.am-dark-card:hover { border-color: rgba(59,110,232,.4); }
.am-dark-card-title { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.am-dark-card-sub   { color: rgba(255,255,255,.4); font-size: .78rem; }

/* CARDS — Step/Numbered */
.am-step-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 1.75rem;
  height: 100%;
}
.am-step-num   { font-size: 2.25rem; font-weight: 800; color: rgba(59,110,232,.2); line-height: 1; font-family: var(--font-mono); display: block; margin-bottom: 1rem; }
.am-step-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.am-step-desc  { font-size: .82rem; color: var(--gray-500); line-height: 1.65; margin: 0; }

/* CARDS — Lab */
.am-lab-card {
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem;
  transition: border-color var(--transition-slow);
  background: rgba(255,255,255,.03);
}
.am-lab-card:hover { border-color: rgba(59,110,232,.4); }
.am-lab-title { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.am-lab-desc  { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.7; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   TECHNOLOGY CARDS
═══════════════════════════════════════════════════════════ */
.am-tech-card {
  border: 1px solid var(--gray-100);
  padding: 1.75rem;
  height: 100%;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.am-tech-card:hover { border-color: rgba(59,110,232,.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.am-tech-num   { font-size: .7rem; font-weight: 700; color: var(--blue); letter-spacing: .12em; font-family: var(--font-mono); margin-bottom: 1rem; display: block; }
.am-tech-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; transition: color var(--transition); }
.am-tech-card:hover .am-tech-title { color: var(--blue); }
.am-tech-hl    { font-size: .78rem; font-weight: 600; color: var(--gray-500); margin-bottom: .9rem; line-height: 1.45; }
.am-tech-tags  { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ═══════════════════════════════════════════════════════════
   SOLUTIONS CARDS
═══════════════════════════════════════════════════════════ */
.am-sol-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 2rem;
  height: 100%;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.am-sol-card:hover { border-color: rgba(59,110,232,.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.am-sol-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.am-sol-num   { font-size: .72rem; font-weight: 700; color: var(--blue); font-family: var(--font-mono); letter-spacing: .1em; }
.am-sol-tagline { font-size: .69rem; font-weight: 600; color: var(--gray-500); background: var(--gray-50); border: 1px solid var(--gray-200); padding: .22rem .6rem; }
.am-sol-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; transition: color var(--transition); }
.am-sol-card:hover .am-sol-title { color: var(--blue); }
.am-sol-desc  { font-size: .83rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 1.2rem; flex: 1; }
.am-sol-industries { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; }
.am-sol-cta   { font-size: .82rem; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: .4rem; transition: gap var(--transition); margin-top: auto; }
.am-sol-card:hover .am-sol-cta { gap: .75rem; }

/* ═══════════════════════════════════════════════════════════
   INDUSTRY BUTTON
═══════════════════════════════════════════════════════════ */
.am-industry-btn {
  border: 1px solid var(--gray-200);
  padding: 1.1rem 1.25rem;
  background: var(--white);
  display: block; width: 100%; text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
}
.am-industry-btn:hover,
.am-industry-btn.active {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.am-industry-btn .name { font-size: .88rem; font-weight: 700; color: var(--navy); display: block; }
.am-industry-btn .sub  { font-size: .75rem; color: var(--gray-400); display: block; margin-top: 2px; }
.am-industry-btn.active .name { color: var(--blue); }

.am-industry-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  height: 100%;
  min-height: 380px;
}
.am-area-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: .55rem 1rem;
  font-size: .82rem; font-weight: 600; color: var(--gray-700);
  transition: all var(--transition);
  width: 100%;
}
.am-area-chip .dot { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.am-area-chip:hover { border-color: var(--blue); color: var(--blue); }

/* ═══════════════════════════════════════════════════════════
   PROCESS STRIP
═══════════════════════════════════════════════════════════ */
.am-process-strip { background: var(--navy); padding: 4.5rem 0; }
.am-process-item {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
  height: 100%;
}
.am-process-item:last-child { border-right: 0; }
.am-process-num  { font-size: 2.5rem; font-weight: 800; color: rgba(59,110,232,.3); font-family: var(--font-mono); line-height: 1; margin-bottom: 1rem; display: block; }
.am-process-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.am-process-desc { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.7; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   SERVICE DETAIL PANEL
═══════════════════════════════════════════════════════════ */
.am-service-detail { border: 1px solid var(--gray-100); overflow: hidden; }
.am-sd-left { background: var(--navy); color: #fff; padding: 3rem; }
.am-sd-right { background: var(--white); padding: 3rem; }

.am-sd-list { list-style: none; padding: 0; margin: 0; }
.am-sd-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .85rem; color: rgba(255,255,255,.75);
}
.am-sd-list li:last-child { border-bottom: 0; }
.am-sd-list-dark li { border-color: var(--gray-100); color: var(--gray-700); }
.am-sd-arrow      { color: var(--blue-light); flex-shrink: 0; margin-top: 2px; font-size: .75rem; }
.am-sd-arrow-blue { color: var(--blue); flex-shrink: 0; margin-top: 2px; font-size: .75rem; }

/* ═══════════════════════════════════════════════════════════
   LXP QUESTION CARDS
═══════════════════════════════════════════════════════════ */
.am-eq-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  height: 100%;
  transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition-slow);
  border-radius: var(--radius-sm);
}
.am-eq-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(59,110,232,.2); }
.am-eq-card-header { padding: 1.75rem 1.75rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.am-eq-num     { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--blue); letter-spacing: .12em; display: block; margin-bottom: .6rem; }
.am-eq-question { font-size: .98rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: .75rem; }
.am-eq-engine  { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.am-eq-card-body { padding: 1.25rem 1.75rem 1.75rem; }
.am-eq-desc    { font-size: .83rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1rem; }
.am-eq-outputs { list-style: none; padding: 0; margin: 0; }
.am-eq-outputs li {
  font-size: .78rem; color: var(--gray-600);
  padding: .3rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: .5rem;
}
.am-eq-outputs li:last-child { border-bottom: none; }
.am-eq-outputs li::before { content: ''; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   ENGAGEMENT TILES
═══════════════════════════════════════════════════════════ */
.am-engagement-tile {
  border: 1px solid var(--gray-200);
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.am-engagement-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.am-engagement-num   { font-size: 1.5rem; font-weight: 800; color: rgba(59,110,232,.2); font-family: var(--font-mono); display: block; }
.am-engagement-label { font-size: .82rem; font-weight: 700; color: var(--navy); line-height: 1.3; display: block; margin-top: .35rem; }

/* ═══════════════════════════════════════════════════════════
   MODAL — Bootstrap 4 (data-toggle) compatible
═══════════════════════════════════════════════════════════ */
.am-modal .modal-dialog { max-width: 960px; margin: 1.5rem auto; }
.am-modal .modal-content { border: none; border-radius: 0; }

.am-modal-header {
  background: var(--navy); color: #fff;
  padding: 2rem;
  border-radius: 0; border-bottom: none;
  position: relative;
}
.am-modal-header .close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  color: rgba(255,255,255,.55); opacity: 1; font-size: 1.5rem;
  transition: color var(--transition);
  padding: 0; background: none; border: none; cursor: pointer;
  line-height: 1;
}

/* Make the custom modal body scrollable like Bootstrap expects */
.am-modal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;          /* cap the total modal height */
}

.am-modal .am-modal-header {
  flex-shrink: 0;            /* header never compresses */
  overflow-y: auto;
  max-height: 40vh;          /* prevent a very long overview from eating everything */
}

.am-modal .am-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;          /* THIS is what Bootstrap's modal-dialog-scrollable was looking for */
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
}

.am-modal .am-modal-footer {
  flex-shrink: 0;            /* footer always visible */
}
.am-modal-header .close:hover { color: #fff; }
.am-modal-body   { padding: 2rem; }
.am-modal-footer { padding: 1.25rem 2rem; border-top: 1px solid var(--gray-100); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Modal Hero (for solutions/careers Bootstrap5-style — remapped to BS4) */
.am-modal-hero {
  background: var(--navy);
  padding: 2rem 2.5rem;
  position: relative;
}
.am-modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 1.25rem;
  transition: color var(--transition); line-height: 1; padding: 0;
}
.am-modal-close:hover { color: #fff; }
.am-modal-num   { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,.1); line-height: 1; margin-bottom: .5rem; font-family: var(--font-mono); }
.am-modal-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.am-modal-overview { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 0; }
.am-modal-section-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1.25rem;
}
.am-check-list { list-style: none; padding: 0; margin: 0; }
.am-check-list li {
  font-size: .87rem; color: var(--gray-700);
  padding: .5rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5;
}
.am-check-list li:last-child { border-bottom: none; }
.am-check-list li i { flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════
   INSIGHTS
═══════════════════════════════════════════════════════════ */
.am-insight-card {
  border: 1px solid var(--gray-100);
  height: 100%; cursor: pointer;
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
  overflow: hidden;
  background: var(--white);
  display: flex; flex-direction: column;
}
.am-insight-card:hover { box-shadow: var(--shadow-md); border-color: rgba(59,110,232,.2); }
.am-insight-card-top { height: 3px; background: var(--gray-100); transition: background var(--transition-slow); }
.am-insight-card:hover .am-insight-card-top { background: var(--blue); }
.am-insight-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.am-insight-cat   { font-size: .7rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.am-insight-read  { font-size: .72rem; color: var(--gray-400); }
.am-insight-title { font-size: .97rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin: .5rem 0 .75rem; transition: color var(--transition); }
.am-insight-card:hover .am-insight-title { color: var(--blue); }
.am-insight-excerpt { font-size: .82rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.am-insight-meta  { font-size: .75rem; color: var(--gray-400); }

/* Featured insight */
.am-insight-featured { background: var(--white); border: 1px solid var(--gray-100); overflow: hidden; }
.am-insight-feat-left {
  background: var(--navy); color: #fff; padding: 3rem; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.am-insight-feat-right { padding: 3rem; }
.am-feat-badge {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .65rem; margin-bottom: 1.25rem;
}
.am-insight-feat-title   { font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 1rem; }
.am-insight-feat-excerpt { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 1.5rem; }
.am-blockquote-xl { font-size: 4rem; color: var(--gray-100); line-height: 1; font-family: Georgia, serif; }
.am-feat-quote    { font-size: .9rem; color: var(--gray-600); font-style: italic; line-height: 1.7; margin-bottom: 1.5rem; }

/* Filter tabs */
.am-filter-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 70px; z-index: 100;
  overflow-x: auto; white-space: nowrap;
}
.am-filter-tab {
  display: inline-block; font-size: .82rem; font-weight: 500; color: var(--gray-500);
  padding: 1rem 1.1rem;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  background: none; border-left: none; border-right: none; border-top: none;
  white-space: nowrap;
}
.am-filter-tab:hover { color: var(--navy); }
.am-filter-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   CAREERS
═══════════════════════════════════════════════════════════ */
.am-jobs-group-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem;
  padding-bottom: .65rem; border-bottom: 1px solid var(--gray-200);
}
.am-jobs-group-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); white-space: nowrap; margin: 0; }
.am-jobs-group-line  { flex: 1; border-top: 1px solid var(--gray-200); }
.am-jobs-group-count { font-size: .72rem; color: var(--gray-400); font-weight: 600; white-space: nowrap; }

.am-job-row {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.am-job-row:hover { border-color: rgba(59,110,232,.3); box-shadow: 0 4px 20px rgba(59,110,232,.07); }
.am-job-body   { flex: 1; min-width: 0; }
.am-job-title  { font-size: .97rem; font-weight: 700; color: var(--navy); margin: 0 0 .4rem; transition: color var(--transition); }
.am-job-row:hover .am-job-title { color: var(--blue); }
.am-job-meta   { font-size: .78rem; color: var(--gray-400); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.am-job-meta i { color: var(--blue); margin-right: .2rem; }
.am-job-action { flex-shrink: 0; }

.am-dept-heading {
  font-size: .73rem; font-weight: 700; color: var(--gray-500);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 1.1rem 0 .55rem;
  border-bottom: 1px solid var(--gray-200); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.am-dept-count { background: var(--gray-100); color: var(--gray-500); font-size: .68rem; padding: .1rem .4rem; border-radius: 2px; }

.am-perk-card {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem;
  transition: border-color var(--transition);
}
.am-perk-card:hover { border-color: rgba(59,110,232,.4); }
.am-perk-label { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.am-perk-sub   { font-size: .75rem; color: var(--blue-light); opacity: .7; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.am-contact-info { background: var(--gray-50); border: 1px solid var(--gray-100); padding: 1.25rem 1.5rem; }
.am-contact-info .title { font-size: .75rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.am-contact-info a { font-size: .88rem; color: var(--blue); }
.am-office-card { border: 1px solid var(--gray-100); padding: 1.1rem 1.4rem; transition: border-color var(--transition); background: var(--white); }
.am-office-card:hover { border-color: rgba(59,110,232,.3); }
.am-office-card .city   { font-size: .88rem; font-weight: 700; color: var(--navy); }
.am-office-card .region { font-size: .78rem; color: var(--gray-400); }
.am-office-card .email  { font-size: .82rem; color: var(--blue); display: block; margin-top: .25rem; }

/* Forms */
.am-form-label   { font-size: .79rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; display: block; }
.am-form-control {
  width: 100%; border: 1px solid var(--gray-200);
  padding: .7rem .9rem; font-size: .88rem; font-family: var(--font);
  color: var(--gray-700); background: var(--white);
  outline: none; border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.am-form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,110,232,.1); }
.am-form-control::placeholder { color: var(--gray-400); }
select.am-form-control { -webkit-appearance: none; appearance: none; cursor: pointer; }

.am-input {
  display: block; width: 100%;
  border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-700);
  font-size: .88rem; font-family: var(--font);
  padding: .7rem 1rem;
  outline: none; border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.am-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,110,232,.1); }
.am-input::placeholder { color: var(--gray-400); }
textarea.am-input { resize: vertical; }

.am-select {
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-700); font-size: .85rem; font-family: var(--font);
  padding: .55rem 1rem; outline: none;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}
.am-select:focus { border-color: var(--blue); }

.am-alert-success {
  border: 1px solid #bbf7d0; background: #f0fdf4;
  padding: 2.5rem; text-align: center;
  border-radius: var(--radius-sm);
}
.am-alert-success .icon  { font-size: 2.5rem; color: #22c55e; display: block; margin-bottom: 1rem; }
.am-alert-success .title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.am-alert-success .sub   { font-size: .85rem; color: var(--gray-500); }

.am-success-icon {
  width: 52px; height: 52px; background: #ecfdf5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-size: 1.6rem; color: #10b981;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — KV Table
═══════════════════════════════════════════════════════════ */
.am-kv-row { display: flex; border-bottom: 1px solid var(--gray-100); padding: .85rem 0; }
.am-kv-key { width: 200px; flex-shrink: 0; font-size: .8rem; color: var(--gray-400); font-weight: 500; padding-right: 1rem; }
.am-kv-val { font-size: .85rem; font-weight: 700; color: var(--navy); }

/* Mission / Vision */
.am-mission-box { height: 100%; padding: 2.5rem; display: flex; flex-direction: column; }
.am-mission-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 1.25rem; flex-shrink: 0; }
.am-mission-box-dark  { background: var(--navy); }
.am-mission-box-light { background: var(--white); border: 1px solid var(--gray-200); }

/* Quad */
.am-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 100%; }
.am-quad-cell { display: flex; align-items: flex-end; padding: 2rem 1.75rem; min-height: 140px; }
.am-quad-cell span { font-size: .88rem; font-weight: 700; color: #fff; line-height: 1.3; }

/* Checklist */
.am-checklist { list-style: none; padding: 0; margin: 0; }
.am-checklist li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; font-size: .88rem; color: var(--gray-700); }
.am-checklist li i { color: var(--blue); width: 16px; flex-shrink: 0; }
.am-checklist-dark li { color: rgba(255,255,255,.7); }
.am-checklist-dark li i { color: var(--blue-light); }

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER / CTA
═══════════════════════════════════════════════════════════ */
.am-newsletter-form { display: flex; gap: .75rem; max-width: 460px; margin: 1.5rem auto 0; flex-wrap: wrap; justify-content: center; }
.am-newsletter-input {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-family: var(--font); font-size: .85rem;
  padding: .7rem 1rem; outline: none;
  transition: border-color var(--transition);
  border-radius: var(--radius-sm);
}
.am-newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.am-newsletter-input:focus { border-color: var(--blue); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.am-footer-cta {
  background: var(--navy-soft);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 3rem 0;
}
.am-footer-cta-title { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0; }
.am-footer-cta-sub   { color: rgba(255,255,255,.45); font-size: .85rem; margin: .25rem 0 0; }

.am-footer { background: var(--navy); color: rgba(255,255,255,.55); padding: 4rem 0 0; }
.am-footer-row { padding-bottom: 2rem; }
.am-footer-heading { font-size: .72rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.am-footer-desc { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.45); }

.am-footer-nav { list-style: none; padding: 0; margin: 0; }
.am-footer-nav li { margin-bottom: .55rem; }
.am-footer-nav a { font-size: .82rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.am-footer-nav a:hover { color: #fff; }

.am-footer-offices li { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .6rem; font-size: .82rem; }
.am-footer-icon { color: var(--blue); width: 14px; flex-shrink: 0; }
.am-footer-link { font-size: .82rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.am-footer-link:hover { color: var(--blue-light); }
.am-footer-contact a { font-size: .82rem; color: rgba(255,255,255,.45); }
.am-footer-contact a:hover { color: var(--blue-light); }

.am-footer-bottom {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0; margin-top: 1rem;
}
.am-footer-copy  { font-size: .75rem; color: rgba(255,255,255,.3); margin: 0; }
.am-footer-legal { display: flex; gap: 1.25rem; }
.am-footer-legal a { font-size: .75rem; color: rgba(255,255,255,.3); transition: color var(--transition); }
.am-footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════════════════ */
#am-totop {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 40px; height: 40px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity var(--transition-slow), background var(--transition);
  z-index: 999; font-size: .85rem;
  border: none;
}
#am-totop.visible { opacity: 1; pointer-events: auto; }
#am-totop:hover { background: var(--blue); }

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════ */
.am-bg-navy     { background: var(--navy); }
.am-bg-navy-mid { background: var(--navy-mid); }
.am-bg-gray     { background: var(--gray-50); }
.am-bg-white    { background: var(--white); }
.am-text-blue   { color: var(--blue); }
.am-text-muted  { color: rgba(255,255,255,.45); }
.am-border-b    { border-bottom: 1px solid var(--gray-100); }
.am-border-t-white { border-top: 1px solid rgba(255,255,255,.08); }

.text-white-60  { color: rgba(255,255,255,.6) !important; }
.text-white-45  { color: rgba(255,255,255,.45) !important; }

/* Bootstrap 4 gap polyfill */
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

/* Link arrow */
.am-link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--blue); font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: gap var(--transition);
}
.am-link-arrow:hover { gap: .75rem; color: var(--blue-hover); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .am-navbar { padding: .6rem 0; }
  #navMain   { border-top: 1px solid var(--gray-100); margin-top: .5rem; padding: .75rem 0; }
  .am-quad   { grid-template-columns: 1fr; }
  .am-process-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 1.5rem; }
  .am-process-item:last-child { border-bottom: 0; }
  .am-sd-left, .am-sd-right { padding: 2rem; }
  .am-modal .modal-dialog { max-width: 96%; margin: 1rem auto; }
  .am-kv-key { width: 140px; }
  .am-industry-panel { min-height: auto; }
}
@media (max-width: 767.98px) {
  .am-insight-feat-left, .am-insight-feat-right { padding: 2rem; }
  .am-job-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .am-job-action { width: 100%; }
  .am-job-action .am-btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
  .am-hero        { padding: 5rem 0 0; }
  .am-page-hero   { padding: 5rem 0 2.5rem; }
  .am-lxp-hero    { padding: 5rem 0 3.5rem; }
  .am-footer-cta  { padding: 2rem 0; }
  .am-newsletter-form { flex-direction: column; }
  .section-pad    { padding: 3.5rem 0; }
  .am-modal-body  { padding: 1.25rem; }
  .am-modal-footer{ padding: 1rem 1.25rem; }
  .am-sd-left, .am-sd-right { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════════════════════════════════ */
.am-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.am-fade.am-visible {
  opacity: 1;
  transform: translateY(0);
}
