/* ═══════════════════════════════════════════════════════════════
   SPARK INFO SOLUTIONS — v2.0 Design System
   Senior Designer Build — Apple/Google Aesthetic Standard
   Conglomerate-grade site competing with Infosys, TCS, Accenture
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Brand identity (faithful to sparkweb/styles.css) ── */
  --ink:       #062f49;
  --logo-bg:   #01426c;
  --navy:      #003f63;
  --deep:      #071624;
  --muted:     #5e7484;
  --body-text: #061a24;
  --paper:     #f4faff;
  --white:     #ffffff;
  --blue:      #0878b8;
  --cyan:      #d9f3ff;
  --red:       #e63c47;
  --red-soft:  #fff2f3;
  --line:      rgba(0,63,99,0.14);
  --shadow:    0 26px 70px rgba(0,63,99,0.18);
  --radius:    8px;

  /* ── Derived alpha tokens ── */
  --navy-05: rgba(0,63,99,0.05);
  --navy-10: rgba(0,63,99,0.10);
  --navy-20: rgba(0,63,99,0.20);
  --navy-40: rgba(0,63,99,0.40);
  --blue-10: rgba(8,120,184,0.10);
  --blue-20: rgba(8,120,184,0.20);
  --blue-30: rgba(8,120,184,0.30);
  --red-10:  rgba(230,60,71,0.10);
  --red-20:  rgba(230,60,71,0.20);
  --white-10: rgba(255,255,255,0.10);
  --white-20: rgba(255,255,255,0.20);
  --white-80: rgba(255,255,255,0.80);
  --white-90: rgba(255,255,255,0.90);

  /* ── Radii ── */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* ── Shadows ── */
  --shadow-sm: 0 4px 16px rgba(0,63,99,0.10);
  --shadow-md: 0 12px 36px rgba(0,63,99,0.14);
  --shadow-lg: 0 26px 70px rgba(0,63,99,0.18);
  --shadow-xl: 0 40px 100px rgba(0,63,99,0.24);

  /* ── Typography ── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ── Layout ── */
  --max-w:      1340px;
  --section-py: clamp(4rem, 8vw, 8rem);
  --gutter:     clamp(1.25rem, 5vw, 4rem);

  /* ── Motion ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  150ms ease;
  --t-base:  280ms ease;
  --t-slow:  500ms ease;
  --t-xslow: 800ms var(--ease-out);
}

/* ─── 2. RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: inline-block; flex-shrink: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.08; letter-spacing: 0.005em; overflow-wrap: break-word; }

/* ─── 3. TYPOGRAPHY ──────────────────────────────────────────── */
.display-xl  { font-size: clamp(3rem, 6vw, 7rem); font-weight: 700; }
.display-lg  { font-size: clamp(2.5rem, 4.5vw, 5.5rem); font-weight: 700; }
.display-md  { font-size: clamp(2rem, 3.5vw, 4rem); font-weight: 600; }
h1           { font-size: clamp(2.2rem, 3.6vw, 4.2rem); font-weight: 700; }
h2           { font-size: clamp(1.6rem, 2.6vw, 2.8rem); font-weight: 600; }
h3           { font-size: clamp(1.2rem, 1.8vw, 1.75rem); font-weight: 600; }
h4           { font-size: 1.125rem; font-weight: 600; }
p            { max-width: 68ch; line-height: 1.7; }
.lead        { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.eyebrow--white { color: var(--cyan); }
.eyebrow--white::before { background: var(--cyan); }
.eyebrow--red { color: var(--red); }
.eyebrow--red::before { background: var(--red); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── 4. LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-py); }
.section--flush { padding-block: 0; }
.section--sm { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; }

.section-header {
  margin-bottom: clamp(2rem, 4vw, 4rem);
  max-width: 800px;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header .lead { margin-top: 0.75rem; }

/* ─── 5. BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 8px 32px rgba(230,60,71,0.32);
}
.btn-primary:hover {
  background: #d63440;
  box-shadow: 0 12px 40px rgba(230,60,71,0.44);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0,63,99,0.14);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.32);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
}

.btn-navy {
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 0.82rem; }

.btn-arrow { gap: 10px; }
.btn-arrow::after {
  content: '→';
  position: static;
  inset: unset;
  background: transparent;
  display: inline-block;
  font-size: 1em;
  line-height: 1;
  transition: transform var(--t-fast);
}
.btn-arrow:hover::after { transform: translateX(4px); background: transparent; }

/* ─── 6. NAVIGATION ──────────────────────────────────────────── */
.topbar {
  background: var(--deep);
  padding: 8px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.80);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: color var(--t-fast);
}
.topbar-contact a:hover { color: var(--cyan); }
.topbar-contact svg { width: 13px; height: 13px; fill: currentColor; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-social a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
}
.topbar-social a:hover { color: var(--cyan); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--logo-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.site-header.scrolled {
  background: rgba(1,66,108,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 40px rgba(0,0,0,0.32);
}

.header-inner {
  position: relative;
  z-index: 195;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 58px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

/* ─── 7. MEGA MENU ────────────────────────────────────────────── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--white-10);
}

.nav-item {
  position: static;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
  color: var(--white);
  background: var(--white-10);
}
.nav-trigger .chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--t-base);
}
.nav-item.is-open .chevron { transform: rotate(180deg); }

/* Full-width mega panel */
.mega-panel {
  position: fixed;
  top: 72px; /* JS overrides this on open to header.getBoundingClientRect().bottom */
  left: 0;
  right: 0;
  z-index: 190;
  padding-top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base);
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  z-index: 9999;
  width: 0%;
  transition: width 60ms linear;
}
.mega-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-item.is-open .mega-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}
.nav-item.is-open .mega-inner {
  pointer-events: auto;
}

.mega-inner {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 2.5rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 280px;
  gap: 2rem;
}

.mega-col-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.82);
  transition: all var(--t-fast);
  margin-bottom: 2px;
}
.mega-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.mega-item:hover .mega-item-icon { background: var(--blue); }

.mega-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.mega-item-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.mega-item-content strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.mega-item-content em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* 4th featured column */
.mega-featured {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mega-feat-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.mega-feat-stat { }
.mega-feat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.mega-feat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.mega-feat-headline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  margin-top: auto;
}
.mega-feat-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  max-width: 100%;
}
.mega-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--t-fast);
  align-self: flex-start;
  margin-bottom: 1.5rem;
}
.mega-feat-cta:hover { background: #c4313c; transform: translateY(-1px); }
.mega-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--blue-10);
  border: 1px solid var(--blue-20);
  color: var(--cyan);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.mega-feat-badge::before {
  content: '●';
  font-size: 0.5rem;
  color: var(--blue);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 20px;
  margin-left: 8px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-fast);
  box-shadow: 0 4px 18px rgba(230,60,71,0.32);
}
.nav-cta:hover {
  background: #c4313c;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230,60,71,0.44);
}

/* Brochure link in nav */
.nav-brochure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.16);
  transition: all var(--t-fast);
}
.nav-brochure:hover { background: var(--white-10); border-color: rgba(255,255,255,0.32); }
.nav-brochure svg { width: 13px; height: 13px; fill: currentColor; }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  gap: 5px;
  background: var(--white-10);
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--t-base);
  transform-origin: center;
}
.nav-mobile-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── 8. MOBILE DRAWER ───────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--deep);
  padding: 0 var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--deep);
  z-index: 1;
}
.mobile-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mobile-drawer-close {
  position: static;
  flex-shrink: 0;
  display: flex !important;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--white-90);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav-link:hover { color: var(--cyan); }

.mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  color: var(--white-90);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-accordion-trigger svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform var(--t-base);
}
.mobile-accordion-trigger.is-open svg { transform: rotate(180deg); }

.mobile-accordion-body {
  display: none;
  padding: 0.5rem 0 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-accordion-body.is-open { display: block; }
.mobile-accordion-body a {
  display: block;
  padding: 8px 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  transition: color var(--t-fast);
}
.mobile-accordion-body a:hover { color: var(--cyan); }

.mobile-cta { margin-top: 2rem; }

/* ─── 9. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}

/* Animated cinematic background (video-style) */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(8,120,184,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(230,60,71,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(0,63,99,0.5) 0%, transparent 50%),
    linear-gradient(135deg, #071624 0%, #003f63 60%, #01426c 100%);
  animation: hero-gradient-shift 12s ease-in-out infinite alternate;
}
@keyframes hero-gradient-shift {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.04); }
}

/* Dot matrix overlay */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,243,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: dots-drift 25s linear infinite;
}
@keyframes dots-drift {
  from { transform: translateX(0) translateY(0); }
  to   { transform: translateX(-28px) translateY(-28px); }
}

/* Grid line overlay */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8,120,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,120,184,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 10s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(8,120,184,0.3), transparent 70%);
  top: -20%; left: -10%;
  animation-duration: 14s;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,60,71,0.2), transparent 70%);
  bottom: -10%; right: 10%;
  animation-duration: 11s;
  animation-delay: -4s;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,63,99,0.4), transparent 70%);
  top: 40%; right: 25%;
  animation-duration: 18s;
  animation-delay: -8s;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  33%       { transform: translateY(-30px) translateX(15px) scale(1.05); }
  66%       { transform: translateY(20px) translateX(-20px) scale(0.96); }
}

/* Hero image overlay (if using background photo) */
.hero-img-overlay {
  position: absolute;
  inset: 0;
}
.hero-img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(30%) contrast(1.1);
}
.hero-img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,22,36,0.95) 30%, rgba(7,22,36,0.6) 70%, rgba(7,22,36,0.3));
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(0.5rem, 1.5vw, 1rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(8,120,184,0.15);
  border: 1px solid rgba(8,120,184,0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero-title .accent-word { color: var(--cyan); font-style: italic; }
.hero-title .accent-red { color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Hero right panel — floating card */
.hero-panel {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: 2rem;
  animation: hero-card-float 6s ease-in-out infinite;
}
@keyframes hero-card-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.hero-stat { }
.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hero-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.hero-clients-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-client-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 500;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%       { transform: scaleY(0.3); transform-origin: top; opacity: 0.5; }
}

/* ─── 10. BENTO GRID ─────────────────────────────────────────── */

/* Homepage services bento */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px 190px;
  grid-template-areas:
    'staffing staffing sap     devops'
    'java     chatbot  plm     plm   '
    'ams      ams      consult consult';
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}

.bento-cell {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--paper);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Bento span variants */
.bento-c1 { grid-column: span 3; }
.bento-c2 { grid-column: span 4; }
.bento-c3 { grid-column: span 5; }
.bento-c4 { grid-column: span 6; }
.bento-c5 { grid-column: span 7; }
.bento-c6 { grid-column: span 8; }
.bento-c7 { grid-column: span 9; }
.bento-c8 { grid-column: span 12; }
.bento-r2 { grid-row: span 2; }
.bento-r3 { grid-row: span 3; }

/* Bento cell themes */
.bento-cell--dark {
  background: linear-gradient(135deg, var(--deep), var(--navy));
  color: var(--white);
}
.bento-cell--navy {
  background: var(--navy);
  color: var(--white);
}
.bento-cell--blue {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
}
.bento-cell--red {
  background: linear-gradient(135deg, var(--red), #c93340);
  color: var(--white);
}
.bento-cell--accent {
  background: var(--cyan);
  color: var(--navy);
}
.bento-cell--glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
}

.bento-cell--img {
  background: var(--navy);
}
.bento-cell--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.bento-cell--img:hover img { transform: scale(1.04); }
.bento-cell--img .bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,22,36,0.85) 0%, rgba(7,22,36,0.2) 50%, transparent);
}
.bento-cell--img .bento-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.bento-body {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-10);
  margin-bottom: 1rem;
}
.bento-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.bento-cell--dark .bento-icon,
.bento-cell--navy .bento-icon,
.bento-cell--blue .bento-icon { background: rgba(255,255,255,0.12); }
.bento-cell--dark .bento-icon svg,
.bento-cell--navy .bento-icon svg,
.bento-cell--blue .bento-icon svg { stroke: var(--cyan); }

.bento-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.bento-cell--dark .bento-label,
.bento-cell--navy .bento-label,
.bento-cell--blue .bento-label,
.bento-cell--red .bento-label,
.bento-cell--img .bento-label { color: rgba(255,255,255,0.5); }

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.bento-cell--dark .bento-title,
.bento-cell--navy .bento-title,
.bento-cell--blue .bento-title,
.bento-cell--red .bento-title,
.bento-cell--img .bento-title { color: var(--white); }

.bento-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}
.bento-cell--dark .bento-desc,
.bento-cell--navy .bento-desc,
.bento-cell--blue .bento-desc,
.bento-cell--img .bento-desc { color: rgba(255,255,255,0.65); }
.bento-cell--red .bento-desc { color: rgba(255,255,255,0.8); }

.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap var(--t-fast);
}
.bento-cta:hover { gap: 10px; text-decoration: underline; }
.bento-cell--dark .bento-cta,
.bento-cell--navy .bento-cta,
.bento-cell--blue .bento-cta,
.bento-cell--img .bento-cta { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.bento-cell--red .bento-cta { color: rgba(255,255,255,0.9); }

/* Big number cell */
.bento-big-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.bento-cell--dark .bento-big-number,
.bento-cell--navy .bento-big-number { color: var(--white); }

/* ─── 11. CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--blue-10);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 100%;
}

/* Service card */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.service-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--t-base);
}
.service-card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.service-card:hover .service-card-icon { background: var(--blue); }
.service-card:hover .service-card-icon svg { stroke: var(--white); }

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.service-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--t-fast);
}
.service-card-link:hover { gap: 10px; }

/* Industry card */
.industry-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
  cursor: pointer;
  transition: transform var(--t-base);
}
.industry-card:hover { transform: translateY(-4px); }
.industry-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity var(--t-base), transform var(--t-slow);
  filter: grayscale(20%);
}
.industry-card:hover img { opacity: 0.35; transform: scale(1.06); }
.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,22,36,0.92) 30%, rgba(0,63,99,0.4) 80%, transparent);
}
.industry-card-body {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 1.75rem;
}
.industry-card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.industry-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.industry-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--t-base);
}
.industry-card:hover .industry-card-desc { opacity: 1; transform: translateY(0); }
.industry-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity var(--t-base);
}
.industry-card:hover .industry-card-arrow { opacity: 1; }

/* Case study card */
.case-card {
  display: grid;
  grid-template-columns: minmax(240px, 40%) 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card-img {
  position: relative;
  background: var(--navy);
}
.case-card-img img {
  width: 100%; height: 100%; min-height: 240px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.case-card:hover .case-card-img img { transform: scale(1.04); }
.case-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.case-card-body .service-card-link { margin-top: auto; }
.case-card-body .card-tag { margin-bottom: 0.5rem; }
.case-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.case-card-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* Job card */
.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--t-base);
}
.job-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.job-info { flex: 1; }
.job-title { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-family: var(--font-display); }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
}
.job-badge--type { border-color: var(--blue-20); color: var(--blue); background: var(--blue-10); }

/* ─── 12. STATS BAND ─────────────────────────────────────────── */
.stats-band {
  background: var(--navy);
  padding: 3rem var(--gutter);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,243,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.stats-inner {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-number .stat-suffix { color: var(--cyan); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  display: block;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
  display: none;
}

/* ─── 13. MARQUEE / CLIENT STRIP ─────────────────────────────── */
.marquee-section {
  background: var(--deep) !important;
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.marquee-outer {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: default;
}
.marquee-item:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}
.marquee-item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ─── 14. SECTION THEMES ─────────────────────────────────────── */
.section-white { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark {
  background: var(--deep);
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark .lead { color: rgba(255,255,255,0.7); }

.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p, .section-navy .lead { color: rgba(255,255,255,0.75); }

.section-gradient-dark {
  background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 60%, var(--ink) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Background dot pattern utility */
.bg-dots {
  position: relative;
  overflow: hidden;
}
.bg-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,63,99,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Diagonal cut utility */
.cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: calc(var(--section-py) + 60px);
}
.cut-top {
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-py) + 60px);
  margin-top: -60px;
}

/* ─── 15. PAGE HERO / SUBHERO ────────────────────────────────── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 60%, var(--ink) 100%);
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,243,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: dots-drift 25s linear infinite;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(8,120,184,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(230,60,71,0.12) 0%, transparent 45%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}
/* When page-hero-inner also has .container, avoid double horizontal padding */
.page-hero-inner.container { padding-inline: var(--gutter); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.72); margin-bottom: 2rem; max-width: 56ch; }
.page-hero-img,
.page-hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.page-hero-img img,
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.page-hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 12px; height: 12px; fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 2; flex-shrink: 0; }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }
.breadcrumb span:last-child { color: var(--cyan); }

/* ─── 16. PROCESS / TIMELINE ─────────────────────────────────── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-inline: 1.5rem;
  text-align: center;
}
.process-step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.process-step h4 { color: var(--ink); margin-bottom: 0.5rem; font-size: 1rem; }
.process-step p { font-size: 0.82rem; color: var(--muted); max-width: 100%; }

/* ─── 17. CAPABILITY MATRIX ──────────────────────────────────── */
.cap-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cap-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.cap-chip:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ─── 18. MASONRY GALLERY ────────────────────────────────────── */
.masonry {
  columns: 4 240px;
  gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow);
  filter: saturate(1.05) contrast(1.02);
}
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,22,36,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.masonry-item:hover .masonry-item-overlay { opacity: 1; }
.masonry-item-label {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Placeholder for missing images */
.img-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: var(--radius-lg);
}

/* ─── 19. SERVICE DETAIL PAGE ────────────────────────────────── */
.service-hero-band {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.service-hero-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-hero-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--cyan); stroke-width: 1.5; }

.service-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.service-detail-section.reverse,
.service-detail-section--reverse { direction: rtl; }
.service-detail-section.reverse > *,
.service-detail-section--reverse > * { direction: ltr; }
.service-detail-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.service-features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast);
}
.service-feature:hover { border-color: var(--blue); }
.service-feature-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--blue-10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-feature-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.service-feature-text strong { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.service-feature-text span { font-size: 0.8rem; color: var(--muted); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.skill-tag {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--navy-05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ─── 20. TESTIMONIALS ───────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--blue-10);
  pointer-events: none;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.testimonial-role { font-size: 0.75rem; color: var(--muted); }

/* ─── 21. CTA BANDS ─────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--ink) 60%, var(--deep));
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,243,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}
.cta-band-inner:has(.cta-split) {
  max-width: var(--max-w);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }

/* Bold divider CTA */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}
.cta-split-panel {
  padding: clamp(3rem, 5vw, 5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.cta-split-panel--dark {
  background: var(--navy);
  color: var(--white);
}
.cta-split-panel--light {
  background: var(--red);
  color: var(--white);
}
.cta-split-panel h2,
.cta-split-panel h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-split-panel p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 1.5rem; max-width: 100%; }

/* ─── 22. CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: var(--font-body);
}
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8,120,184,0.12);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-details-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-details-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,243,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.contact-detail-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  position: relative;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}
.contact-detail-value { color: var(--white); font-size: 0.9rem; font-weight: 500; }
.contact-detail-value a { color: var(--cyan); text-decoration: none; }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
}
.contact-map iframe { display: block; width: 100%; height: 220px; border: 0; }

/* ─── 23. CAREERS ────────────────────────────────────────────── */
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.culture-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.culture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.culture-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-10), var(--navy-05));
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.culture-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.culture-card h4 { color: var(--ink); margin-bottom: 0.5rem; }
.culture-card p { font-size: 0.85rem; color: var(--muted); max-width: 100%; }

.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.program-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.program-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
}
.program-card:hover { border-color: var(--blue-20); box-shadow: var(--shadow-sm); }
.program-card h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.4rem; }
.program-card p { font-size: 0.82rem; color: var(--muted); max-width: 100%; }

/* ─── 24. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: radial-gradient(circle at 15% 20%, rgba(8,120,184,0.12), transparent 40%),
              linear-gradient(135deg, var(--logo-bg), var(--navy) 60%, var(--deep));
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 6rem);
}

.footer-top {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 52px; width: auto; max-width: 280px;
  object-fit: contain; margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}
.footer-social-link {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--t-fast);
}
.footer-social-link:hover { background: var(--blue); color: var(--white); }
.footer-social-link svg { width: 15px; height: 15px; fill: currentColor; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-col a:last-of-type { border-bottom: none; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom span, .footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ─── 24b. CONTACT MODAL ────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 36, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.contact-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.contact-modal.is-open .contact-modal-panel {
  transform: translateY(0) scale(1);
}
.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--t-fast);
  z-index: 10;
  flex-shrink: 0;
  padding: 0;
}
.contact-modal-close:hover { background: rgba(255,255,255,0.22); }
.contact-modal-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }

/* Left decorative panel */
.contact-modal-left {
  position: relative;
  background: linear-gradient(145deg, var(--deep) 0%, var(--navy) 60%, #01426c 100%);
  padding: 3rem 2rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.contact-modal-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.contact-modal-orb--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(8,120,184,0.4), transparent 70%);
  top: -80px; left: -80px;
}
.contact-modal-orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(230,60,71,0.3), transparent 70%);
  bottom: 40px; right: -40px;
}
.contact-modal-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,243,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.contact-modal-left-content { position: relative; z-index: 1; }
.contact-modal-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.contact-modal-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.contact-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-modal-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.87rem;
}
.contact-modal-list li svg {
  width: 15px; height: 15px;
  stroke: var(--cyan); stroke-width: 2.5; fill: none;
  flex-shrink: 0;
}
.contact-modal-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.contact-modal-contact-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.83rem;
  text-decoration: none;
  transition: color var(--t-fast);
}
.contact-modal-contact-info a:hover { color: var(--cyan); }
.contact-modal-contact-info svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.contact-modal-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(8,120,184,0.2);
  border: 1px solid rgba(8,120,184,0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* Right form panel */
.contact-modal-right {
  background: var(--white);
  padding: 2.5rem 2rem;
  overflow-y: auto;
}
.contact-modal-form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.contact-modal-sub {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 1.5rem;
}
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cform-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}
.cform-row .cform-field { margin-bottom: 0; }
.cform-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.cform-req { color: var(--red); }
.cform-field input,
.cform-field select,
.cform-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  box-sizing: border-box;
}
.cform-field input:focus,
.cform-field select:focus,
.cform-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8,120,184,0.12);
}
.cform-field textarea { resize: vertical; min-height: 100px; }
.cform-submit {
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.cform-submit svg { stroke: currentColor; fill: none; stroke-width: 2; }
.cform-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.cform-success {
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cform-success h4 { font-size: 1.3rem; color: var(--ink); }
.cform-success p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 700px) {
  .contact-modal-panel { grid-template-columns: 1fr; }
  .contact-modal-left { display: none; }
  .cform-row { grid-template-columns: 1fr; }
  .contact-modal-right { padding: 2rem 1.25rem; }
  .contact-modal { padding: 0.5rem; }
}

/* ─── 25. FLOATING ACTIONS ───────────────────────────────────── */
.floating-actions { position: fixed; z-index: 300; pointer-events: none; inset: auto 0 0 0; }

.spark-chatbot { position: fixed; left: 20px; bottom: 20px; pointer-events: auto; }
.chatbot-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,63,99,0.22);
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 2px solid rgba(8,120,184,0.2);
}
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0,63,99,0.32); }
.chatbot-toggle img { width: 100%; height: 100%; object-fit: cover; }

.chatbot-panel {
  position: absolute;
  left: 0; bottom: 70px;
  width: min(340px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  visibility: hidden;
  transition: all var(--t-base);
}
.spark-chatbot.open .chatbot-panel {
  opacity: 1; transform: none; visibility: visible;
}
.chatbot-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.chatbot-head strong { color: var(--white); font-size: 0.9rem; }
.chatbot-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.chatbot-close:hover { background: rgba(255,255,255,0.28); }
.chatbot-body { padding: 1rem 1.25rem 1.25rem; }
.chatbot-body p { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.75rem; max-width: 100%; }
.chatbot-subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.chatbot-subjects a {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--t-fast);
}
.chatbot-subjects a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.36);
  pointer-events: auto;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 29px; height: 29px; fill: currentColor; }

/* ─── 26. ANIMATIONS ─────────────────────────────────────────── */
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.from-left { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.scale-up { transform: scale(0.94); }
.reveal.visible { opacity: 1; transform: none; }

/* Lottie-style CSS animations */
@keyframes ring-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  50%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.85); opacity: 0; }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(2deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradient-text {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text 4s linear infinite;
}

/* Pulse ring around icons */
.pulse-ring {
  position: relative;
  display: inline-flex;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  animation: ring-pulse 2.4s ease-out infinite;
}

/* Counter animation via JS + CSS */
.counter-value { font-variant-numeric: tabular-nums; }

/* Animated underline */
.anim-underline {
  position: relative;
}
.anim-underline::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  height: 2px;
  width: 0%;
  background: var(--blue);
  transition: width var(--t-slow);
}
.anim-underline:hover::after { width: 100%; }

/* Shimmer loading effect */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}

/* ─── 27. ABOUT PAGE SPECIFICS ───────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-img-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px;
}
.about-img-stack img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(1.06) contrast(1.03);
}
.about-img-stack > :first-child { grid-row: span 2; }
.about-img-stack-placeholder {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.value-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border-left: 3px solid var(--blue);
  transition: border-color var(--t-fast);
}
.value-item:hover { border-color: var(--red); }
.value-item strong { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 3px; }
.value-item span { font-size: 0.8rem; color: var(--muted); }

/* ─── 28. INDUSTRIES PAGE ────────────────────────────────────── */
.industry-hero-visual {
 /* display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 180px 180px;
  gap: 12px; */
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.industry-hero-visual .img-tile {
  background: var(--navy);
  overflow: hidden;
}
.industry-hero-visual .img-tile img { width: 100%; height: 100%; object-fit: cover; }
.industry-hero-visual .img-tile:first-child { grid-row: span 2; }
.industry-hero-visual .img-tile-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.industry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}
.industry-detail:nth-child(even) .industry-detail-img { order: -1; }

/* ─── 28b. HOMEPAGE SECTION PADDING ──────────────────────────── */
.home .section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.home .stats-band {
  padding: 2rem var(--gutter);
}
.home .marquee-section {
  padding: 1.25rem 0;
}
.home .cta-split {
  margin-top: 0;
}

/* ─── 29. UTILITY CLASSES ────────────────────────────────────── */
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.text-cyan { color: var(--cyan); }
.text-center { text-align: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-auto { margin-top: auto; }
.mx-auto { margin-inline: auto; }

.max-600 { max-width: 600px; }
.max-800 { max-width: 800px; }
.max-full { max-width: 100%; }

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-block: 2rem;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
}

/* ─── 30. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-c1 { grid-column: span 2; }
  .bento-c2, .bento-c3 { grid-column: span 3; }
  .bento-c4, .bento-c5 { grid-column: span 4; }
  .bento-c6, .bento-c7 { grid-column: span 6; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 1024px) {
  .mega-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mega-featured { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-img, .page-hero-img-placeholder, .page-hero-media { display: none; }
  .industry-hero-visual { display: none; }
  .service-detail-section { grid-template-columns: 1fr; }
  .service-detail-section.reverse,
  .service-detail-section--reverse { direction: ltr; }
  .service-detail-img img { max-height: 350px; }
  .about-split { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-timeline::before { display: none; }
  .industry-detail { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .main-nav, .topbar { display: none; }
  .nav-mobile-toggle { display: flex; }
  .topbar { display: none; }
  .site-header { top: 0; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento-c1, .bento-c2, .bento-c3, .bento-c4, .bento-c5, .bento-c6, .bento-c7, .bento-c8 { grid-column: span 2; }
  .bento-r2, .bento-r3 { grid-row: span 1; }

  .services-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px auto auto auto auto auto;
    grid-template-areas:
      'staffing staffing'
      'sap      devops  '
      'java     chatbot '
      'plm      plm     '
      'ams      ams     '
      'consult  consult ';
    gap: 1.5rem;
  }
  .services-bento .bento-cell { min-height: 180px; }
  .services-bento .bento-horiz {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .services-bento .bento-horiz a { white-space: normal; flex-shrink: unset; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 2 180px; }
  .cta-split { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; height: auto; }
  .about-img-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 180px; }

  /* Fix inline multi-column grids at tablet size — stack to single column for readability */
  section [style*="grid-template-columns"][style*="1fr 1fr"],
  main [style*="grid-template-columns"][style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* 3-column grids → 2 columns at tablet */
  section [style*="grid-template-columns"][style*="repeat(3"],
  main [style*="grid-template-columns"][style*="repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  /* 5-column grids → 2 columns at tablet */
  section [style*="grid-template-columns"][style*="repeat(5"],
  main [style*="grid-template-columns"][style*="repeat(5"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  /* 4-column grids → 2 columns at tablet (methodology, hiring models) */
  section [style*="grid-template-columns"][style*="repeat(4"],
  main [style*="grid-template-columns"][style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }
  .about-img-stack > :first-child { grid-row: span 1; }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .methodology-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .industry-hero-visual { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; }
  .industry-hero-visual .img-tile:first-child { grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-grid { grid-template-columns: 1fr; }
  .chatbot-subjects { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Comparison tables — scroll horizontally on tablets */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Case cards — stack image on top of text on tablets */
  .case-card {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  .case-card-img img {
    min-height: 200px;
    max-height: 240px;
  }

  /* Service detail images — reduce height on tablets */
  .service-detail-img img {
    min-height: 280px !important;
    max-height: 320px !important;
  }

  /* Fix inline 4-column grids (methodology cards, hiring models) on tablets */
  section [style*="grid-template-columns"][style*="repeat(4"],
  main [style*="grid-template-columns"][style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  /* Gallery strip — stack on tablets */
  .gallery-strip {
    grid-template-columns: 1fr !important;
  }

  /* Ensure images don't overflow their containers */
  .industry-hero-visual {
    display: none !important;
  }

  /* Fix stats band overflow on tablets */
  .stats-row,
  .istat-cell + .istat-cell {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  .bento-c1, .bento-c2, .bento-c3, .bento-c4, .bento-c5, .bento-c6, .bento-c7, .bento-c8 { grid-column: span 1; }

  .services-bento {
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto auto auto auto auto auto auto;
    grid-template-areas:
      'staffing'
      'sap     '
      'devops  '
      'java    '
      'chatbot '
      'plm     '
      'ams     '
      'consult ';
    gap: 1rem;
  }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 1; }
  .methodology-cards { grid-template-columns: 1fr !important; }
  .about-img-stack { grid-template-rows: 200px 120px; }
  .culture-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .brand-logo { height: 46px; }

  /* Service detail sections — prevent image overflow on mobile */
  .service-detail-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail-section.reverse,
  .service-detail-section--reverse {
    direction: ltr;
  }
  .service-detail-img img {
    min-height: auto;
    max-height: 280px;
  }

  /* Page hero — hide side image on very small screens */
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .page-hero-media,
  .page-hero-img {
    display: none;
  }

  /* Stats band — reduce number size on mobile */
  .stat-number {
    font-size: 1.5rem;
  }

  /* Comparison tables — scrollable on mobile */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* CTA split — stack vertically on mobile */
  .cta-split {
    grid-template-columns: 1fr;
  }
  .cta-split-panel--dark,
  .cta-split-panel--light {
    padding: 2rem 1.5rem;
  }

  /* Masonry items — ensure images display correctly */
  .masonry-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  /* Industry hero — fix padding on mobile */
  .ind-hero {
    padding: 80px 0 60px;
    min-height: auto;
  }

  /* Fix ALL inline grids on mobile (service pages, industry pages) */
  section [style*="grid-template-columns"],
  main [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Service detail images — prevent overflow on mobile */
  .service-detail-img img {
    min-height: 200px !important;
    max-height: 260px !important;
    object-fit: cover;
  }

  /* Case card images — ensure visibility on mobile */
  .case-card-img img {
    min-height: 180px !important;
    height: 180px !important;
  }

  /* Fix images going out of viewport on mobile */
  .service-detail-img img,
  .case-card-img img,
  .industry-card img,
  .masonry-item img,
  .gallery-strip-img img {
    max-width: 100%;
    height: auto;
  }

  /* Fix comparison table cells on mobile */
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Fix overflowing stats rows */
  .istat-cell,
  .stat-cell {
    padding: 1.5rem 1rem;
  }
  .istat-val,
  .stat-val {
    font-size: 2rem !important;
  }

  /* Sol-bento / programs-bento responsive */
  .sol-bento,
  .programs-bento {
    grid-template-columns: 1fr !important;
  }
  .sol-card.dark,
  .sol-card.navy,
  .program-card.navy {
    grid-column: span 1 !important;
  }

  /* Cap-grid / stats-row responsive */
  .cap-grid,
  .stats-row {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Outcomes grid responsive */
  .outcomes-grid {
    grid-template-columns: 1fr !important;
  }

  /* Delivery models responsive */
  .delivery-models {
    grid-template-columns: 1fr !important;
  }

  /* Offerings bento responsive */
  .offerings-bento {
    grid-template-columns: 1fr !important;
  }

  /* Banner images — allow height to scale on mobile */
  section img[style*="height:220px"],
  section img[style*="height: 220px"] {
    height: 160px !important;
    max-height: 160px;
  }

  /* Methodology banner containers */
  .method-card { padding: 1.25rem 1rem !important; }
  .method-card h3 { font-size: 0.95rem !important; }
  .method-card p { font-size: 0.78rem !important; }

  /* Hiring model cards — reduce padding on mobile */
  .hiring-model-card { padding: 1.25rem !important; }

  /* Page hero — reduce font sizes on mobile */
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem) !important; }
  .page-hero .lead { font-size: 0.92rem !important; }

  /* Solution bento / industry cards — stack on mobile */
  .solution-bento { grid-template-columns: 1fr !important; }
  .sol-card.featured { grid-column: span 1 !important; }
  .industry-cards-grid { grid-template-columns: 1fr !important; }
  .industry-card-main.large { grid-column: span 1 !important; }
}

/* ─── 31. REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
