/* ============================================================
   NEXCON TECHNOLOGIES — DESIGN SYSTEM
   "Innovative Ideas. Powerful Solutions."
   ============================================================ */

/* Plus Jakarta Sans (700,800) + DM Sans (700,800) + Exo 2 (700,800) + Inter (400,500,600) — loaded via Google Fonts <link> in app.php */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --purple:          #6B21A8;
  --purple-e:        #7C3AED;
  --blue:            #3B82F6;
  --blue-e:          #60A5FA;
  --navy:            #080B14;
  --dark:            #080B14;
  --dark-card:       #0D0D0F;
  --near-black:      #1C1C1E;
  --light:           #FAFAFA;
  --white:           #FFFFFF;
  --text:            #1C1C1E;
  --muted:           #6B7280;
  --border:          #E2E8F0;
  --border-dark:     rgba(255,255,255,0.08);
  --success:         #10B981;
  --cyan:            #06B6D4;

  --grad:            linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  --grad-text:       linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);

  --font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:    'Plus Jakarta Sans', sans-serif;

  --sp:              clamp(64px, 8vw, 120px);
  --cw:              1280px;
  --cp:              clamp(20px, 5vw, 72px);

  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --fast:            0.15s;
  --base:            0.3s;
  --slow:            0.6s;

  --r:               12px;
  --r-lg:            20px;
  --r-xl:            32px;

  --sh:              0 4px 24px rgba(0,0,0,0.08);
  --sh-lg:           0 16px 48px rgba(0,0,0,0.14);
  --sh-glow:         0 0 64px rgba(107,33,168,0.18);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: var(--font);
  font-size: 1rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-inner h1 { font-family: 'Exo 2', sans-serif; }
h1 {
  font-size: clamp(60px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
}
h2 {
  font-size: clamp(42px, 4.5vw, 54px);
  font-weight: 700;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
h3 {
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* H2 on light-background sections — charcoal, no gradient */
.sec-light h2,
.sec-white h2,
.sec-tech-intro h2 {
  background: none;
  -webkit-text-fill-color: var(--near-black);
  color: var(--near-black);
  animation: none;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.display {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.025em; }
.h3 { font-size: clamp(20px, 2.5vw, 32px); letter-spacing: -0.015em; }
.h4 { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; }
.body-lg { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; }
.body-sm { font-size: 14px; line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple);
}
.eyebrow-light { color: rgba(124,58,237,0.75); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 var(--cp);
}
.sec { padding: var(--sp) 0; }
.sec-dark  { background: var(--dark);  color: var(--white); }
.sec-navy  { background: var(--navy);  color: var(--white); }
.sec-light { background: linear-gradient(135deg, #F2EDFF 0%, #EAF2FF 100%); }
.sec-white { background: linear-gradient(135deg, #F8F5FF 0%, #F2F7FF 100%); }
/* Why Nexcon: h2 base is dark; brand gradient on .grad-text spans */
.why-nexcon-intro h2 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  animation: none;
  font-size: 64px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
/* Brand colours on "We Connect the Pieces" line */
.why-nexcon-intro h2 .grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0em;
  border-radius: 9999px;
  transition: var(--base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}
.btn-grad {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(107,33,168,0.35);
}
.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107,33,168,0.45);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-ghost {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-e);
  transition: var(--fast) var(--ease);
}
.btn-ghost:hover { gap: 12px; }
.btn-ghost-white { color: rgba(255,255,255,0.8); }
.btn-ghost-white:hover { color: white; }
.btn-lg { padding: 18px 36px; font-size: 15px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: url('../images/image9.png') center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
  transition: padding var(--base) var(--ease),
              top var(--base) var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6,9,16,0.82);
  z-index: 0;
}
.nav-inner { position: relative; z-index: 1; }
.nav.scrolled {
  padding: 8px 0;
}
/* All links always white — dark nav is always visible */
.nav-on-light .nav-link {
  color: rgba(255,255,255,0.82);
}
.nav-on-light .nav-link:hover,
.nav-on-light .nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}
.nav-on-light .nav-ham span { background: #ffffff; }
/* Wordmark white on homepage */
.nav-on-light .nav-wordmark {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
/* Scrolled state always uses white text regardless of page */
.nav.scrolled .nav-link,
.nav.scrolled .nav-drop-btn {
  color: rgba(255,255,255,0.7);
}
.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active,
.nav.scrolled .nav-drop-btn:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.06);
}
.nav.scrolled .nav-ham span { background: #FFFFFF; }
.nav-inner {
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 var(--cp);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-fill-color: #ffffff;
}
.nav.scrolled .nav-wordmark {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 6px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: 8px;
  transition: var(--fast) var(--ease);
  text-decoration: none;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.9) !important;
  border-radius: 9999px !important;
  color: #111827 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 22px !important;
  letter-spacing: 0.01em;
  transition: border-color var(--fast) var(--ease),
              background var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
.nav-cta:hover {
  background: #f3f4f6 !important;
  border-color: rgba(255,255,255,0.9) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transform: none;
}

/* Services dropdown */
.nav-item-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}
.nav-drop-arrow {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
/* Dropdown open states — click (JS .open) OR hover */
.nav-item-drop.open > .nav-drop-btn,
.nav-item-drop:hover > .nav-drop-btn   { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-item-drop.open .nav-drop-arrow,
.nav-item-drop:hover .nav-drop-arrow   { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  /* Smooth slide + fade */
  transition: opacity 0.22s cubic-bezier(0.4,0,0.2,1),
              transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
/* Show on hover OR when .open class is set by JS */
.nav-item-drop:hover > .nav-dropdown,
.nav-item-drop.open  > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Each item slides in with a stagger */
.nav-dropdown li .nav-drop-link {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity   0.18s ease,
              transform 0.18s ease,
              background var(--fast) var(--ease),
              color      var(--fast) var(--ease);
}
.nav-item-drop:hover > .nav-dropdown li .nav-drop-link,
.nav-item-drop.open  > .nav-dropdown li .nav-drop-link {
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown li:nth-child(1) .nav-drop-link { transition-delay: 0.04s; }
.nav-dropdown li:nth-child(2) .nav-drop-link { transition-delay: 0.08s; }
.nav-dropdown li:nth-child(3) .nav-drop-link { transition-delay: 0.12s; }
.nav-dropdown li:nth-child(4) .nav-drop-link { transition-delay: 0.16s; }
.nav-dropdown li:nth-child(5) .nav-drop-link { transition-delay: 0.20s; }

/* Link row: icon + text stack */
.nav-drop-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  font-family: var(--font);
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-drop-link:hover { background: #f5f3ff; }

/* Coloured icon box */
.nav-drop-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-drop-link:hover .nav-drop-icon { transform: scale(1.08); }
.nav-drop-icon--teal   { background: rgba(14,116,144,0.10);  color: #0E7490; }
.nav-drop-icon--blue   { background: rgba(29,78,216,0.10);   color: #1D4ED8; }
.nav-drop-icon--purple { background: rgba(124,58,237,0.10);  color: #7C3AED; }
.nav-drop-icon--green  { background: rgba(5,150,105,0.10);   color: #059669; }

/* Text column */
.nav-drop-text { display: flex; flex-direction: column; gap: 1px; }
.nav-drop-name {
  font-size: 14.5px; font-weight: 600;
  color: #111827;
  line-height: 1.2;
}
.nav-drop-sub {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
}
.nav-drop-link:hover .nav-drop-name { color: #7c3aed; }

/* Divider + "View all" footer */
.nav-drop-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 6px 4px;
}
.nav-drop-all {
  gap: 8px;
  padding: 9px 12px;
}
.nav-drop-all .nav-drop-name {
  font-size: 13.5px;
  color: #7c3aed;
  font-weight: 600;
}
.nav-drop-all:hover { background: rgba(124,58,237,0.06); }
.nav-drop-all:hover .nav-drop-name { color: #6d28d9; }

.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--base) var(--ease);
}
.nav-ham.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 1002;
  padding: 80px 32px 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile.open {
  transform: translateX(0);
  pointer-events: auto;
}
.nav-mobile-link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--fast) var(--ease);
}
.nav-mobile-link:hover { color: var(--blue-e); }
.nav-mobile-group { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  padding: 14px 0;
}
.nav-mobile-chev { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.nav-mobile-toggle[aria-expanded="true"] .nav-mobile-chev { transform: rotate(180deg); }
.nav-mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.nav-mobile-panel.open { grid-template-rows: 1fr; }
.nav-mobile-panel-inner {
  overflow: hidden;
  min-height: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 0;
  transition: margin-bottom 0.3s var(--ease);
}
.nav-mobile-panel.open .nav-mobile-panel-inner { margin-bottom: 14px; }
.nav-mobile-sub {
  display: block;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile-sub:last-child { border-bottom: none; }
.nav-mobile-cta { margin-top: 32px; align-self: flex-start; }
.nav-mobile-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  line-height: 1;
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: #04091a; /* dark fallback while slides load */
  overflow: hidden;
  padding-top: 112px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Readability scrim over the slideshow */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4,9,20,0.42);
}

/* Animated mesh gradient — hidden */
.hero-mesh { display: none; }

/* ── Slideshow ── */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.12);
  /* Slight blur keeps the photos from competing with the copy.
     The slides stay scaled up so the blur's soft edge never shows. */
  filter: blur(2px);
  transition: opacity 1.4s ease, transform 8s ease;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.04);
}
/* Slide indicator dots */
.hero-slide-dots {
  position: absolute;
  bottom: 26px; right: 32px;
  display: flex;
  gap: 10px;
  z-index: 4;
}
.hero-slide-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-slide-dot.active { background: #ffffff; transform: scale(1.25); }
@media (max-width: 768px) {
  .hero-slide-dots { right: 50%; transform: translateX(50%); bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  /* No Ken Burns, but keep the slight upscale so the blur edge stays hidden */
  .hero-slide { transition: opacity 0.5s ease; transform: scale(1.04); }
  .hero-slide.active { transform: scale(1.04); }
}
@keyframes meshDrift {
  0%   { transform: translate(0,    0)    scale(1); }
  33%  { transform: translate(-2%,  2%)   scale(1.02); }
  66%  { transform: translate( 2%, -1.5%) scale(0.99); }
  100% { transform: translate(-1%,  2.5%) scale(1.01); }
}

/* Canvas particle layer — above overlay */
.hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}

/* Logo watermark — above overlay */
.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: url('/assets/images/logo.png') center/contain no-repeat;
  opacity: 0.028;
  filter: grayscale(1);
  z-index: 2;
}

/* Grid overlay — hidden */
.hero-grid { display: none; }

/* Colour glows — hidden so they don't tint the slideshow photography */
.hero-glow-top,
.hero-glow-bl { display: none; }

/* Content */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--cw);
  margin: 0 auto;
  padding: 64px var(--cp) 32px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  margin-bottom: 28px;
}
/* Gradient accent on the second line */
.hero-h1-accent {
  display: inline-block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(30px, 8.5vw, 52px); }
}
.hero-sub {
  font-family: var(--font);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto 40px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions .btn-lg {
  padding: 15px 51px;
  font-size: 20px;
}

/* Ripple */
.btn-ripple { overflow: hidden; position: relative; }
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }
.btn-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: rippleOut 0.55s linear forwards;
  pointer-events: none;
}

/* Client logo marquee */
.hero-logos {
  margin-top: 76px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.14);
  width: 100%;
}
.hero-logos-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28,28,30,0.38);
  margin-bottom: 26px;
}
.hero-logos-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.hero-logos-track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: logoScroll 22s linear infinite;
}
.hero-logos-track:hover { animation-play-state: paused; }
.hero-logo-item {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  filter: grayscale(1);
  transition: color 0.3s var(--ease);
}
.hero-logo-item:hover { color: rgba(255,255,255,0.95); }
.hero-logo-item::after {
  content: '·';
  margin-left: 52px;
  color: rgba(255,255,255,0.3);
  font-size: 18px;
}
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: hintPulse 3s ease-in-out infinite;
  z-index: 4;
  cursor: pointer;
}
.hero-scroll-chevron {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s;
}
.hero-scroll-hint:hover .hero-scroll-chevron {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
}
@keyframes hintPulse {
  0%,100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;    transform: translateX(-50%) translateY(5px); }
}
@keyframes scanDown {
  0%   { top: -60%; }
  100% { top: 110%; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-hd { margin-bottom: 64px; }
.sec-hd.center { text-align: center; }
.sec-hd .eyebrow {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  border-radius: 9999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}
.sec-hd h2 {
  margin-bottom: 30px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}
.sec-hd p {
  color: var(--muted);
  max-width: 900px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
}
.sec-hd.center p { margin: 0 auto; }
.sec-hd-dark p { color: rgba(255,255,255,0.48); }
.sec-hd-dark h2 { color: var(--white); }

/* ============================================================
   AT A GLANCE
   ============================================================ */
.glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.glance-statement {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.glance-statement span { color: var(--purple); }
.glance-sub { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.glance-nodes {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-top: 40px;
}
.gnode {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--base) var(--ease);
  background: var(--white);
}
.gnode:hover {
  border-color: rgba(109,40,217,0.25);
  transform: translateY(-3px);
  box-shadow: var(--sh);
}
.gnode-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gnode-icon svg { width: 18px; height: 18px; color: white; }
.gnode-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.gnode-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   NEXCON DIFFERENCE
   ============================================================ */
.diff-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.diff-pill {
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
}
.diff-pill.hl {
  background: var(--grad);
  border-color: transparent;
  color: white;
}
.diff-op {
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
}
.diff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}
.diff-card {
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  transition: var(--base) var(--ease);
}
.diff-card:hover {
  border-color: rgba(124,58,237,0.28);
  background: rgba(124,58,237,0.04);
  transform: translateY(-5px);
}
.diff-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.diff-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.diff-card p { font-size: 14.5px; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ============================================================
   SERVICES SECTION — split heading + left-aligned intro
   ============================================================ */
.svc-hd-split {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}
/* Gradient pill badge — What We Do section */
.svc-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 30px;
}
.sec-services h2 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 64px !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.1 !important;
  margin-top: 0;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  color: #04112C !important;
  -webkit-text-fill-color: #04112C !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  animation: none !important;
}
@media (max-width: 1280px) {
  .sec-services h2 { font-size: clamp(40px, 5.5vw, 64px); }
}
/* Gradient accent span — owns its own gradient; parent h2 will be dark */
.svc-h2-grad {
  display: inline;
  background: linear-gradient(135deg, #5B01C2 0%, #8A25E0 28%, #9B4DFF 50%, #4B5DE8 72%, #3B6CE8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftLogo 5s ease infinite;
}
/* second line — solid dark */
.svc-h2-dark {
  display: inline;
  background: none;
  -webkit-text-fill-color: #111827;
  color: #111827;
}
/* Animated heading words — colour driven by JS on tab switch */
.svc-h2-word {
  display: inline;
  color: #04112C;
  -webkit-text-fill-color: #04112C;
  transition: color 0.35s ease, -webkit-text-fill-color 0.35s ease;
}
/* Teal accent on "Build" — matches Flowtransform reference */
.svc-h2-accent {
  display: inline;
  background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent;
}
.tech-intro-body {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(4,17,44,0.65);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  -webkit-text-fill-color: rgba(4,17,44,0.65);
  text-align: center;
}
@media (max-width: 768px) {
  .sec-services h2 { font-size: 38px; }
  .tech-intro-body  { font-size: 17px; line-height: 1.6; }
  .sec-hd h2 { max-width: 100%; font-size: clamp(32px, 6vw, 44px); }
  .sec-hd p  { font-size: 17px; }
}
@media (max-width: 480px) {
  .sec-hd .eyebrow { font-size: 12px; padding: 8px 16px; }
  .sec-hd h2 { font-size: clamp(28px, 7vw, 38px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 28px;
}
.svc-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  background: var(--white);
  transition: var(--base) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--base) var(--ease);
}
.svc-card:hover {
  border-color: rgba(109,40,217,0.22);
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
}
.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--base) var(--ease);
}
.svc-icon svg { width: 24px; height: 24px; color: var(--purple); transition: var(--base) var(--ease); }
.svc-card:hover .svc-icon { background: var(--grad); }
.svc-card:hover .svc-icon svg { color: white; }
.svc-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.svc-card > p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 28px;
  flex: 1;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 32px;
}
.svc-tag {
  padding: 5px 11px;
  background: var(--light);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.svc-card:hover .svc-tag { background: rgba(109,40,217,0.06); color: var(--purple); }

/* ============================================================
   DIGITAL + DATA SIGNATURE SECTION
   ============================================================ */
.dig-data {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.dig-data::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(109,40,217,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.dig-data-inner { position: relative; z-index: 1; }
.dig-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto 80px;
}
.flow-node {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  padding: 28px 16px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  border-radius: var(--r);
  margin: 8px;
  position: relative;
  transition: var(--base) var(--ease);
}
.flow-node:hover {
  border-color: rgba(124,58,237,0.32);
  background: rgba(124,58,237,0.06);
}
.flow-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon { font-size: 26px; margin-bottom: 10px; }
.flow-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.flow-desc { font-size: 11.5px; color: rgba(255,255,255,0.38); line-height: 1.5; }
.dig-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.dig-text h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 24px;
}
.dig-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}
.ind-card {
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: var(--base) var(--ease);
  position: relative;
  overflow: hidden;
}
.ind-card:hover {
  border-color: rgba(109,40,217,0.22);
  transform: translateY(-5px);
  box-shadow: var(--sh);
}
.ind-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}
.ind-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.ind-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px,1fr));
  gap: 28px;
}
.work-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: var(--base) var(--ease);
}
.work-card:hover {
  border-color: rgba(124,58,237,0.22);
  transform: translateY(-6px);
}
.work-img {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-img-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.work-img-placeholder svg { width: 36px; height: 36px; }
.work-img-placeholder span { font-size: 12px; font-weight: 500; }
.work-body { padding: 28px 30px; }
.work-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-e);
  margin-bottom: 10px;
}
.work-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.work-card p { font-size: 13.5px; color: rgba(255,255,255,0.42); line-height: 1.6; margin-bottom: 24px; }
.work-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.work-tag {
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
}
.work-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-e);
  white-space: nowrap;
  transition: var(--fast) var(--ease);
}
.work-link:hover { gap: 9px; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.cap-col {
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: var(--base) var(--ease);
}
.cap-col:hover { border-color: rgba(109,40,217,0.2); box-shadow: var(--sh); }
.cap-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cap-head h3 { font-size: 19px; font-weight: 700; color: var(--text); }
.cap-list { display: flex; flex-direction: column; gap: 11px; }
.cap-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
}
.cap-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 28px;
}
.ins-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--base) var(--ease);
}
.ins-card:hover {
  border-color: rgba(109,40,217,0.2);
  transform: translateY(-5px);
  box-shadow: var(--sh);
}
.ins-img {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.ins-img-bg {
  position: absolute;
  inset: 0;
}
.ins-img-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 16px;
}
.ins-body { padding: 26px 26px; }
.ins-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ins-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(109,40,217,0.07);
  padding: 4px 10px;
  border-radius: 100px;
}
.ins-date { font-size: 12.5px; color: var(--muted); }
.ins-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.ins-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }

/* ============================================================
   VALUES
   ============================================================ */
.val-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 22px;
}
.val-card {
  padding: 32px 24px;
  border: 1px solid rgba(109,40,217,0.1);
  border-radius: var(--r-lg);
  text-align: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--base) var(--ease);
}
.val-card:hover {
  border-color: rgba(109,40,217,0.22);
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.val-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.val-icon svg { width: 22px; height: 22px; color: white; }
.val-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.val-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.fcta {
  background: url('../images/nexcon background.png') center / cover no-repeat;
  position: relative;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.fcta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fcta .eyebrow { color: rgba(255,255,255,0.7); }
.fcta h2 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  animation: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 auto 28px;
  max-width: 900px;
}
.fcta p {
  font-size: clamp(13px, 1.3vw, 17px);
  white-space: nowrap;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
  margin: 0 auto 40px;
}
.fcta .btn {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.3);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fcta .btn:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #2563EB 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(109,40,217,0.4);
}
.fcta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Notify / newsletter CTA paragraph — single line on desktop */
#notify p {
  white-space: nowrap;
  font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  #notify p { white-space: normal; font-size: clamp(14px, 3.5vw, 16px); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: url('../images/nexcon background.png') center / cover no-repeat;
  color: #ffffff;
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .nav-logo {
  gap: 12px;
  /* Pull the 48 px logo row up so it centres on the column headings to the right */
  margin-top: -16px;
  margin-bottom: 22px;
}
/* Logo all white */
.footer-brand .nav-logo-mark img { filter: brightness(0) invert(1); width: 48px; height: 48px; }
.footer-brand .nav-logo-text .name,
.footer-brand .nav-logo-text .sub { color: #ffffff; -webkit-text-fill-color: #ffffff; }
/* Wordmark — both words share one font, weight and size */
.footer-brand .nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.05;
}
.footer-brand .nav-logo-text .name,
.footer-brand .nav-logo-text .sub {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.footer-brand p { font-size: 15.5px; color: #ffffff; line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link {
  font-size: 15.5px;
  color: #ffffff;
  text-decoration: none;
  transition: var(--fast) var(--ease);
}
.footer-link:hover { color: var(--white); }
/* Contact rows — rounded icon chip + text, 48 px pitch */
.footer-ci {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.5;
}
.footer-ci svg {
  width: 31px;
  height: 31px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  opacity: 1;
  flex-shrink: 0;
  margin-top: 0;
}
/* Socials — white circles */
.footer-socials { display: flex; gap: 13px; margin-top: 26px; }
.footer-social {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  transition: var(--fast) var(--ease);
}
.footer-social svg { width: 22px; height: 22px; }
.footer-social:hover {
  background: rgba(255,255,255,0.85);
  color: #171717;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 14.5px; color: #ffffff; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a,
.footer-legal span {
  font-size: 14.5px;
  color: #ffffff;
  text-decoration: none;
  transition: var(--fast) var(--ease);
}
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(30px,4vw,48px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.contact-info > p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 40px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-item-icon svg { width: 18px; height: 18px; color: var(--purple); }
.contact-item h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--muted); }
.form-card {
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: var(--fast) var(--ease);
  outline: none;
  font-family: var(--font);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-submit { width: 100%; margin-top: 8px; justify-content: center; }

/* ============================================================
   CONTACT PAGE — SHARED IMAGE BACKGROUND WRAP
   image2.png spans the hero + contact-info sections as one bg.
   ============================================================ */
.contact-bg-wrap {
  background: #F6F6FB url('../images/nexcon background2.png') center top / cover no-repeat;
  background-attachment: local;
}

/* Hero inside wrap — transparent, no own bg/pseudo-elements */
.pg-hero--contact {
  background: transparent !important;
}
.pg-hero--contact::before,
.pg-hero--contact::after { display: none !important; }

/* Hero heading: plain white, service-page style */
.pg-hero--contact .pg-hero-inner { text-align: center; }
.pg-hero--contact h1 {
  color: #1C1C1E;
  -webkit-text-fill-color: #1C1C1E;
  background: none;
  animation: none;
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 820px;
  margin: 18px auto 24px;
}
.pg-hero--contact p {
  font-size: 20px;
  line-height: 1.65;
  color: #4B5563;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .pg-hero--contact h1 { font-size: clamp(36px, 8vw, 60px); }
  .pg-hero--contact p  { font-size: 17px; }
}

/* Contact form section inside wrap — transparent background */
.contact-bg-wrap > #contact-form {
  background: transparent;
  padding-top: 0;
}

/* ── Left column: "What to Expect" — white text on dark bg ── */
.contact-expect-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

/* Heading — 40px bold, white */
.contact-expect-label {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1C1C1E;
  margin-bottom: 40px;
  text-transform: none;
  line-height: 1.1;
}

/* Items: icon + text aligned to centre of the row, single-line feel */
.contact-expect-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* SVG icon container — white icon, subtle bg */
.contact-expect-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(107,33,168,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--purple);
}
.contact-expect-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--purple);
}

/* Item text — +2px from previous values (16→18, 14→16) */
.contact-expect-title {
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.contact-expect-body {
  font-size: 16px;
  line-height: 1.7;
  color: #4B5563;
}

/* Form card — black theme */
.contact-bg-wrap .form-card {
  background: #0B0B0F !important;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.contact-bg-wrap .form-card h3 { color: #ffffff !important; }
.contact-bg-wrap .form-card > p { color: rgba(255,255,255,0.66) !important; }
.contact-bg-wrap .form-group label { color: #ffffff; }
.contact-bg-wrap .form-group input,
.contact-bg-wrap .form-group select,
.contact-bg-wrap .form-group textarea {
  background-color: #17171D !important;
  background-image: none !important;
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}
.contact-bg-wrap .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px !important;
}
.contact-bg-wrap .form-group input::placeholder,
.contact-bg-wrap .form-group textarea::placeholder { color: rgba(255,255,255,0.42); }
.contact-bg-wrap .form-group input:focus,
.contact-bg-wrap .form-group select:focus,
.contact-bg-wrap .form-group textarea:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.22);
  background-color: #17171D !important;
}
.contact-bg-wrap .form-group select option { background: #17171D; color: #ffffff; }
.contact-bg-wrap .alert-success { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: #047857; }
.contact-bg-wrap .alert-error   { background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.35);  color: #b91c1c; }
/* Disclaimer line */
.contact-bg-wrap [style*="color:var(--muted);margin-top:14px"] { color: rgba(255,255,255,0.45) !important; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.pg-hero {
  background: var(--dark);
  padding: calc(var(--sp) + 80px) 0 var(--sp);
  position: relative;
  overflow: hidden;
}
.pg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(109,40,217,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
}
.pg-hero::after {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(109,40,217,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.pg-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.pg-hero .eyebrow { margin-bottom: 14px; color: rgba(124,58,237,0.8); }
.pg-hero h1 {
  font-size: clamp(40px,6vw,80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 25%, #f8f8ff 50%, #93c5fd 75%, #3b82f6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* Insights page hero — nexcon background2 + grid lines, brand-gradient heading */
.pg-hero--insights {
  background: #F6F6FB url('../images/nexcon%20background2.png') center top / cover no-repeat;
}
/* Keep the grid lines, darkened to read on the light backdrop */
.pg-hero--insights::before {
  background-image:
    linear-gradient(rgba(109,40,217,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.10) 1px, transparent 1px);
  mask-image: none;
  -webkit-mask-image: none;
}
.pg-hero--insights::after { display: none; }
.pg-hero--insights h1 {
  background: var(--grad);
  background-size: 100% 100%;
  /* the shorthand above resets background-clip — restate it */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: none;
}
/* Intro sentence — single line */
.pg-hero--insights .pg-hero-insights-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: none;
  margin: 0;
}
@media (min-width: 1100px) {
  .pg-hero--insights .pg-hero-insights-intro { white-space: nowrap; }
}

/* Work page hero — grid-line backdrop, left-aligned two-line heading */
.pg-hero--work {
  background: #F4F2FC;
}
/* Grid lines */
.pg-hero--work::before {
  display: block;
  background-image:
    linear-gradient(rgba(109,40,217,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: none;
  -webkit-mask-image: none;
}
.pg-hero--work::after { display: none; }
.pg-hero--work .pg-hero-inner { text-align: left; }
.pg-hero--work h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.16;
  color: var(--near-black);
  -webkit-text-fill-color: var(--near-black);
  background: none;
  animation: none;
  margin-bottom: 20px;
}
.pg-hero--work .pg-hero-work-accent {
  display: inline;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}
/* Intro sentence — single line, 20 px */
.pg-hero--work .pg-hero-work-intro {
  font-size: 20px;
  color: var(--near-black);
  max-width: none;
  margin: 0;
}
@media (min-width: 1100px) {
  .pg-hero--work .pg-hero-work-intro { white-space: nowrap; }
}
.pg-hero p {
  font-size: clamp(15px,1.3vw,18px);
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* About page hero — image9.png background, no overlay */
.pg-hero--about {
  background: url('../images/image9.png') center / cover no-repeat;
  /* Normal spacing from nav bar — no excessive gap */
  padding-top: calc(var(--nav-h, 88px) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(64px, 8vw, 100px);
}
/* Strip the gradient-text animation; use plain white like service heroes */
.pg-hero--about h1 {
  font-size: clamp(44px, 6.8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
  max-width: 1200px;
  margin: 0 auto 32px;
  text-align: center;
}
.pg-hero-actions {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.pg-hero-actions .btn-lg {
  padding: 21px 39px;
  font-size: 18px;
}
.pg-hero--about p {
  color: rgba(255,255,255,0.68);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Branding service page hero — branding4.jpg cover */
/* ── Small label shown above hero heading on dark-bg service pages ── */
.svc-hero-label {
  display: block;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 20px;
}

/* ── Shared service-page video background helpers ──────────── */
.svc-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.svc-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(4,9,20,0.52) 0%,
    rgba(4,9,20,0.38) 50%,
    rgba(4,9,20,0.65) 100%
  );
}

/* ── Branding hero — brandvideo.mp4 background ── */
.svc-pg-hero.svc-pg-hero--branding {
  background: var(--navy); /* video replaces image; dark fallback while loading */
}
.svc-pg-hero.svc-pg-hero--branding::before { display: none; }
.svc-pg-hero.svc-pg-hero--branding .pg-hero-inner { text-align: center; position: relative; z-index: 2; }
.svc-pg-hero.svc-pg-hero--branding h1 {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  font-size: clamp(44px, 5.8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 860px;
  margin: 0 auto 30px; /* no label above — top gap removed, consistent bottom */
}
.svc-pg-hero.svc-pg-hero--branding .svc-pg-hero-sub {
  color: rgba(255,255,255,0.68);
  max-width: min(1200px, 100%);
  margin: 0 auto 32px;
  text-align: center;
}
.svc-pg-hero.svc-pg-hero--branding .svc-pg-hero-support { color: rgba(255,255,255,0.5); }
.svc-pg-hero.svc-pg-hero--branding .breadcrumb a { color: rgba(255,255,255,0.45); }
.svc-pg-hero.svc-pg-hero--branding .breadcrumb span { color: rgba(255,255,255,0.22); }
.svc-pg-hero.svc-pg-hero--branding .btn-outline-dark {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.svc-pg-hero.svc-pg-hero--branding .btn-outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: #FFFFFF;
}

/* ── Web Development hero — codevideo.mp4 background ── */
.svc-pg-hero.svc-pg-hero--webdev {
  background: var(--navy); /* video replaces image; dark fallback while loading */
}
.svc-pg-hero.svc-pg-hero--webdev::before { display: none; }
.svc-pg-hero.svc-pg-hero--webdev .pg-hero-inner { text-align: center; position: relative; z-index: 2; }
.svc-pg-hero.svc-pg-hero--webdev h1 {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  font-size: clamp(44px, 5.8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 860px;
  margin: 0 auto 30px; /* no label above — top gap removed, consistent bottom */
}
.svc-pg-hero.svc-pg-hero--webdev .svc-pg-hero-sub {
  color: rgba(255,255,255,0.68);
  max-width: min(1200px, 100%);
  margin: 0 auto 32px;
  text-align: center;
}
.svc-pg-hero.svc-pg-hero--webdev .svc-pg-hero-support { color: rgba(255,255,255,0.45); }
.svc-pg-hero.svc-pg-hero--webdev .btn-outline-dark {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.svc-pg-hero.svc-pg-hero--webdev .btn-outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: #FFFFFF;
}

/* ============================================================
   DATA ANALYTICS — FULL-VIEWPORT INTRO SPLASH (image13.png)
   ============================================================ */
.da-splash {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h, 88px) + 40px) clamp(20px, 5vw, 72px) 80px;
  background: var(--navy); /* datavideo.mp4 plays above; dark fallback while loading */
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle ambient glow — sits above overlay (z-index 2) */
.da-splash::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(8,145,178,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(79,70,229,0.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Centered content — above video (z-index 0), overlay (z-index 1) and glow (z-index 2) */
.da-splash-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Large hero heading ── */
.da-splash-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(44px, 5.8vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin: 0 auto 30px;  /* no label above — top gap removed */
  text-align: center;
  max-width: 820px;
}

/* ── Subtitle — 2-line width at 1200 px ── */
.da-splash-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  max-width: min(1200px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}

/* ── CTA button row ── */
.da-splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
}
.da-splash-actions .btn-outline-dark {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.28);
}
.da-splash-actions .btn-outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

/* ── Animated scroll hint ── */
.da-splash-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.38);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: daScrollBob 2s ease-in-out infinite;
}
.da-splash-scroll svg { margin-top: 2px; }
@keyframes daScrollBob {
  0%, 100% { transform: translateY(0);   opacity: 0.38; }
  50%       { transform: translateY(7px); opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .da-splash-scroll { animation: none; }
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .da-splash-heading { letter-spacing: -0.03em; }
  .da-splash-actions { flex-direction: column; align-items: center; }
}

/* ── Second section hero (no CTAs, left-aligned) ── */
/* Data Analytics second viewport — image13.png cover */
.svc-pg-hero.svc-pg-hero--data {
  background:
    linear-gradient(rgba(8,11,20,0.58), rgba(8,11,20,0.72)),
    url('../images/image13.png') center / cover no-repeat;
}
.svc-pg-hero.svc-pg-hero--data::before { display: none; }
/* Centered layout — matches reference */
.svc-pg-hero.svc-pg-hero--data .pg-hero-inner { text-align: center; }
.svc-pg-hero.svc-pg-hero--data .svc-pg-hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  color: rgba(255,255,255,0.68);
  text-align: center;
}
.svc-pg-hero.svc-pg-hero--data h1 {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  font-size: clamp(44px, 5.8vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.svc-pg-hero.svc-pg-hero--data .svc-hero-label {
  display: block;
  text-align: center;
}
.svc-pg-hero.svc-pg-hero--data .hero-actions { justify-content: center; }

/* ============================================================
   ABOUT — 02. INTRODUCTION
   ============================================================ */
.ai-layout {
  max-width: 1200px;          /* body text can use full 1200 px */
  margin: 0 auto;
  text-align: center;
}
.ai-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;           /* reduced by ~10px worth of spacing */
  color: #1C1C1E;
  max-width: 1200px;
  margin: 0 auto 20px;         /* tighter gap before paragraph */
}
@media (max-width: 1280px) {
  .ai-text h2 { font-size: clamp(48px, 7vw, 80px); }
}
@media (max-width: 640px) {
  .ai-text h2 { font-size: clamp(38px, 9vw, 60px); }
}
.ai-text p {
  font-size: 20px;            /* larger so each para wraps to ~2 lines at 1200 px */
  line-height: 1.72;
  color: #4B5563;
  margin-bottom: 22px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* Highlighted heading words */
.ai-hl {
  color: #7C3AED;             /* brand purple — "Technology" */
  -webkit-text-fill-color: #7C3AED;
}
.ai-hl--blue {
  background: linear-gradient(90deg, #7C3AED 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;      /* "Forward" — purple → blue gradient */
}
@media (max-width: 768px) {
  .ai-text h2 { font-size: clamp(36px, 8vw, 60px); }
}

/* When the belt is the only content in the section, collapse section padding */
.about-belt-only {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: url('../images/image9.png') center bottom / cover no-repeat !important;
}
.about-belt-only .ai-belt {
  padding-top: 0;
  margin-top: 0;
}
/* Belt text colours on dark image9 background */
.about-belt-only .ai-belt-row--fwd {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.55);
}
.about-belt-only .ai-belt-row--rev {
  color: #ffffff;
}

/* Word belt — no top border, no arrows */
.ai-belt {
  overflow: hidden;
  padding: 32px 0 0;           /* reduced gap between paragraph and belt */
  margin-top: 20px;
  user-select: none;
  max-width: 1250px;           /* cap belt width */
  margin-left: auto;
  margin-right: auto;
}
.ai-belt-row {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  padding: 10px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 93px;
  font-weight: 800;
  letter-spacing: -0.03em;
  will-change: transform;
}
/* Row 1 — transparent fill, pure black outline */
.ai-belt-row--fwd {
  color: transparent;
  -webkit-text-stroke: 2px #000000;
  paint-order: stroke fill;
}
/* Row 2 — solid Nexcon brand cyan */
.ai-belt-row--rev {
  color: var(--cyan);
  -webkit-text-stroke: 0;
  font-weight: 900;
}
/* Arrow separators removed */
.ai-belt-sep { display: none; }

/* ============================================================
   ABOUT — 03. THE NEXCON BLUEPRINT — light grid background
   ============================================================ */
#blueprint {
  background-color: #f4f1ff !important;
  background-image:
    linear-gradient(rgba(107,33,168,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,33,168,0.07) 1px, transparent 1px) !important;
  background-size: 56px 56px !important;
}
#blueprint .sec-hd h2 {
  color: #1c1c1e;
  -webkit-text-fill-color: #1c1c1e;
  background: none;
  animation: none;
  font-size: clamp(36px, 5vw, 64px);
}
/* Allow .grad-text spans inside the heading to show gradient */
#blueprint .sec-hd h2 .grad-text {
  -webkit-text-fill-color: transparent;
}
#blueprint .sec-hd p {
  color: #374151;
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}
/* #blueprint .eyebrow — gradient pill is already readable on the light bg, no override needed */

/* Four-step horizontal track — white cards with accent line */
.bp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 350px));
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
}
.bp-step {
  padding: 36px 32px;
  background: #ffffff;
  border: 1px solid rgba(107,33,168,0.09);
  border-radius: 12px;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
/* Gradient accent line at card top */
.bp-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B21A8 0%, #3B82F6 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.bp-step:hover {
  border-color: rgba(107,33,168,0.20);
  box-shadow: 0 12px 40px rgba(107,33,168,0.12);
  transform: translateY(-5px);
}
.bp-step-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 18px;
}
.bp-step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.bp-step-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #6B21A8;
  margin: 0 0 10px;
  line-height: 1.4;
}
.bp-step-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}
.bp-arrow { display: none; }
@media (max-width: 900px) {
  .bp-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bp-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT — shared Mission+Philosophy background wrapper
   ============================================================ */
.about-mv-ph-bg {
  background: #2E1382 url('../images/nexcon%20background.png') center top / cover no-repeat;
}
/* Individual sections become transparent so the wrapper image shows through */
.about-mv-ph-bg #mission.sec-light  { background: transparent !important; }
.about-mv-ph-bg #philosophy.sec-dark { background: transparent !important; }

/* ============================================================
   ABOUT — 05. OUR PHILOSOPHY
   ============================================================ */
#philosophy.sec-dark { background: #060a16; }

.ph-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ph-header .eyebrow { color: rgba(167,139,250,0.9); margin-bottom: 16px; }
.ph-header h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  animation: none;
  margin: 0;
}
.ph-statement {
  border-left: 3px solid rgba(124,58,237,0.5);
  padding-left: 32px;
}
.ph-line {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.35;
  margin: 0 0 6px;
}
.ph-line--muted  { color: rgba(255,255,255,0.40); font-weight: 500; }
.ph-line--quote  { color: #ffffff; font-weight: 700; font-size: clamp(18px, 2vw, 26px); margin-bottom: 28px; }
.ph-line--accent { color: #a78bfa; }
.ph-divider {
  width: 40px;
  height: 2px;
  background: rgba(124,58,237,0.5);
  margin: 4px 0 24px;
}
.ph-body {
  grid-column: 1 / -1;
  max-width: 1200px;
  width: 100%;
  margin: 24px auto 0;
  text-align: center;
}
.ph-body p {
  font-size: 20px;              /* at 1200 px this wraps to ~2 lines */
  color: rgba(255,255,255,0.70);
  line-height: 1.72;
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 860px) {
  .ph-layout { grid-template-columns: 1fr; gap: 40px; }
  .ph-body    { grid-column: 1; }
}

/* ============================================================
   ABOUT PAGE (legacy founder / story — kept for compatibility)
   ============================================================ */
.founder-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh);
}
.founder-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1a0e2e, #0d1f4a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.founder-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 500;
}
.founder-photo-placeholder svg { width: 56px; height: 56px; }
.founder-info .eyebrow { margin-bottom: 12px; }
.founder-info h2 { font-size: clamp(28px,3vw,40px); font-weight: 800; margin-bottom: 6px; }
.founder-info .title { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.founder-info p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.founder-cred {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cred-pill {
  padding: 8px 16px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }

/* ============================================================
   ABOUT PAGE — image9.png backgrounds (Our Story + Mission & Vision)
   ============================================================ */
/* Our Story */
#story.sec-white {
  background: url('../images/image9.png') center / cover no-repeat;
}
#story.sec-white h2 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}
#story.sec-white p {
  color: rgba(255, 255, 255, 0.8);
}
#story.sec-white strong {
  color: #ffffff;
}
#story.sec-white .eyebrow {
  color: rgba(180, 130, 255, 0.9);
}

/* ============================================================
   MISSION & VISION — image cards, side-by-side with step connector
   ============================================================ */
#mission.sec-light {
  background: #2E1382 url('../images/nexcon%20background.png') center / cover no-repeat;
}
#mission.sec-light h2 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}
#mission.sec-light .eyebrow { color: rgba(180, 130, 255, 0.9); }

/* Row: flex, centred, cards + connector in a line */
.mv-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;                         /* gap handled by connector width */
  margin-top: 48px;
}

/* ── Cards ── */
.mv-card {
  width: 385px;
  height: 481px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: url('../images/image15.png') center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;        /* vertically centre text inside card */
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  flex-shrink: 0;
}

/* Vision card sits 20 px lower */
.mv-card--vision {
  margin-top: 20px;
}

/* NO dark overlay — image shows through */
.mv-card-content {
  position: relative;
  z-index: 1;
  padding: 24px 20px;
  text-align: center;
}

.mv-card-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 14px;
  text-transform: uppercase;
  line-height: 1.2;
}

.mv-card-body {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

/* ── Stepped connector between cards ── */
.mv-step-connector {
  width: 80px;
  height: 481px;                  /* same as card height so SVG aligns */
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mv-step-svg {
  width: 100%;
  height: 60px;                   /* viewBox height */
}

/* Responsive */
@media (max-width: 640px) {
  .mv-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .mv-card--vision { margin-top: 0; }
  .mv-step-connector { display: none; }
  .mv-card { width: 100%; max-width: 320px; height: auto; min-height: 200px; }
}

/* ============================================================
   ABOUT PAGE — Founder + Core Values — image2.png background
   ============================================================ */
/* Founder */
#founder.sec-white {
  background: url('../images/image2.png') center / cover no-repeat;
}
#founder.sec-white .founder-card {
  background: rgba(6, 10, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}
#founder.sec-white .founder-info h2 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}
#founder.sec-white .founder-info .title {
  color: rgba(255, 255, 255, 0.6);
}
#founder.sec-white .founder-info p {
  color: rgba(255, 255, 255, 0.75);
}
#founder.sec-white .eyebrow {
  color: rgba(180, 130, 255, 0.9);
}
#founder.sec-white .cred-pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   CORE VALUES — 3 image cards (flowninja style)
   ============================================================ */
#values.sec-light {
  background: #ffffff;
}
#values .sec-hd .eyebrow {
  background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
#values.sec-light h2 {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #111827;
  -webkit-text-fill-color: #111827;
  background: none;
  animation: none;
}

/* 3-column grid, 30 px gap */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  gap: 30px;
  justify-content: center;
  margin-top: 52px;
}

/* Card shell */
.cv-card {
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;      /* text anchored to bottom */
  cursor: default;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.26);
}

/* Gradient overlay — dark at bottom, fades up (flowninja style) */
.cv-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 6, 20, 0.92) 0%,
    rgba(4, 6, 20, 0.55) 45%,
    rgba(4, 6, 20, 0.10) 100%
  );
  z-index: 0;
}

/* Text block — bottom-left, above overlay */
.cv-card-body {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}

.cv-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 12px;
}

.cv-card-text {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 1320px) {
  .cv-grid { grid-template-columns: repeat(3, 1fr); }
  .cv-card { width: 100%; }
}
@media (max-width: 860px) {
  .cv-grid { grid-template-columns: 1fr; justify-items: center; }
  .cv-card { width: min(400px, 100%); }
}
@media (max-width: 480px) {
  #values.sec-light h2 { font-size: clamp(36px, 8vw, 60px); }
  .cv-card { height: 400px; }
}

/* ============================================================
   HOMEPAGE — ABOUT WHO WE ARE  (Trifleck-style)
   ============================================================ */
.sec-about-hp {
  position: relative;
  overflow: hidden;
  background: url('../images/nexcon background.png') center / cover no-repeat;
  padding: var(--sp) 0;
}
/* Layout wrapper */
.ahp-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
/* Top row */
.ahp-top {
  display: flex;
  align-items: center;
  gap: 0;
}
/* Left — label heading */
.ahp-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.ahp-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Vertical divider */
.ahp-divider {
  width: 2px;
  background: rgba(255,255,255,0.55);
  align-self: stretch;
  margin: 0 60px;
  flex-shrink: 0;
}
/* Right — body */
.ahp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.ahp-body {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  line-height: 1.85;
  margin: 0;
}
/* Stats row */
.ahp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-top: 52px;
}
.ahp-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ahp-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ahp-stat-lbl {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.01em;
}
/* Responsive */
@media (max-width: 960px) {
  .ahp-top { flex-direction: column; gap: 28px; align-items: flex-start; }
  .ahp-left { flex: none; }
  .ahp-divider { display: none; }
  .ahp-heading { font-size: 22px; }
}
@media (max-width: 640px) {
  .ahp-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ahp-stat-num { font-size: 44px; }
  .ahp-heading { font-size: 20px; }
}
/* Legacy: keep eyebrow styles for other potential uses */
.about-hp-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 9999px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 24px;
}
.about-hp-inner h2 {
  font-size: 80px;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  animation: none;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .about-hp-inner h2 { font-size: clamp(48px, 7vw, 80px); } }
@media (max-width: 640px)  { .about-hp-inner h2 { font-size: 38px; } }
/* Brand-colour accent on "Business Problem" */
.about-brand-accent {
  background: linear-gradient(135deg, #6B21A8 0%, #9333ea 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-hp-body {
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  max-width: 1200px;
  margin-bottom: 40px;
}
.btn-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: background var(--base) var(--ease),
              border-color var(--base) var(--ease),
              color var(--base) var(--ease);
}
.btn-about-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.breadcrumb a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: var(--fast) var(--ease);
}
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { border: none; height: 1px; background: var(--border); }
.divider-dark { background: rgba(255,255,255,0.05); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.rev.in { opacity: 1; transform: translateY(0); }
.rev-d1 { transition-delay: 0.1s; }
.rev-d2 { transition-delay: 0.2s; }
.rev-d3 { transition-delay: 0.3s; }
.rev-d4 { transition-delay: 0.4s; }
.rev-d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .glance-grid { grid-template-columns: 1fr; gap: 48px; }
  .dig-text { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { aspect-ratio: 16/9; max-width: 360px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .diff-formula { gap: 6px; }
  .diff-pill { padding: 10px 16px; font-size: 11px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 24px; }
  .glance-nodes { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .fcta p { white-space: normal; font-size: clamp(14px, 3.5vw, 16px); max-width: 560px; }
}
@media (max-width: 480px) {
  .hero-actions, .fcta-btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .diff-formula { flex-direction: column; align-items: center; gap: 8px; }
  .diff-op { display: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-c { text-align: center; }
.text-w { color: var(--white); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex-c { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   EYEBROW VARIANTS
   ============================================================ */
.eyebrow-light {
  color: rgba(124,58,237,0.75);
}

/* ============================================================
   DATA SHOWCASE — DASHBOARD PREVIEW
   ============================================================ */
.dashboard-preview {
  background: #0a0e1c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}
.dash-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-demo-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 10px;
  border-radius: 100px;
}
.dash-body { padding: 24px; }
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.dash-kpi {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r);
  transition: var(--base) var(--ease);
}
.dash-kpi:hover { border-color: rgba(109,40,217,0.22); }
.dash-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 10px;
}
.dash-kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.dash-kpi-change {
  font-size: 12px;
  font-weight: 600;
}
.dash-kpi-change.up   { color: #10b981; }
.dash-kpi-change.down { color: #ef4444; }
.dash-charts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-chart-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r);
  padding: 18px 20px;
  min-width: 180px;
}
.dash-chart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}
.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}
.dash-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.dash-bar {
  width: 100%;
  background: rgba(109,40,217,0.25);
  border-radius: 4px 4px 0 0;
  transition: background var(--base) var(--ease);
}
.dash-bar.hl { background: linear-gradient(to top, #6D28D9, #2563EB); }
.dash-bar-group:hover .dash-bar:not(.hl) { background: rgba(109,40,217,0.45); }
.dash-bar-group span {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
}
.dash-donut {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.dash-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.dash-legend-item span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-charts { flex-direction: column; }
  .dash-chart-card { flex: unset !important; width: 100%; }
}
@media (max-width: 480px) {
  .dash-kpis { grid-template-columns: 1fr; }
}

/* ============================================================
   DESIGN SHOWCASE GALLERY
   ============================================================ */
.design-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 200px 160px;
  gap: 16px;
}
.design-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: var(--base) var(--ease);
}
.design-item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.design-item-logo   { grid-column: span 2; background: linear-gradient(135deg, #0f0b22, #1a0a2e); }
.design-item-brand  { grid-column: span 1; background: linear-gradient(135deg, #080B14, #1e1035); }
.design-item-social { grid-column: span 2; background: linear-gradient(135deg, #0d1f4a, #0a3070); }
.design-item-ui     { grid-column: span 3; background: linear-gradient(135deg, #1a0a2e, #0d1f4a); }
.design-item-print  { grid-column: span 2; background: linear-gradient(135deg, #061020, #0f1a38); }
.design-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: inherit;
  transition: var(--base) var(--ease);
}
.design-placeholder span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.design-item:hover .design-placeholder {
  border-color: rgba(124,58,237,0.25);
  background: rgba(124,58,237,0.03);
}

@media (max-width: 1024px) {
  .design-gallery { grid-template-columns: repeat(3,1fr); grid-template-rows: auto; }
  .design-item-logo,
  .design-item-social,
  .design-item-ui     { grid-column: span 2; }
  .design-item-brand,
  .design-item-print  { grid-column: span 1; }
}
@media (max-width: 600px) {
  .design-gallery { grid-template-columns: 1fr 1fr; }
  .design-item-logo,
  .design-item-social,
  .design-item-ui,
  .design-item-brand,
  .design-item-print  { grid-column: span 1; }
  .design-item { height: 120px; }
}

/* ============================================================
   ALERTS (contact form)
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.alert-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  color: #065f46;
}
.alert-error {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
  color: #7f1d1d;
}

/* ============================================================
   MESH GRADIENT SECTIONS (What We Do + Our Works)
   ============================================================ */
.sec-services {
  position: relative;
  color: #1C1C1E;
  background-color: #fafafa;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sec-works {
  position: relative;
  color: #1C1C1E;
  background-color: #fafafa;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left,    rgba(147,51,234,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(59,130,246,0.35)  0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
/* ============================================================
   TRIO BACKGROUND — What We Offer · Our Works · Why Nexcon
   One continuous image, no breaks between sections.
   ============================================================ */
.trio-bg {
  background: url('../images/image1.png') center top / cover no-repeat;
  position: relative;
}
/* Our Works — image9.png background */
.trio-bg .sec-works {
  background: url('../images/image9.png') center / cover no-repeat !important;
}
/* Why Nexcon — white background */
.trio-bg .why-nexcon-intro {
  background: #ffffff !important;
}
/* What We Offer gets its own white background */
.trio-bg .sec-services {
  background: #ffffff !important;
}
/* Remove coloured mesh overlays so the image is not obscured */
.trio-bg .mesh-bg { display: none; }

.sec-services .wrap,
.sec-works   .wrap { position: relative; z-index: 1; }
/* Wider wrap so the panel card can reach 1200px */
.sec-services .wrap { max-width: 1440px; }
.sec-services .eyebrow,
.sec-works   .eyebrow { color: #9333ea; }
.sec-works .mesh-bg {
  background:
    radial-gradient(ellipse at top left,    rgba(147,51,234,0.38) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(59,130,246,0.38) 0%, transparent 55%),
    linear-gradient(rgba(248,248,252,0.78), rgba(248,248,252,0.78));
}
.sec-services .mesh-bg {
  background:
    radial-gradient(ellipse at top left,    rgba(147,51,234,0.38) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(59,130,246,0.38) 0%, transparent 55%),
    linear-gradient(rgba(248,248,252,0.45), rgba(248,248,252,0.45));
}
.sec-services .sec-hd p,
.sec-works   .sec-hd p { color: rgba(28,28,30,0.6); }

.sec-works h2 {
  font-size: 80px;
  background: linear-gradient(135deg, #5B01C2 0%, #8A25E0 28%, #9B4DFF 50%, #4B5DE8 72%, #3B6CE8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftLogo 5s ease infinite;
}
@keyframes gradientShiftLogo {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Services section: h2 base is dark; gradient accent lives on .svc-h2-grad only */
.sec-services h2 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #04112C;
  color: #04112C;
  animation: none;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* ============================================================
   OUR DATA SOLUTIONS — IMAGE CARDS (ds-card)
   ============================================================ */
.ds-section {
  background:
    linear-gradient(rgba(4,9,20,0.52), rgba(4,9,20,0.60)),
    url('../images/image9.png') center / cover no-repeat;
}
.ds-section .sec-hd p { color: rgba(255,255,255,0.75); }
.ds-section h2 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  animation: none;
  font-size: clamp(32px, 5vw, 64px);
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ds-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 52px;
}

.ds-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ds-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45);
}

.ds-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ds-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.ds-card:hover .ds-card-img img { transform: scale(1.06); }

.ds-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 18, 0.28) 0%,
    rgba(5, 5, 18, 0.46) 40%,
    rgba(5, 5, 18, 0.88) 100%
  );
}

.ds-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 28px;
}

.ds-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ds-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
}
.ds-card-num {
  font-size: 12px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
}
.ds-card-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.ds-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.ds-card-arrow:hover,
.ds-card-arrow--active {
  background: #7c3aed;
  border-color: #7c3aed;
}
.ds-card:hover .ds-card-arrow { transform: rotate(45deg); }

.ds-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109,40,217,0.8), rgba(37,99,235,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ds-card-title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  -webkit-text-fill-color: white;
  background: none;
  animation: none;
}

.ds-card-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
}

.ds-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s;
}
.ds-card-link:hover { gap: 10px; }

@media (max-width: 1100px) {
  .ds-cards-row { grid-template-columns: repeat(2, 1fr); }
  .ds-card { height: 380px; }
}
@media (max-width: 600px) {
  .ds-cards-row { grid-template-columns: 1fr; }
  .ds-card { height: 320px; }
}

/* ============================================================
   PHOTO TAB SERVICE CARDS
   ============================================================ */
.svc-tabs-row {
  display: flex;
  height: 380px;
  gap: 12px;
  margin-top: 52px;
}
.svc-tab-card {
  position: relative;
  width: 80px;
  min-width: 80px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-tab-card.active { width: 420px; min-width: 420px; }
.svc-tab-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.svc-tab-card:hover img { transform: scale(1.04); }
.svc-tab-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 1;
}
.svc-tab-label-v {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  z-index: 2;
  transition: opacity 0.2s;
  pointer-events: none;
}
.svc-tab-card.active .svc-tab-label-v { opacity: 0; pointer-events: none; }
.svc-tab-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 22px 20px;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s 0.15s, transform 0.25s 0.15s;
  pointer-events: none;
}
.svc-tab-card.active .svc-tab-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.svc-tab-name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.2;
}
.svc-tab-desc {
  font-family: var(--font);
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  line-height: 1.6;
}
.svc-tab-arrow { font-size: 1rem; color: rgba(255,255,255,0.7); }
@media (max-width: 768px) {
  .svc-tabs-row { flex-direction: column; height: auto; gap: 8px; }
  .svc-tab-card,
  .svc-tab-card.active { width: 100%; min-width: 0; height: 180px; }
  .svc-tab-card.active  { height: 300px; }
  .svc-tab-label-v { display: none; }
  .svc-tab-content { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   OUR WORKS — GLASS CARDS
   ============================================================ */
.works-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.works-hd h2 { margin-bottom: 0; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.works-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(147,51,234,0.15);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: var(--base) var(--ease);
}
.works-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(147,51,234,0.13);
  border-color: rgba(147,51,234,0.3);
}
.works-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.works-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.works-card:hover .works-card-img img { transform: scale(1.06); }
.works-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a0a2e, #0d1f4a);
  color: rgba(255,255,255,0.28);
  font-size: 13px; font-weight: 500;
}
.works-card-body { padding: 24px; }
.works-card-cat {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}
.works-card-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 8px;
  line-height: 1.25;
}
.works-card-desc {
  font-family: var(--font);
  font-size: 16px;
  color: rgba(28,28,30,0.6);
  line-height: 1.6;
  margin-bottom: 16px;
}
.works-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.works-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.works-card-tag {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.15);
  color: #7c3aed;
}
.works-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: #9333ea;
  transition: gap 0.2s var(--ease);
}
.works-card-link:hover { gap: 8px; }
@media (max-width: 768px) {
  .works-hd { flex-direction: column; align-items: flex-start; }
  .works-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY NEXCON — DARK BG CARD OVERRIDES
   ============================================================ */
.sec-dark .val-card {
  background: rgba(5, 28, 44, 1);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sec-dark .val-card:hover { border-color: rgba(124,58,237,0.3); }
.sec-dark .val-card h3 { color: var(--white); }
.sec-dark .val-card p  { color: rgba(255,255,255,0.55); }
.sec-dark .val-icon    { background: rgba(109,40,217,0.2); border: 1px solid rgba(109,40,217,0.3); }
.sec-dark .val-icon svg { color: rgba(180,130,255,0.9); }
.sec-dark .sec-hd p    { color: rgba(255,255,255,0.5); }

/* ============================================================
   NAVBAR BRAND — EXO 2
   ============================================================ */
.nav-logo-text .name { font-family: var(--font-heading); font-weight: 800; }

/* ============================================================
   REDUCED MOTION — disable ticker + gradientShift
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation: none; }
  h2, .hero h1 { animation: none; }
}

/* ============================================================
   WHY NEXCON INTRO — dark section, reuses svc-grid-card
   Colors: bg #051C2C | primary #FFFFFF | secondary #B8C5D0
   ============================================================ */
.why-nexcon-intro {
  background: #ffffff !important;
  color: var(--text);
}
.why-nexcon-intro .eyebrow  { color: var(--purple); }
.why-nexcon-intro .sec-hd p { color: var(--muted); max-width: none; margin: 0 auto; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.65; white-space: nowrap; }
@media (max-width: 1000px) { .why-nexcon-intro .sec-hd p { white-space: normal; max-width: 600px; font-size: 16px; } }
.why-nexcon-intro .svc-grid-body h3,
.why-nexcon-intro .svc-grid-body p { color: #FFFFFF; }
.why-nexcon-intro .why-card-sub     { color: #B8C5D0; }

/* 3-col grid */
.why-nexcon-intro .svc-grid {
  grid-template-columns: repeat(3, 385px);
  justify-content: center;
  gap: 25px;
}
@media (max-width: 1220px) {
  .why-nexcon-intro .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .why-nexcon-intro .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .why-nexcon-intro .svc-grid { grid-template-columns: 1fr; }
}

/* ds-card overlay style — image fills card, text pinned to bottom */
.why-nexcon-intro .svc-grid-card {
  position: relative;
  overflow: hidden;
  height: 481px;
  border-radius: 11px;
  border: 2px solid #3680df;
  background: #05101c;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.why-nexcon-intro .svc-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45);
  border-color: #5b9ef5;
}
/* Image fills card */
.why-nexcon-intro .svc-grid-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.why-nexcon-intro .svc-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.why-nexcon-intro .svc-grid-card:hover .svc-grid-img img {
  transform: scale(1.06);
}
/* Dark gradient overlay */
.why-nexcon-intro .svc-grid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5,5,18,0.22) 0%,
    rgba(5,5,18,0.48) 40%,
    rgba(5,5,18,0.92) 100%
  );
}
/* Body text pinned to bottom */
.why-nexcon-intro .svc-grid-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px 26px 28px;
}
.why-nexcon-intro .svc-grid-body h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.why-nexcon-intro .svc-grid-body p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* Italic sub-tagline */
.why-card-sub {
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  color: rgba(180,210,255,0.75);
  margin-bottom: 8px;
}

/* ============================================================
   ABOUT HP — Keyword Ticker (two rows, opposite directions)
   ============================================================ */
.about-hp-ticker {
  width: 100%;
  overflow: hidden;
  margin-top: 72px;
  padding-bottom: 0;
}
.tic-row {
  overflow: hidden;
  line-height: 1;
}
.tic-track {
  display: flex;
  align-items: center;
  width: max-content;
}
.tic-row--left  .tic-track { animation: ticLeft  28s linear infinite; }
.tic-row--right .tic-track { animation: ticRight 28s linear infinite; }
.tic-track:hover { animation-play-state: paused; }
.tic-word {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 4px 28px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.15;
}
.tic-outline {
  color: #ffffff;
  -webkit-text-stroke: 0;
  font-weight: 800;
}
.tic-filled {
  background: linear-gradient(135deg, #6B21A8 0%, #9333ea 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes ticLeft {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}
@keyframes ticRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0);    }
}

/* ============================================================
   SERVICE TABS + SINGLE PANEL CARD
   ============================================================ */

/* Tab pills */
.svc-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 64px;
  margin-bottom: 36px;
}
.svc-tab {
  padding: 14px 32px;
  border-radius: 9999px;
  border: 1.5px solid rgba(0,0,0,0.14);
  background: #f3f4f6;
  color: #374151;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0;
  transition: background 0.22s var(--ease),
              border-color 0.22s var(--ease),
              color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.svc-tab:hover:not(.active) {
  background: #e9eaec;
  border-color: rgba(0,0,0,0.22);
  color: #111827;
}
/* Active colour is driven by --tab-color / --tab-shadow set inline by JS */
.svc-tab.active {
  background: var(--tab-color, #1D4ED8);
  color: #ffffff;
  border-color: var(--tab-color, #1D4ED8);
  font-weight: 600;
  box-shadow: 0 4px 16px var(--tab-shadow, rgba(29,78,216,0.38));
}

/* Panel card wrapper — clamped at 1200px, centred */
.svc-panel-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Individual panels — hidden by default */
.svc-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.svc-panel.active { display: grid; }

/* ---- Hero variant (image background panels) ---- */
.svc-panel--hero {
  grid-template-columns: 1fr;
  background: url('../images/image6.png') center / cover no-repeat;
}
/* Brand Design — image7.png */
#svc-design.svc-panel--hero {
  background: url('../images/image7.png') center / cover no-repeat;
}
/* Data Analytics — image8.png */
#svc-analyze.svc-panel--hero {
  background: url('../images/image8.png') center / cover no-repeat;
}
.svc-panel--hero.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-panel-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 100px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}
.svc-panel-brand { display: none; }
.svc-panel-hero-inner h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
  background: none;
  animation: none;
  white-space: nowrap;
}
.svc-panel-hero-inner > p {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 1200px;
  white-space: nowrap;
  margin: 0;
}
.svc-panel-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.svc-panel-services-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.svc-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.svc-panel-tag {
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.svc-panel-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 36px;
  background: #ffffff;
  color: #111827;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 28px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.svc-panel-hero-cta:hover {
  background: #f3f0ff;
  color: #6B21A8;
  box-shadow: 0 4px 20px rgba(107,33,168,0.2);
}
@media (max-width: 900px) {
  .svc-panel-hero-inner h3 { font-size: 40px; white-space: normal; }
  .svc-panel-hero-inner > p { font-size: 16px; white-space: normal; }
}
@media (max-width: 640px) {
  .svc-panel-hero-inner { padding: 48px 32px; gap: 14px; }
  .svc-panel-hero-inner h3 { font-size: 28px; white-space: normal; }
  .svc-panel-hero-inner > p { white-space: normal; }
}

/* Text side */
.svc-panel-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.svc-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a78bfa;
}
.svc-panel-text h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  background: none;
  animation: none;
}
.svc-panel-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 420px;
  margin: 0;
}
.svc-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  background: #ffffff;
  color: #111827;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  margin-top: 4px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.svc-panel-cta:hover {
  background: #f3f0ff;
  color: #6B21A8;
  box-shadow: 0 4px 20px rgba(107,33,168,0.2);
}

/* Image side */
.svc-panel-img {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.svc-panel-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.svc-panel:hover .svc-panel-img img { transform: scale(1.04); }

/* Responsive */
@media (max-width: 900px) {
  .svc-panel { grid-template-columns: 1fr; }
  .svc-panel-img { min-height: 240px; order: -1; }
  .svc-panel-text { padding: 40px 32px; gap: 16px; }
  .svc-panel-text h3 { font-size: 28px; }
}
@media (max-width: 580px) {
  .svc-tab { font-size: 13.5px; padding: 10px 20px; }
  .svc-panel-text { padding: 32px 24px; }
}

/* ============================================================
   DELIVERY FRAMEWORK / PROCESS TIMELINE
   ============================================================ */
.sec-process { background: #ffffff; }
.sec-process .process-title { color: var(--text); }
.sec-process .process-desc  { color: var(--muted); }
/* Homepage process section — 80px heading, 5-card grid */
/* Brand accent on "Impact" inside process heading */
.proc-hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#process-heading { font-size: 64px; letter-spacing: -0.015em; line-height: 1.1; }
@media (max-width: 1100px) { #process-heading { font-size: clamp(40px, 5.5vw, 64px); } }
@media (max-width: 640px)  { #process-heading { font-size: 38px; } }
.hp-proc-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .hp-proc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .hp-proc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   OUR APPROACH — work.php white background
   ============================================================ */
#approach {
  background-color: #f4f1ff !important;
  background-image:
    linear-gradient(rgba(107,33,168,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,33,168,0.07) 1px, transparent 1px) !important;
  background-size: 56px 56px !important;
}
/* Heading colour on light bg */
#approach .cs-section-hd h2 {
  white-space: normal;
  font-size: clamp(36px, 5vw, 64px);
  color: #1c1c1e;
  -webkit-text-fill-color: #1c1c1e;
}
#approach .cs-section-hd h2 .grad-text { -webkit-text-fill-color: transparent; }
#approach .cs-section-hd p {
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}
/* Pill-shaped eyebrow with Nexcon gradient */
#approach .cs-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 34px; /* base 14px + 20px extra gap before heading */
}
/* 5-col grid capped at 350px per column */
#approach .diff-cards {
  grid-template-columns: repeat(5, minmax(0, 350px)) !important;
  justify-content: center;
}
@media (max-width: 1100px) { #approach .diff-cards { grid-template-columns: repeat(3, minmax(0, 350px)) !important; } }
@media (max-width: 720px)  { #approach .diff-cards { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { #approach .diff-cards { grid-template-columns: 1fr !important; } }
/* White cards with accent top line */
#approach .diff-card {
  background: #ffffff !important;
  border: 1px solid rgba(107,33,168,0.09) !important;
  border-radius: 12px;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
#approach .diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B21A8 0%, #3B82F6 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
#approach .diff-card:hover {
  background: #ffffff !important;
  border-color: rgba(107,33,168,0.20) !important;
  box-shadow: 0 12px 40px rgba(107,33,168,0.12);
  transform: translateY(-5px);
}
/* Dark text on white card */
#approach .diff-card h3 { color: #1c1c1e; }
#approach .diff-card h3 .grad-text { -webkit-text-fill-color: transparent; }
#approach .diff-card p  { color: #6b7280; }
/* Icon above the number */
.approach-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #a78bfa;
  flex-shrink: 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 64px;
}

/* Gradient connector line — sits at vertical center of the nodes */
.process-line {
  position: absolute;
  top: 63px; /* num(48px) + margin(8px) + node-radius(7px) */
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, #6B21A8 0%, #9333ea 50%, #3B82F6 100%);
  z-index: 0;
}

.process-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Stage number — DM Sans 800 48px gradient */
.process-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

/* Node dot on the connector line */
.process-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  box-shadow: 0 0 0 5px rgba(107,33,168,0.10), 0 0 0 10px rgba(107,33,168,0.04);
  flex-shrink: 0;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.process-body { display: flex; flex-direction: column; align-items: center; }

.process-title {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.process-desc {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Mobile: vertical stack */
@media (max-width: 860px) {
  .process-timeline {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .process-line { display: none; }
  .process-stage {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
  }
  .process-stage:last-child { border-bottom: none; }
  .process-num {
    font-size: 36px;
    min-width: 54px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .process-node { display: none; }
  .process-body { align-items: flex-start; }
}

/* ============================================================
   SERVICE DEEP-DIVE — PAGE HERO
   ============================================================ */
.svc-pg-hero {
  padding-top: calc(44px + 72px + 60px);
  padding-bottom: 80px;
  background: linear-gradient(135deg,#F2EDFF 0%,#EAF2FF 100%);
  position: relative;
  overflow: hidden;
}
.svc-pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(107,33,168,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(59,130,246,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.svc-pg-hero .pg-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.svc-pg-hero .breadcrumb { justify-content: center; }
.svc-pg-hero h1 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1C1C1E;
  -webkit-text-fill-color: #1C1C1E;
  background: none;
  animation: none;
  margin: 20px auto 30px;
  max-width: 820px;
}
.svc-pg-hero-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: #374151;
  max-width: min(1200px, 100%);
  margin: 0 auto 32px;
}
.svc-pg-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.svc-pg-hero-support {
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.01em;
}

/* ============================================================
   WEB DEVELOPMENT — ANIMATED BACKGROUND SHAPES
   Vivid blur-glow blobs sit behind the service cards.
   data-wd-state="1|2|3|4" drives per-card animation.
   ============================================================ */

/* Section: relative + no overflow so blobs can bleed to edges */
.wd-svc-section {
  position: relative;
  /* overflow stays at default so blur blobs aren't clipped */
}

/* Blob container */
.wd-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;   /* clip only within this layer, not the section */
}

/* Shared blob base — solid colour + heavy blur = visible glow orb */
.wd-shape {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity, border-radius, filter;
  transition:
    transform     0.8s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity       0.55s ease,
    border-radius 0.7s  ease,
    filter        0.7s  ease;
}

/* ── Shape 1 — top-left / E-Commerce — blue ── */
.wd-shape--1 {
  width: 380px; height: 380px;
  background: #2563EB;
  filter: blur(90px);
  top: 0; left: 0;
  opacity: 0.28;
}

/* ── Shape 2 — top-right / Web Apps — violet ── */
.wd-shape--2 {
  width: 320px; height: 320px;
  background: #7C3AED;
  filter: blur(80px);
  top: 0; right: 0;
  opacity: 0.28;
}

/* ── Shape 3 — bottom-left / Redesign — teal ── */
.wd-shape--3 {
  width: 300px; height: 300px;
  background: #0891B2;
  filter: blur(80px);
  bottom: 0; left: 5%;
  opacity: 0.28;
}

/* ── Shape 4 — bottom-right / Corporate — indigo ── */
.wd-shape--4 {
  width: 350px; height: 280px;
  background: #4F46E5;
  filter: blur(85px);
  bottom: 0; right: 3%;
  opacity: 0.28;
}

/* ── When a card is active, all other blobs step back ── */
.wd-svc-section[data-wd-state] .wd-shape {
  opacity: 0.08;
  filter: blur(100px);
}

/* ── State 1: E-Commerce — blue blob expands toward centre ── */
.wd-svc-section[data-wd-state="1"] .wd-shape--1 {
  opacity: 0.7;
  filter: blur(70px);
  transform: translate(80px, 60px) scale(1.6);
}

/* ── State 2: Web Apps — violet blob flips + slides inward ── */
.wd-svc-section[data-wd-state="2"] .wd-shape--2 {
  opacity: 0.7;
  filter: blur(70px);
  transform: translate(-80px, 70px) scale(1.6) scaleX(-1);
  border-radius: 40% 60% 55% 45%;
}

/* ── State 3: Redesign — teal blob rises and flips ── */
.wd-svc-section[data-wd-state="3"] .wd-shape--3 {
  opacity: 0.7;
  filter: blur(70px);
  transform: translate(60px, -80px) scale(1.6) scaleX(-1);
  border-radius: 55% 45% 40% 60%;
}

/* ── State 4: Corporate — indigo blob flips + expands ── */
.wd-svc-section[data-wd-state="4"] .wd-shape--4 {
  opacity: 0.7;
  filter: blur(70px);
  transform: translate(-60px, -70px) scale(1.7) scaleX(-1);
  border-radius: 50%;
}

/* ── Cards always on top of blobs ── */
.wd-svc-section .wrap { position: relative; z-index: 1; }

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .wd-shape { transition: none !important; }
}

/* ============================================================
   HORIZONTAL SCROLL SOLUTION CARDS
   ============================================================ */
.svc-scroll-section { overflow: hidden; }
.svc-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(107,33,168,0.25) transparent;
}
.svc-scroll-wrap:active { cursor: grabbing; }
.svc-scroll-wrap::-webkit-scrollbar { height: 4px; }
.svc-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.svc-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(107,33,168,0.25); border-radius: 9999px; }
.svc-scroll-row {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 4px 2px 8px;
}
.svc-scroll-card {
  width: 300px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--base) var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-scroll-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--base) var(--ease);
}
.svc-scroll-card:hover {
  border-color: rgba(107,33,168,0.22);
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}
.svc-scroll-card:hover::before { transform: scaleX(1); }
.svc-scroll-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-scroll-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg,rgba(107,33,168,0.1),rgba(59,130,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-scroll-card-icon svg { width: 22px; height: 22px; color: var(--purple-e); }
.svc-scroll-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.svc-scroll-card-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}
.svc-scroll-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-scroll-card-list li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.svc-scroll-card-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-e);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ============================================================
   SOLVE GRID — "What We Help You Solve" (card-style)
   ============================================================ */
.solve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}
.solve-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .solve-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .solve-grid,
  .solve-grid--3col { grid-template-columns: 1fr; }
}
#web-pillars-heading { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.04; }

/* Card */
.solve-item {
  background: #ffffff;
  border: 1px solid rgba(107,33,168,0.09);
  border-radius: 16px;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Accent line running across the card top */
.solve-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B21A8 0%, #3B82F6 100%);
  border-radius: 16px 16px 0 0;
}
.solve-item:hover {
  box-shadow: 0 12px 40px rgba(107,33,168,0.12);
  border-color: rgba(107,33,168,0.20);
}

/* Icon + number row */
.solve-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.solve-icon {
  width: 48px;
  height: 48px;
  background: rgba(107,33,168,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solve-icon svg {
  width: 22px;
  height: 22px;
  stroke: #6B21A8;
  fill: none;
  stroke-width: 1.8;
}
.solve-num {
  font-size: 13px;
  font-weight: 600;
  color: rgba(28,28,30,0.22);
  letter-spacing: 0.08em;
  font-family: var(--font);
  line-height: 1;
  padding-top: 4px;
}

/* Title + body */
.solve-q {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--near-black, #1c1c1e);
  margin-bottom: 10px;
  display: block;
  line-height: 1.3;
}
.solve-q::before { display: none; }
.solve-a {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  padding-left: 0;
}

/* ============================================================
   PROCESS CARD GRID
   ============================================================ */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.proc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: var(--base) var(--ease);
}
.proc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--base) var(--ease);
}
.proc-card:hover {
  border-color: rgba(107,33,168,0.3);
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}
.proc-card:hover::after { opacity: 1; }
.proc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.proc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proc-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 1.8;
}
.proc-card-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
  font-family: var(--font);
  line-height: 1;
  padding-top: 4px;
}
.proc-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.proc-card-body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  text-align: center;
  flex: 1;
}
@media (max-width: 900px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .proc-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
}

/* ============================================================
   SERVICE PROCESS — image12.png background + reference card style
   Applied via .svc-proc class on each service page process section
   ============================================================ */
.svc-proc {
  background: url('../images/image12.png') center / cover no-repeat;
}
/* 2-column grid matches reference layout */
.svc-proc .proc-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}
/* Dark glass card */
.svc-proc .proc-card,
.sec-process .proc-card {
  background: rgba(6, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 40px 36px;
  gap: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.svc-proc .proc-card:hover,
.sec-process .proc-card:hover {
  border-color: rgba(0, 212, 192, 0.35);
  background: rgba(6, 18, 28, 0.88);
  transform: translateY(-4px);
}
.svc-proc .proc-card::after,
.sec-process .proc-card::after {
  background: linear-gradient(90deg, #00BFD8 0%, #00E5C0 100%);
}
/* Hide icon/number row — title+body only (matches reference) */
.svc-proc .proc-card-header,
.sec-process .proc-card-header { display: none; }
/* Teal/cyan heading */
.svc-proc .proc-card-title,
.sec-process .proc-card-title {
  font-size: 21px;
  font-weight: 700;
  color: #00D4C0;
  text-align: left;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* Bright white body — service pages only */
.svc-proc .proc-card-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}
/* Homepage process body — dark/black text (wins over .da-proc-grid override) */
.sec-process .proc-card-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text) !important;
  text-align: left;
}
/* ── Homepage: white card, brand-gradient outer stroke ── */
.sec-process .proc-card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(107,33,168,0.08);
}
.sec-process .proc-card:hover {
  box-shadow: 0 8px 32px rgba(107,33,168,0.18);
  transform: translateY(-4px);
}
.sec-process .proc-card::after { background: var(--grad); }
/* Card title — brand purple (maintained) */
.sec-process .proc-card-title { color: var(--purple); }
/* Ensure proc-hl gradient still shows through dark h2 override */
.sec-process .sec-hd h2 .proc-hl { -webkit-text-fill-color: transparent !important; }
/* Section heading stays white on service pages */
.svc-proc .sec-hd h2 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}
/* Homepage process: dark heading */
.sec-process .sec-hd h2 {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: none;
}
.svc-proc .sec-hd p { color: rgba(255, 255, 255, 0.65); }
.sec-process .sec-hd p { color: var(--muted); }
/* Responsive */
@media (max-width: 640px) {
  .svc-proc .proc-grid,
  .sec-process .proc-grid { grid-template-columns: 1fr; }
}
/* Data analytics 2×2 grid — enforces exactly 2 columns, larger text */
.da-proc-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px;
}
.da-proc-grid .proc-card { padding: 40px 36px; }
.da-proc-grid .proc-card-title { font-size: 24px; margin-bottom: 16px; }
.da-proc-grid .proc-card-body  { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.82); }
@media (max-width: 680px) {
  .da-proc-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   PROCESS TAB GRID (legacy — kept for fallback)
   ============================================================ */
.proc-tabs-wrap { margin-top: 56px; }
.proc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.proc-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--base) var(--ease);
  text-align: left;
}
.proc-tab-btn:hover {
  border-color: rgba(107,33,168,0.4);
  color: rgba(255,255,255,0.85);
  background: rgba(107,33,168,0.1);
}
.proc-tab-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(107,33,168,0.35);
}
.proc-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--base) var(--ease);
}
.proc-tab-btn.active .proc-tab-icon { background: rgba(255,255,255,0.2); }
.proc-tab-icon svg { width: 16px; height: 16px; }
.proc-tab-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.proc-tab-label { font-size: 14px; font-weight: 600; line-height: 1; }
.proc-tab-pane { display: none; }
.proc-tab-pane.active { display: block; }
.proc-pane-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
}
.proc-pane-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.proc-pane-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.proc-pane-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  grid-column: 2;
  grid-row: 1 / span 3;
  padding-top: 8px;
}
@media (max-width: 768px) {
  .proc-pane-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .proc-pane-body { grid-column: 1; grid-row: auto; }
  .proc-tabs { gap: 8px; }
  .proc-tab-btn { padding: 10px 14px; font-size: 13px; }
  .proc-tab-label { font-size: 13px; }
}

/* ============================================================
   CROSS-SERVICE CONNECTED SECTION
   ============================================================ */
.cross-svc { background: #FFFFFF; }
.cross-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0 40px;
}
.cross-svc-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: var(--base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cross-svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--base) var(--ease);
}
.cross-svc-card:hover {
  border-color: rgba(107,33,168,0.22);
  box-shadow: var(--sh);
  transform: translateY(-4px);
}
.cross-svc-card:hover::after { transform: scaleX(1); }
.cross-svc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg,rgba(107,33,168,0.1),rgba(59,130,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cross-svc-card-icon svg { width: 24px; height: 24px; color: var(--purple-e); }
.cross-svc-card-label {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.cross-svc-card-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.cross-svc-tagline {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .cross-svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cross-svc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SR-ONLY (accessibility)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   BI DEMO DASHBOARD SECTION
   ============================================================ */
.bi-demo-section { background: #F0F2F8; }
.bi-demo-notice {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 7px 18px; width: fit-content; margin: 0 auto 36px;
  background: rgba(107,33,168,0.08); border: 1px solid rgba(107,33,168,0.16);
  border-radius: 100px; font-size: 11px; font-weight: 700;
  color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase;
}
.bi-demo-notice::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple); flex-shrink: 0;
}

/* Container */
.bi-dashboard {
  background: #0B0E1C; border-radius: 20px; padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 100px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
}

/* Header */
.bi-dash-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bi-dash-title-row { display: flex; align-items: center; gap: 10px; }
.bi-dash-title { font-size: 17px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.bi-demo-badge {
  padding: 3px 9px; background: rgba(107,33,168,0.25);
  border: 1px solid rgba(107,33,168,0.4); border-radius: 100px;
  font-size: 10px; font-weight: 700; color: #B57BFF;
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* Filters */
.bi-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bi-filter-group { display: flex; flex-direction: column; gap: 4px; }
.bi-filter-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3);
  letter-spacing: 0.09em; text-transform: uppercase;
}
.bi-filter-select {
  padding: 7px 28px 7px 10px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #FFFFFF; font-size: 12px; font-weight: 500; font-family: var(--font);
  cursor: pointer; outline: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: border-color 0.2s, background-color 0.2s; min-width: 128px;
}
.bi-filter-select option { background: #1B1E30; color: #fff; }
.bi-filter-select:focus,
.bi-filter-select:hover { border-color: rgba(107,33,168,0.5); background-color: rgba(255,255,255,0.09); }

/* KPI Grid */
.bi-kpi-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; margin-bottom: 14px;
}
.bi-kpi-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 18px 16px; cursor: default;
  transition: 0.2s ease; position: relative; overflow: hidden;
}
.bi-kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity 0.2s;
}
.bi-kpi-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(107,33,168,0.25); }
.bi-kpi-card:hover::before { opacity: 1; }
.bi-kpi-name {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px;
}
.bi-kpi-value {
  font-size: 28px; font-weight: 800; color: #FFFFFF;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px;
}
.bi-kpi-footer { display: flex; align-items: center; justify-content: space-between; }
.bi-kpi-change { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.bi-kpi-change.up { color: #10B981; }
.bi-kpi-change.dn { color: #F87171; }
.bi-kpi-change svg { width: 13px; height: 13px; }
.bi-kpi-context { font-size: 10px; color: rgba(255,255,255,0.2); }

/* Chart rows */
.bi-charts-row { display: grid; gap: 12px; margin-bottom: 12px; }
.bi-row-1 { grid-template-columns: 1.9fr 1fr; }
.bi-row-2 { grid-template-columns: 1.3fr 1fr; }
.bi-panel {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 18px 18px 14px; display: flex; flex-direction: column;
}
.bi-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.bi-panel-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.65); }

/* ============================================================
   HOMEPAGE SECTIONS — h2 colour overrides only
   Clears the global gradient-clip so text is visible; size/weight/family
   are left to each section's own rules.
   ============================================================ */
.sec-about-hp h2,
.sec-services h2,
.sec-works h2,
.why-nexcon-intro h2,
.sec-process h2,
.fcta h2 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  animation: none !important;
}

/* Per-section text colours */
.sec-about-hp h2     { color: #ffffff;  -webkit-text-fill-color: #ffffff; }
.sec-services h2     { color: #04112C !important;  -webkit-text-fill-color: #04112C !important; }
.sec-works h2        { color: #ffffff;  -webkit-text-fill-color: #ffffff; }
.why-nexcon-intro h2 { color: var(--text);  -webkit-text-fill-color: var(--text); }
.why-nexcon-intro h2 .grad-text { -webkit-text-fill-color: transparent !important; color: transparent !important; }
.sec-process h2      { color: var(--text);  -webkit-text-fill-color: var(--text); }
.fcta h2             { color: #ffffff;  -webkit-text-fill-color: #ffffff; }
.bi-chart-tabs { display: flex; gap: 4px; }
.bi-chart-tab {
  padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: rgba(255,255,255,0.35);
  font-size: 11px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: 0.15s;
}
.bi-chart-tab:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.bi-chart-tab.active { background: rgba(107,33,168,0.3); border-color: rgba(107,33,168,0.5); color: #FFFFFF; }
.bi-canvas-wrap { flex: 1; position: relative; min-height: 170px; }
.bi-canvas-wrap canvas { display: block; width: 100% !important; }
.bi-rev-tooltip { font-size: 12px; color: rgba(255,255,255,0.7); transition: opacity 0.15s; white-space: nowrap; }
.bi-rev-tooltip strong { color: #fff; font-weight: 700; }
.bi-tip-pos { color: #10B981; font-weight: 700; }

/* Customer segments */
.bi-cust-wrap { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 6px; }
.bi-cust-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 10px; cursor: default; transition: background 0.15s; border: 1px solid transparent;
}
.bi-cust-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.bi-cust-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bi-cust-inner { flex: 1; min-width: 0; }
.bi-cust-lbl-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.bi-cust-label { font-size: 11px; color: rgba(255,255,255,0.45); }
.bi-cust-val { font-size: 12px; font-weight: 700; color: #FFFFFF; }
.bi-cust-bar-bg { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.bi-cust-bar-fill { height: 100%; border-radius: 2px; transition: width 0.55s ease; }
.bi-cust-pct { font-size: 10px; color: rgba(255,255,255,0.25); min-width: 28px; text-align: right; }

/* Regional */
.bi-region-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 8px; }
.bi-region-item {
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s; border: 1px solid transparent;
}
.bi-region-item:hover, .bi-region-item.active {
  background: rgba(255,255,255,0.04); border-color: rgba(107,33,168,0.25);
}
.bi-region-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.bi-region-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.bi-region-rev { font-size: 13px; font-weight: 700; color: #FFFFFF; }
.bi-region-bar-bg { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.bi-region-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg,#7C3AED,#3B82F6); transition: width 0.5s ease; }
.bi-region-sub { display: flex; justify-content: space-between; }
.bi-region-sub-item { font-size: 11px; color: rgba(255,255,255,0.3); }
.bi-region-sub-item b { color: rgba(255,255,255,0.55); font-weight: 600; }

/* Insights */
.bi-insights-panel {
  background: rgba(107,33,168,0.07); border: 1px solid rgba(107,33,168,0.18);
  border-radius: 14px; padding: 18px 20px; margin-top: 12px;
}
.bi-insights-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.bi-insights-title { font-size: 13px; font-weight: 700; color: #FFFFFF; }
.bi-insights-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #7C3AED;
  box-shadow: 0 0 0 0 rgba(124,58,237,0.4); animation: pulse 2s infinite;
}
.bi-insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.bi-insight-type {
  display: inline-flex; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; margin-bottom: 8px;
}
.bi-insight-type.opp { color: #10B981; background: rgba(16,185,129,0.12); }
.bi-insight-type.watch { color: #F59E0B; background: rgba(245,158,11,0.12); }
.bi-insight-type.action { color: #60A5FA; background: rgba(59,130,246,0.12); }
.bi-insight-items { display: flex; flex-direction: column; gap: 7px; }
.bi-insight-item {
  font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.5);
  padding-left: 13px; position: relative; margin: 0;
}
.bi-insight-item::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.18);
}

/* Disclaimer */
.bi-disclaimer { text-align: center; margin-top: 14px; font-size: 11px; color: rgba(0,0,0,0.3); }

/* Value Proposition */
.bi-value-prop { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 64px; }
.bi-vp-card {
  background: #FFFFFF; border: 1px solid rgba(0,0,0,0.06); border-radius: 18px;
  padding: 36px 28px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}
.bi-vp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.09); }
.bi-vp-num { font-size: 12px; font-weight: 700; color: var(--purple); letter-spacing: 0.1em; margin-bottom: 10px; }
.bi-vp-title { font-size: 22px; font-weight: 800; color: #1C1C1E; letter-spacing: -0.02em; margin-bottom: 6px; }
.bi-vp-tagline { font-size: 14px; font-style: italic; color: var(--purple); font-weight: 600; margin-bottom: 14px; }
.bi-vp-body { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Data CTA */
.bi-data-cta {
  margin-top: 48px; padding: 52px 40px; text-align: center;
  background: linear-gradient(135deg,rgba(107,33,168,0.07) 0%,rgba(59,130,246,0.05) 100%);
  border: 1px solid rgba(107,33,168,0.14); border-radius: 20px;
}
.bi-data-cta h3 { font-size: clamp(22px,2.5vw,34px); font-weight: 800; color: #1C1C1E; letter-spacing: -0.02em; margin-bottom: 16px; }
.bi-data-cta p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.bi-data-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* BI Responsive */
@media (max-width: 900px) {
  .bi-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .bi-row-1, .bi-row-2 { grid-template-columns: 1fr; }
  .bi-insights-grid { grid-template-columns: 1fr; gap: 10px; }
  .bi-value-prop { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .bi-dashboard { padding: 16px 12px; }
  .bi-dash-head { flex-direction: column; }
  .bi-filters { flex-direction: column; align-items: stretch; }
  .bi-filter-select { min-width: unset; width: 100%; }
  .bi-kpi-value { font-size: 22px; }
  .bi-data-cta { padding: 36px 20px; }
}

/* ============================================================
   WHY NEXCON — PREMIUM LAYERED ANIMATION SYSTEM
   Layers: bg decorative → section header → cards → card text
   Motion: parallax depth + directional entrance + spring ease
   ============================================================ */

/* --- Easing tokens (appended to :root via cascade) --- */
:root {
  --wn-spring: cubic-bezier(0.34, 1.18, 0.64, 1);
  --wn-smooth: cubic-bezier(0.25, 1,    0.5,  1);
  --wn-expo:   cubic-bezier(0.87, 0,    0.13, 1);
}

/* Section: containing block for deco layer */
.why-nexcon-intro {
  position: relative;
  overflow: hidden;
}

/* Ensure wrap content sits above deco layer */
.why-nexcon-intro .wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
   DECORATIVE BACKGROUND LAYER
   Pointer-events off, purely visual, clipped to section
   ============================================================ */
.wn-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Ambient glow orbs — very slow drift */
.wn-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: opacity 1.8s ease;
}
.wn-orb--1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(54,128,223,0.16) 0%, transparent 70%);
  top: -130px;
  left: -130px;
  animation: wnOrb1 22s ease-in-out infinite alternate;
}
.wn-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,33,168,0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: wnOrb2 28s ease-in-out infinite alternate;
  transition-delay: 0.5s;
}
.why-nexcon-intro.wn-visible .wn-orb { opacity: 1; }

@keyframes wnOrb1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(55px, 40px) scale(1.14); }
}
@keyframes wnOrb2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, -55px) scale(1.1); }
}

/* Subtle mesh grid overlay */
.wn-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54,128,223,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,128,223,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0;
  transition: opacity 1.4s ease 0.4s;
}
.why-nexcon-intro.wn-visible .wn-mesh { opacity: 1; }

/* Accent line — draws left-to-right at section bottom */
.wn-line-h {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(54,128,223,0.45) 25%,
    rgba(54,128,223,0.45) 75%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.8s var(--wn-smooth) 1s;
}
.why-nexcon-intro.wn-visible .wn-line-h { transform: scaleX(1); }

/* Small floating accent dots */
.wn-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1s ease 0.7s;
}
.wn-dot--1 {
  width: 5px;  height: 5px;
  background: rgba(54,128,223,0.65);
  top: 18%;   right: 10%;
  animation: wnDot1 7s  ease-in-out infinite;
}
.wn-dot--2 {
  width: 3px;  height: 3px;
  background: rgba(107,33,168,0.55);
  bottom: 28%; left: 6%;
  animation: wnDot2 9s  ease-in-out infinite 1.2s;
}
.wn-dot--3 {
  width: 4px;  height: 4px;
  background: rgba(54,128,223,0.4);
  top: 62%;   right: 5%;
  animation: wnDot3 8s  ease-in-out infinite 0.6s;
}
.why-nexcon-intro.wn-visible .wn-dot { opacity: 1; }

@keyframes wnDot1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes wnDot2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(6px, 10px); }
}
@keyframes wnDot3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-8px, -9px); }
}

/* ============================================================
   SECTION HEADER — enhanced entrance (works via existing .rev)
   ============================================================ */
.why-nexcon-intro .sec-hd.rev {
  transform: translateY(22px) scale(0.98);
  filter: blur(3px);
  transition:
    opacity   0.9s var(--wn-smooth) 0s,
    transform 0.9s var(--wn-spring) 0s,
    filter    0.9s var(--wn-smooth) 0s;
}
.why-nexcon-intro .sec-hd.rev.in {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ============================================================
   CARD ENTRANCE ANIMATIONS
   Cards start off-screen in different directions, spring into
   final position with natural deceleration and subtle scale.
   ============================================================ */

/* Hidden base state */
.wn-card {
  opacity: 0;
  will-change: transform, opacity;
  border-color: transparent; /* reveal border via wn-card-in */
  transition-property: border-color;
  transition-duration: 0.6s;
  transition-timing-function: var(--wn-smooth);
}

/* Card 1 — slides from left, slight counter-clockwise tilt */
.wn-card--left {
  transform: translateX(-58px) scale(0.93);
  transition:
    opacity       0.88s var(--wn-smooth) 0.28s,
    transform     0.88s var(--wn-spring) 0.28s,
    border-color  0.6s  var(--wn-smooth) 1.1s;
}

/* Card 2 — rises from below */
.wn-card--up {
  transform: translateY(62px) scale(0.95);
  transition:
    opacity       0.88s var(--wn-smooth) 0.48s,
    transform     0.88s var(--wn-spring) 0.48s,
    border-color  0.6s  var(--wn-smooth) 1.3s;
}

/* Card 3 — slides from right */
.wn-card--right {
  transform: translateX(58px) scale(0.93);
  transition:
    opacity       0.88s var(--wn-smooth) 0.68s,
    transform     0.88s var(--wn-spring) 0.68s,
    border-color  0.6s  var(--wn-smooth) 1.5s;
}

/* Settled state — triggered by .wn-visible on parent section */
.why-nexcon-intro.wn-visible .wn-card {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  border-color: #3680df;
}

/* Glowing top accent line — draws left-to-right after card settles */
.why-nexcon-intro .wn-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(54,128,223,0.85) 35%,
    rgba(54,128,223,0.85) 65%,
    transparent
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s var(--wn-smooth);
  z-index: 4;
  pointer-events: none;
}
.why-nexcon-intro .wn-card.wn-card-in::after {
  transform: scaleX(1);
}

/* ============================================================
   INNER CARD TEXT — staggered reveal after card arrives
   Triggered by .wn-card-in class added via JS timeout
   ============================================================ */
.wn-inner {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
  transition:
    opacity   0.55s var(--wn-smooth),
    transform 0.55s var(--wn-smooth);
}
.wn-inner--d1 { transition-delay: 0.04s; }
.wn-inner--d2 { transition-delay: 0.14s; }
.wn-inner--d3 { transition-delay: 0.25s; }

.wn-card.wn-card-in .wn-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PARALLAX — expand image container for scroll headroom
   JS writes translateY() directly to .svc-grid-img
   ============================================================ */
.why-nexcon-intro .svc-grid-img {
  inset: -28px; /* extends 28 px beyond card on all sides */
  will-change: transform;
}

/* ============================================================
   REDUCED MOTION — accessibility override
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .wn-card,
  .wn-card--left,
  .wn-card--up,
  .wn-card--right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    border-color: #3680df !important;
  }
  .wn-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .why-nexcon-intro .wn-card::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }
  .why-nexcon-intro .sec-hd.rev {
    filter: none !important;
  }
  .wn-orb,
  .wn-dot { opacity: 0 !important; animation: none !important; }
  .wn-line-h  { transform: translateX(0) scaleX(1) !important; transition: none !important; }
  .wn-mesh    { opacity: 0.4 !important; transition: none !important; }
}

/* ============================================================
   HERO — PREMIUM PAGE-LOAD ANIMATIONS
   Stagger: h1 words → sub → actions → logos
   ============================================================ */

/* ---- Generic hero element stagger reveal ---- */
.hero-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.5s ease-out,
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-reveal.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ---- H1 word-mask/clip reveal ----------------------------------------
   Each word sits inside an overflow:hidden wrapper.
   The word starts translated below the clip boundary (transform:
   translateY(110%)) and slides up to translateY(0) — creating the
   classic "text reveal from behind a mask" effect.
   No opacity needed: the clip hides the word until it enters.
   ---------------------------------------------------------------------- */
.h1-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Extra room for descenders so the bottom of glyphs isn't clipped */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.h1-word {
  display: inline-block;
  will-change: transform;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}
.h1-word.revealed {
  transform: translateY(0);
}

/* ---- CTA button: disable CSS transform hover for magnetic buttons ------
   The lerp RAF loop writes transform directly (inline style).
   We keep all other transition properties but exclude transform so the
   RAF values snap-apply without fighting a CSS transition.
   ---------------------------------------------------------------------- */
.hero-actions .btn-magnetic {
  transition:
    box-shadow    var(--base) var(--ease),
    background    var(--base) var(--ease),
    border-color  var(--base) var(--ease),
    opacity       var(--base) var(--ease);
  /* transform intentionally omitted — magnetic lerp handles it */
}
/* Remove the CSS hover lift so magnetic JS is the sole transform author */
.hero-actions .btn-magnetic:hover {
  transform: none;
}

/* ---- Get Started — soft glow-pulse on hover ---- */
@keyframes heroGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(107,33,168,0.38),
                0 0 0    rgba(59,130,246,0);
  }
  50% {
    box-shadow: 0 8px 44px rgba(107,33,168,0.7),
                0 0 52px  rgba(59,130,246,0.28);
  }
}
.btn-grad.btn-glow-active {
  animation: heroGlowPulse 1.4s ease-in-out infinite;
}

/* ---- Scroll indicator: continuous gentle bob ---- */
@keyframes heroScrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0px);  opacity: 0.72; }
  50%       { transform: translateX(-50%) translateY(7px);  opacity: 1;    }
}
/* Override the old hintPulse for the scroll hint */
.hero-scroll-hint {
  animation: heroScrollBob 1.5s ease-in-out infinite;
}

/* ---- Reduced-motion: disable everything added above ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-reveal             { opacity: 1 !important; transform: none !important; transition: none !important; }
  .h1-word                 { transform: none !important; transition: none !important; }
  .btn-grad.btn-glow-active { animation: none !important; }
  .hero-scroll-hint        { animation: none !important; opacity: 0.8; }
}

/* ============================================================
   CASE STUDY CARDS — work.php
   ============================================================ */
.cs-section {
  background: #ffffff;
  padding: var(--sp) 0;
}

/* Section heading — centered */
.cs-section-hd {
  text-align: center;
  margin-bottom: 64px;
}
.cs-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 14px;
}
.cs-section-hd h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 800;
  color: #7c3aed;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  white-space: nowrap;
}
.cs-h2-accent {
  color: #7c3aed;
  display: inline;
}
.cs-section-hd p {
  font-size: 16px;
  color: #6b7280;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Card — trifleck style */
.cs-card {
  max-width: 1200px;
  margin: 0 auto 56px;
  background: #CED7EA;
  border: 1px solid #BCC7DE;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 45% 1fr;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.cs-card-img {
  position: relative;
  height: 460px;
  min-height: 460px;
  padding: 20px 0 20px 20px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.cs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.cs-card:hover .cs-card-img img {
  transform: scale(1.03);
}
.cs-card-body {
  padding: 48px 52px;
}
.cs-card-title {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.1;
}
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cs-tag {
  padding: 6px 14px;
  background: #1f2937;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #f9fafb;
  letter-spacing: 0.01em;
}
.cs-card-desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 32px;
}
.cs-card-desc strong {
  font-weight: 700;
  color: #111827;
}
.cs-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.cs-metric {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-metric-val {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  min-width: 52px;
}
.cs-metric-label {
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
}
.cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.cs-card-link:hover { color: #6d28d9; gap: 10px; }
@media (max-width: 900px) {
  .cs-section-hd h2 { white-space: normal; }
  .cs-card { grid-template-columns: 1fr; }
  .cs-card-img { height: 280px; min-height: 280px; padding: 16px 16px 0 16px; }
  .cs-card-body { padding: 32px 28px; }
}
@media (max-width: 480px) {
  .cs-card-body { padding: 24px 20px; }
}

/* Portfolio section heading — Image 4 style */
#portfolio h2 {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   INSIGHTS CAROUSEL
   ============================================================ */
.ins-carousel {
  position: relative;
}
.ins-carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
}
.ins-carousel-track {
  display: flex;
  gap: 28px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

/* Each slide — 3-up on desktop, 1-up on mobile */
.ins-slide {
  flex: 0 0 calc((100% - 56px) / 3);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ins-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
}
.ins-slide-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.ins-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ins-slide:hover .ins-slide-img img { transform: scale(1.04); }
.ins-slide-body {
  padding: 24px 24px 28px;
}
.ins-slide-body .ins-badge {
  display: inline-block;
  margin-bottom: 12px;
}
.ins-slide-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.ins-slide-body p {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.65;
}

/* Navigation arrows */
.ins-arrow {
  position: absolute;
  top: calc(50% - 40px); /* offset above dots area */
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  display: flex; align-items: center; justify-content: center;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  z-index: 10;
}
.ins-arrow:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.28);
}
.ins-arrow--prev { left: -22px; }
.ins-arrow--next { right: -22px; }
.ins-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ins-arrow:disabled:hover {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #374151;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

/* Dot indicators */
.ins-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.ins-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.ins-dot.active {
  background: #7c3aed;
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .ins-slide { flex: 0 0 calc((100% - 28px) / 2); }
}
@media (max-width: 600px) {
  .ins-slide { flex: 0 0 100%; }
  .ins-arrow--prev { left: -12px; }
  .ins-arrow--next { right: -12px; }
}

/* Insights section heading on light background */
#articles .cs-section-hd h2 {
  white-space: normal;
  font-size: clamp(32px, 4.5vw, 56px);
}


/* ============================================================
   SERVICE PAGES — shared nexcon background2 backdrop
   Applied via .svc-bg on every service page section except the
   hero, the section CTA and the final CTA/footer.
   ============================================================ */
.svc-bg {
  background: #F6F6FB url('../images/nexcon%20background2.png') center top / cover no-repeat;
  color: var(--text);
}
/* Headings and intro copy flip to dark — these sections used to be dark */
.svc-bg h2,
.svc-bg .sec-hd h2,
.svc-bg .cs-section-hd h2 {
  color: var(--near-black);
  -webkit-text-fill-color: var(--near-black);
  background: none;
  animation: none;
}
.svc-bg .sec-hd p,
.svc-bg .cs-section-hd p { color: var(--muted); }

/* ============================================================
   SERVICE PAGES — solution card row (ds-card) overrides
   Single-line centred heading, wider gutters, icon top-left,
   number + arrow top-right, brighter card copy.
   ============================================================ */
.ds-section .sec-hd h2 {
  font-size: clamp(26px, 3.4vw, 46px);
  max-width: 100%;
  text-align: center;
}
@media (min-width: 1100px) {
  .ds-section .sec-hd h2 { white-space: nowrap; }
}
.ds-section .ds-cards-row { column-gap: 32px; }

/* Top row: icon left, number + arrow right */
.ds-section .ds-card-top { align-items: flex-start; }
.ds-section .ds-card-top-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ds-section .ds-card-num {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Brighter copy over the photography */
.ds-section .ds-card-desc { color: rgba(255,255,255,0.9); }
.ds-section .ds-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 18, 0.34) 0%,
    rgba(5, 5, 18, 0.52) 40%,
    rgba(5, 5, 18, 0.9) 100%
  );
}
@media (max-width: 1100px) {
  .ds-section .ds-cards-row { column-gap: 24px; }
}

/* ============================================================
   NAVBAR — light theme (white bar, dark links, soft gradient CTA)
   ============================================================ */
.nav,
.nav.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(17,24,39,0.06);
}
.nav { padding: 18px 0; }
.nav.scrolled { padding: 12px 0; box-shadow: 0 6px 24px rgba(17,24,39,0.07); }
.nav::before { display: none; }
.nav-inner { gap: 24px; }

.nav .nav-logo-img { filter: brightness(0); height: 36px; }
.nav .nav-wordmark,
.nav-on-light .nav-wordmark,
.nav.scrolled .nav-wordmark {
  color: #1C1C1E;
  -webkit-text-fill-color: #1C1C1E;
  font-size: 24px;
  font-weight: 800;
}

.nav-links { gap: 22px; justify-content: center; }
.nav .nav-link,
.nav-on-light .nav-link,
.nav.scrolled .nav-link,
.nav.scrolled .nav-drop-btn {
  color: #1C1C1E;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  background: none;
}
.nav .nav-link:hover,
.nav .nav-link.active,
.nav-on-light .nav-link:hover,
.nav-on-light .nav-link.active,
.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active,
.nav.scrolled .nav-drop-btn:hover,
.nav-item-drop.open > .nav-drop-btn,
.nav-item-drop:hover > .nav-drop-btn {
  color: #6B21A8;
  background: none;
}
.nav .nav-drop-btn { font-size: 15px; gap: 6px; }
.nav .nav-drop-arrow { width: 11px; height: 11px; }

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #DDE3FF 0%, #FBE4F3 100%) !important;
  border: none !important;
  color: #1C1C1E !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 28px !important;
  box-shadow: 0 6px 20px rgba(107,33,168,0.10);
}
.nav .nav-cta:hover {
  background: linear-gradient(135deg, #D2DAFF 0%, #F8D6EC 100%) !important;
  box-shadow: 0 8px 24px rgba(107,33,168,0.18);
}
.nav .nav-cta svg { transition: transform var(--fast) var(--ease); }
.nav .nav-cta:hover svg { transform: translateX(3px); }

.nav .nav-ham span,
.nav-on-light .nav-ham span,
.nav.scrolled .nav-ham span { background: #1C1C1E; }

/* ============================================================
   NAVBAR — sizing pass (links 17px, bigger logo + CTA)
   ============================================================ */
.nav .nav-logo { gap: 14px; }
.nav .nav-logo-img { height: 48px; }
.nav .nav-wordmark,
.nav-on-light .nav-wordmark,
.nav.scrolled .nav-wordmark { font-size: 32px; }
.nav .nav-link,
.nav-on-light .nav-link,
.nav.scrolled .nav-link,
.nav.scrolled .nav-drop-btn,
.nav .nav-drop-btn { font-size: 17px; }
.nav .nav-cta {
  font-size: 17px;
  padding: 20px 36px !important;
  gap: 14px;
}
.nav .nav-cta svg { width: 22px; height: 22px; }
@media (max-width: 1180px) {
  .nav-links { gap: 6px; }
  .nav .nav-link, .nav .nav-drop-btn { padding: 8px 10px; }
  .nav .nav-cta { padding: 16px 26px !important; }
}
@media (max-width: 900px) {
  .nav .nav-logo-img { height: 40px; }
  .nav .nav-wordmark { font-size: 26px; }
}

/* ============================================================
   HOW WE WORK — icon top-right, per-card colour (--pc)
   ============================================================ */
.sec-process .proc-card {
  --pc: #6B21A8;
  padding: 40px 36px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--pc), var(--pc)) border-box;
  box-shadow: 0 2px 12px rgba(17,24,39,0.06);
}
.sec-process .proc-card:hover { box-shadow: 0 10px 34px rgba(17,24,39,0.12); }
.sec-process .proc-card::after { background: var(--pc); }
.sec-process .proc-card-title { color: var(--pc); padding-right: 76px; }
.sec-process .proc-card-ico {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 12%, #ffffff);
  transition: transform var(--base) var(--ease), background var(--base) var(--ease), color var(--base) var(--ease);
}
.sec-process .proc-card-ico svg { width: 26px; height: 26px; }
.sec-process .proc-card:hover .proc-card-ico { background: var(--pc); color: #ffffff; transform: scale(1.06); }

/* ============================================================
   FINAL CTA — roomier section, large pill buttons
   ============================================================ */
.fcta { padding: clamp(110px, 14vw, 200px) 0; }
.fcta h2 { margin-bottom: 36px; }
.fcta p { margin-bottom: 56px; font-size: clamp(15px, 1.5vw, 19px); }
.fcta-btns { gap: 28px; }
.fcta .btn,
.fcta .btn.btn-lg {
  min-width: 280px;
  padding: 26px 48px;
  font-size: 21px;
  font-weight: 700;
  border-radius: 9999px;
  justify-content: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.fcta .btn.btn-grad {
  background: linear-gradient(90deg, #2A0A7A 0%, #4A00D6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 30px rgba(10,0,50,0.35);
}
.fcta .btn.btn-grad:hover {
  background: linear-gradient(90deg, #35108F 0%, #5A14E6 100%);
  box-shadow: 0 14px 38px rgba(10,0,50,0.5);
}
.fcta .btn.btn-outline-light {
  background: linear-gradient(135deg, #E0E5FF 0%, #FCE6F4 100%);
  color: #1C1C1E;
  border: 1.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(10,0,50,0.22);
}
.fcta .btn.btn-outline-light:hover {
  background: linear-gradient(135deg, #D3DAFF 0%, #F9D8EC 100%);
  color: #1C1C1E;
  box-shadow: 0 14px 38px rgba(10,0,50,0.35);
}
@media (max-width: 600px) {
  .fcta .btn, .fcta .btn.btn-lg { min-width: 0; width: 100%; padding: 20px 28px; font-size: 18px; }
}

/* ============================================================
   CONTACT HERO — black + brand-colour heading on one line
   (placed after .pg-hero h1 so it wins the cascade)
   ============================================================ */
.contact-bg-wrap .pg-hero--contact { padding: 150px 0 48px; }
.contact-bg-wrap .pg-hero--contact h1 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #1C1C1E;
  -webkit-text-fill-color: #1C1C1E;
  animation: none;
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: none;
  margin: 0 auto 22px;
  white-space: nowrap;
}
.contact-bg-wrap .pg-hero--contact .contact-h1-accent {
  background-image: var(--grad);
  background-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.contact-bg-wrap .pg-hero--contact p {
  color: #4B5563;
  -webkit-text-fill-color: #4B5563;
  font-size: 19px;
  max-width: 760px;
}
@media (max-width: 600px) {
  .contact-bg-wrap .pg-hero--contact { padding: 120px 0 32px; }
  .contact-bg-wrap .pg-hero--contact h1 { white-space: normal; font-size: clamp(32px, 9vw, 44px); }
}

/* ============================================================
   MOBILE (<= 900px) — navbar, menu button, hero spacing, type scale
   Reference: Trifleck mobile (logo left, square purple menu button,
   centred hero copy with generous, even spacing)
   ============================================================ */
@media (max-width: 900px) {
  /* Navbar: logo + wordmark left, menu button right, no CTA */
  .nav .nav-cta { display: none !important; }
  .nav, .nav.scrolled { padding: 12px 0; }
  .nav-inner { gap: 12px; align-items: center; justify-content: space-between; padding: 0 20px; }
  .nav .nav-logo { gap: 10px; align-items: center; min-width: 0; }
  .nav .nav-logo-img { height: 40px; width: auto; flex-shrink: 0; }
  .nav .nav-wordmark,
  .nav-on-light .nav-wordmark,
  .nav.scrolled .nav-wordmark { font-size: 28px; line-height: 1; }

  /* Menu button: square, brand violet, white bars */
  .nav .nav-ham {
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #4A00D6;
    border-radius: 3px;
  }
  .nav .nav-ham span,
  .nav-on-light .nav-ham span,
  .nav.scrolled .nav-ham span { width: 28px; height: 3px; background: #ffffff; border-radius: 0; }

  /* Menu overlay */
  .nav-mobile { padding: 96px 24px 40px; }
  .nav-mobile-close {
    top: 12px;
    right: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4A00D6;
    border-radius: 3px;
    font-size: 34px;
    line-height: 1;
  }
  .nav-mobile-link,
  .nav-mobile-toggle { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; padding: 16px 0; }

  /* Hero: even spacing below the navbar, full copy, readable type */
  .hero { height: auto; min-height: 100svh; align-items: flex-start; padding-top: 72px; }
  .hero-inner { padding: 36px 20px 120px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.15; margin-bottom: 20px; }
  .hero-sub {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 32px;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }
  .hero-actions { flex-direction: column; gap: 14px; }
  .hero-actions .btn-lg {
    width: 100%;
    max-width: 340px;
    padding: 18px 24px;
    font-size: 19px;
    font-weight: 700;
    justify-content: center;
  }
  .hero-slide-dots { bottom: 40px; }
  .hero-scroll-hint { display: none; }
}

/* Type scale (phones) */
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.65; }
  .sec-hd h2,
  .sec-services h2,
  .sec-hd.center h2 { font-size: clamp(28px, 8vw, 34px); line-height: 1.18; }
  .sec-hd p,
  .tech-intro-body { font-size: 16px; line-height: 1.65; }
  #process-heading { font-size: clamp(30px, 8.5vw, 36px); }
  .pg-hero h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.15; }
  .pg-hero p { font-size: 16px; }
  .fcta h2 { font-size: clamp(30px, 8.6vw, 38px); }
  .fcta p { font-size: 16px; white-space: normal; }
  .svc-panel-hero-inner h3,
  .svc-panel-text h3 { font-size: 24px; }
  .proc-card-title { font-size: 20px; }
  .proc-card-body { font-size: 15px; }
}

@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-inner { padding-top: 12px; }
  .hero h1 { font-size: clamp(26px, 8.2vw, 36px); }
}

/* ============================================================
   MOBILE PASS 2 — services heading, buttons, Why Nexcon cards,
   About word belt (continuous auto-slide)
   ============================================================ */
@media (max-width: 900px) {
  /* "We Build, Innovate and Grow your Business" — same size as the hero heading */
  .sec-services .sec-hd h2#svc-heading,
  #svc-heading { font-size: clamp(26px, 8.2vw, 36px) !important; line-height: 1.18; letter-spacing: -0.02em; }
}

@media (max-width: 600px) {
  /* Buttons — Trifleck scale (~290 x 52, 17px bold) */
  .btn { padding: 13px 26px; font-size: 16px; }
  .btn-lg,
  .hero-actions .btn-lg,
  .pg-hero-actions .btn-lg,
  .fcta .btn,
  .fcta .btn.btn-lg,
  .form-submit {
    width: 100%;
    max-width: 290px;
    min-width: 0;
    padding: 15px 24px;
    font-size: 17px;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
  }
  .form-submit { max-width: none; }
  .hero-actions, .fcta-btns { gap: 12px; }
  .svc-tabs { gap: 8px; margin-top: 40px; margin-bottom: 24px; }
  .svc-tab { padding: 10px 20px; font-size: 14px; }
  .svc-panel-hero-cta, .svc-panel-cta { padding: 12px 24px; font-size: 15px; }

  /* Why Nexcon cards — shorter */
  .why-nexcon-intro .svc-grid { gap: 16px; }
  .why-nexcon-intro .svc-grid-card { height: 320px; }
  .why-nexcon-intro .svc-grid-body { padding: 16px 20px 20px; }
  .why-nexcon-intro .svc-grid-body h3 { font-size: 18px; margin-bottom: 6px; }
  .why-nexcon-intro .svc-grid-body p { font-size: 13px; line-height: 1.55; }
  .why-card-sub { font-size: 12px; margin-bottom: 6px; }
}

@media (max-width: 768px) {
  /* About word belt — smaller type, auto-sliding in opposite directions */
  .ai-belt { padding-top: 12px; margin-top: 8px; }
  .ai-belt-row {
    font-size: clamp(40px, 11.5vw, 48px);
    gap: 28px;
    padding: 6px 28px 6px 0;
    width: max-content;
    -webkit-text-stroke-width: 1.5px;
  }
  .about-belt-only .ai-belt-row--fwd { -webkit-text-stroke-width: 1.5px; }
  .ai-belt-row--fwd { animation: beltLeft 28s linear infinite; }
  .ai-belt-row--rev { animation: beltRight 28s linear infinite; }
}
@keyframes beltLeft  { from { transform: translateX(0); }       to { transform: translateX(-33.3333%); } }
@keyframes beltRight { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .ai-belt-row--fwd, .ai-belt-row--rev { animation: none; }
}

/* ============================================================
   NAVBAR LOGO — full-colour mark, slightly larger than the wordmark
   ============================================================ */
.nav .nav-logo { align-items: center; gap: 12px; }
.nav .nav-logo-img { filter: none; height: 38px; width: auto; display: block; }
.nav .nav-wordmark { line-height: 1; }
@media (max-width: 900px) {
  .nav .nav-logo { gap: 10px; }
  .nav .nav-logo-img { height: 34px; }
}


/* ===== ABOUT: hero on background3.jpg, commitment ===== */
.about-hero-bg{background:#000 url('../images/background3.jpg') center / cover no-repeat}
.about-hero-bg .pg-hero--about{background:transparent}
.about-hero-bg .about-belt-only{background:transparent !important;padding-top:clamp(40px,5vw,72px) !important;padding-bottom:clamp(24px,3vw,40px) !important}
.about-hero-bg .about-belt-only .ai-belt{margin-top:0}
.pg-hero--about h1{white-space:nowrap;font-size:clamp(26px,5.6vw,72px)}
.pg-hero--about .ab-hero-lead{max-width:1200px;margin:0 auto 36px;font-size:clamp(15px,1.4vw,19px);line-height:1.7;color:rgba(255,255,255,.75)}
@media(max-width:767px){.pg-hero--about h1{white-space:normal}}
#commitment{background:transparent}
#commitment .sec-hd h2{font-size:clamp(34px,4.6vw,56px);margin-bottom:20px;max-width:none}
#commitment .cm-lead{max-width:1200px;margin:0 auto;color:rgba(255,255,255,.78);font-size:18px;line-height:1.7}
.cm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:48px}
.cm-card{padding:32px 28px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);transition:transform .25s ease,border-color .25s ease,background .25s ease}
.cm-card:hover{transform:translateY(-5px);border-color:rgba(147,197,253,.55);background:rgba(255,255,255,.11)}
.cm-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--grad);color:#fff;margin-bottom:20px}
.cm-icon svg{width:26px;height:26px}
.cm-title{font-family:'Plus Jakarta Sans',sans-serif;font-size:19px;font-weight:700;color:#fff;margin:0 0 10px}
.cm-text{font-size:15px;line-height:1.65;color:rgba(255,255,255,.7);margin:0}
@media(max-width:991px){.cm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cm-grid{grid-template-columns:1fr}}


/* ===== ABOUT refinements ===== */
.pg-hero--about .ab-hero-lead{margin-bottom:48px}
.ab-grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;padding-right:.05em}
.about-hero-bg .about-belt-only{padding-top:clamp(8px,1.5vw,20px) !important}
@media(min-width:769px){
  .about-belt-only .ai-belt-row{font-size:90px;line-height:1;padding:2px 0}
}
.about-belt-only .ai-belt-row--fwd{-webkit-text-stroke-color:#3B82F6}
.bp-step-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.bp-step-top .bp-step-num{margin-bottom:0}
.bp-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(107,33,168,.10);color:#6B21A8;flex-shrink:0}
.bp-icon svg{width:22px;height:22px}
#commitment .sec-hd h2{color:#fff;-webkit-text-fill-color:#fff;background:none}
#commitment .cm-lead{color:#fff}
.cm-grid{grid-template-columns:repeat(4,minmax(0,350px));justify-content:center}
.bp-step.cm-card{min-height:300px;background:#fff;border:1px solid rgba(107,33,168,.09);backdrop-filter:none;padding:36px 32px}
.bp-step.cm-card:hover{background:#fff;border-color:rgba(107,33,168,.20)}
@media(max-width:991px){.cm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cm-grid{grid-template-columns:1fr}}


/* ===== ABOUT: process-style cards, belt tweaks ===== */
.ab-card{--pc:#6B21A8;position:relative;overflow:hidden;padding:28px 28px 32px;border-radius:24px;border:2px solid var(--pc);background:#fff;box-shadow:0 2px 12px rgba(17,24,39,.06);min-height:260px;transition:box-shadow .3s var(--ease),transform .3s var(--ease)}
.ab-card::after{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--pc)}
.ab-card:hover{box-shadow:0 10px 34px rgba(17,24,39,.12);transform:translateY(-4px)}
.ab-card-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}
.ab-card-num{font-family:'Plus Jakarta Sans',sans-serif;font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1;color:var(--pc);opacity:.85;padding-top:4px}
.ab-card-ico{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--pc);background:color-mix(in srgb,var(--pc) 12%,#fff);transition:transform .3s var(--ease),background .3s var(--ease),color .3s var(--ease)}
.ab-card-ico svg{width:24px;height:24px}
.ab-card:hover .ab-card-ico{background:var(--pc);color:#fff;transform:scale(1.06)}
.ab-card-title{font-family:'Plus Jakarta Sans',sans-serif;font-size:21px;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--pc);margin:0 0 10px}
.ab-card-sub{font-size:14px;font-weight:600;color:var(--text);margin:0 0 10px;line-height:1.4}
.ab-card-body{font-size:15px;line-height:1.75;color:var(--text);margin:0}
.about-belt-only .ai-belt-row--fwd{-webkit-text-stroke:0;font-weight:900;color:transparent}
.about-belt-only .ai-belt-row--fwd span{background:linear-gradient(135deg,#7C3AED 0%,#3B82F6 55%,#60A5FA 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
@media(min-width:769px){
  .about-belt-only .ai-belt-row--fwd{position:relative;top:-5px}
  .about-belt-only .ai-belt-row--rev{margin-top:5px}
}

/* About hero — normal mobile type, matches other pages */
@media (max-width: 767px) {
  .pg-hero--about h1 { font-size: clamp(36px, 9.5vw, 48px); line-height: 1.12; white-space: normal; margin-bottom: 20px; }
  .pg-hero--about .ab-hero-lead { font-size: 16px; line-height: 1.65; margin-bottom: 32px; }
  .pg-hero--about .ab-hero-lead br { display: none; }
  .pg-hero--about .ab-hero-lead::after { content: none; }
}

/* ===== CASE STUDY DETAIL PAGE ===== */
.csd-hero{background-color:var(--dark);background-size:cover;background-position:center;position:relative}
.csd-hero--img::before{display:block;background:linear-gradient(180deg,rgba(8,11,20,.78) 0%,rgba(8,11,20,.88) 100%);background-size:auto;mask-image:none;-webkit-mask-image:none}
.csd-hero--img::after{display:none}
.csd-hero .pg-hero-inner{text-align:center}
.csd-hero h1{font-size:clamp(36px,5.5vw,64px);margin-bottom:20px}
.csd-lead{max-width:1000px;margin:0 auto 24px;font-size:clamp(16px,1.5vw,19px);line-height:1.7;color:rgba(255,255,255,.82)}
.csd-tags{justify-content:center;margin-bottom:0}
.csd-sec{padding:clamp(56px,7vw,96px) 0;background:#fff}
.csd-sec--light{background:#F4F2FC}
.csd-hd{max-width:1000px;margin:0 auto 48px;text-align:center}
.csd-hd:last-child{margin-bottom:0}
.csd-hd h2{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(28px,4vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1.15;color:#111827;margin:0 0 16px}
.csd-sub{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(18px,2vw,22px);font-weight:700;color:#6B21A8;margin:0 0 14px}
.csd-hd p{font-size:clamp(16px,1.4vw,18px);line-height:1.75;color:#374151;margin:0 0 14px}
.csd-hd p:last-child{margin-bottom:0}
.csd-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;max-width:1200px;margin:0 auto}
.csd-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.csd-card{min-height:0;text-align:left}
.csd-card .ab-card-top{margin-bottom:16px}
.csd-outcomes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:1000px;margin:0 auto}
.csd-outcome{padding:32px 24px;border-radius:20px;background:#fff;border:1px solid rgba(107,33,168,.12);box-shadow:0 2px 12px rgba(17,24,39,.06);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.csd-outcome-val{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(32px,4vw,48px);font-weight:800;line-height:1;background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.csd-outcome-label{font-size:15px;font-weight:600;color:#374151;line-height:1.4}
@media(max-width:991px){.csd-cards,.csd-cards--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.csd-cards,.csd-cards--3,.csd-outcomes{grid-template-columns:1fr}.csd-hd{margin-bottom:32px}}

/* case study refinements */
.csd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.csd-hero--img{background-size:cover;background-position:center bottom;background-repeat:no-repeat;padding:0;height:clamp(460px,54vw,800px)}
.csd-hero--img::before,.csd-hero--img::after{display:none}
.csd-bg{background:#F6F6FB url('../images/nexcon%20background2.png') center top / cover no-repeat}
.csd-bg .csd-sec,.csd-bg .csd-sec--light{background:transparent}
.csd-hd .eyebrow{margin-bottom:16px}
.csd-hd h2{font-size:clamp(36px,5vw,64px);color:#1c1c1e;margin-bottom:20px}
.csd-hd h2 .grad-text{-webkit-text-fill-color:transparent}
.csd-hd p{max-width:1200px;margin-left:auto;margin-right:auto;color:#374151}
.csd-hd{max-width:1200px}

/* Homepage work section + brand case study hero */
.hp-work{background:#F6F6FB url('../images/nexcon%20background2.png') center top / cover no-repeat}
.hp-work .sec-hd h2{font-size:clamp(34px,4.6vw,56px);color:#1c1c1e;-webkit-text-fill-color:#1c1c1e}
.hp-work .sec-hd h2 .grad-text{-webkit-text-fill-color:transparent}
.hp-work .sec-hd p{max-width:1000px;margin-left:auto;margin-right:auto;color:#374151}
.hp-work-all{text-align:center;margin-top:8px}
.hp-work .cs-card-img img{object-position:center}
.csd-hero--photo{background-size:cover;background-position:center}
.csd-hero--photo::before{display:block;background:linear-gradient(180deg,rgba(8,11,20,.35) 0%,rgba(8,11,20,.7) 100%);background-size:auto;mask-image:none;-webkit-mask-image:none}
.csd-hero--photo::after{display:none}

/* Homepage hero: boxed slides (capped at 1200px, background visible at the sides) */
.hero-slide--boxed{left:0;right:0;margin:0 auto;width:min(1200px,100%);background-position:center}
@media(min-width:769px){
  .hero{padding-top:88px}
  .hero-inner{padding-top:24px}
}
@media(max-width:768px){
  .hero-inner{padding-top:24px}
}
/* About hero heading on phones — same scale as the homepage heading */
@media(max-width:767px){
  .pg-hero--about h1{font-size:clamp(38px,11vw,52px);line-height:1.12}
}
/* Longer hero paragraph: allow 4 lines on desktop so nothing is clipped */
@media(min-width:769px){.hero-sub{-webkit-line-clamp:4;line-clamp:4}}

/* Homepage hero: keep a faint photo visible behind the boxed slides */
.hero{background:linear-gradient(rgba(4,9,20,.80),rgba(4,9,20,.80)),url('../images/Training.jpg') center/cover no-repeat #04091a}
/* Homepage About — smaller type on phones */
@media(max-width:768px){
  .ahp-body{font-size:16px;line-height:1.7}
  .ahp-heading{font-size:20px}
}
