/* ============================================================
   NETCOM SCINERGY NEWSANTARA — Enterprise Design System
   Palette (colors swapped by request): primary Red #911515 · secondary Navy #162E54
   note: --navy* vars now carry red tones, --red* vars carry navy tones
   ============================================================ */

:root {
  /* Brand */
  --navy: #911515;
  --navy-800: #6f0f0f;
  --navy-900: #480a0a;
  --navy-700: #B01818;
  --navy-600: #a82828;
  --red: #162E54;
  --red-bright: #1D3A66;
  --red-soft: #d6e2f2;

  /* Neutrals */
  --white: #ffffff;
  --canvas: #EDF2FA;
  --ink: #0c1524;
  --slate-50: #f7f9fc;
  --slate-100: #eef2f8;
  --slate-200: #dde5ef;
  --slate-300: #c3cfe0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(72, 10, 10, .06), 0 1px 3px rgba(72, 10, 10, .1);
  --shadow-md: 0 8px 24px rgba(72, 10, 10, .08);
  --shadow-lg: 0 20px 50px rgba(72, 10, 10, .14);
  --shadow-xl: 0 40px 90px rgba(72, 10, 10, .22);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --container: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Futura", "Futura PT", "Jost", "Century Gothic", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -.01em; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }
.bg-slate { background: #E1E9F6; }
.bg-navy { background: var(--navy-800); color: #dbe4f2; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.bg-navy .eyebrow { color: #8ab4ff; }

.section-title { font-size: clamp(2rem, 4vw, 3.1rem); margin: 18px 0 18px; color: var(--navy); }
.bg-navy .section-title { color: #fff; }
.section-lead { font-size: 1.125rem; color: var(--slate-600); max-width: 620px; }
.center .section-lead { margin-inline: auto; }
.bg-navy .section-lead { color: #a9bcd8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 30px rgba(22, 46, 84, .32); }
.btn--primary:hover { background: var(--red-bright); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22, 46, 84, .42); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-3px); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.btn--outline { border: 1.5px solid var(--slate-300); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); transform: translateY(-3px); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red);
  font-size: .95rem;
}
.link-more svg { width: 16px; transition: transform .3s var(--ease); }
.link-more:hover svg { transform: translateX(5px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 22px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; }
.nav__logo { display: block; height: 42px; position: relative; }
.nav__logo img { height: 100%; width: auto; transition: opacity .3s var(--ease); }
.nav__logo .logo--white { position: absolute; inset: 0; opacity: 1; }
.nav__logo .logo--dark { opacity: 0; }

.nav__menu { display: flex; align-items: center; gap: 6px; flex: 1; margin-left: 44px; }
.nav__links { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.nav__link {
  padding: 10px 16px; border-radius: 10px; font-weight: 500; font-size: .95rem;
  color: rgba(255, 255, 255, .92); transition: color .3s var(--ease), background .3s var(--ease); position: relative;
}
.nav__link:hover { background: rgba(255, 255, 255, .12); }
.nav__link.active { color: #fff; }
.nav__link.active::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--red-bright);
}
.nav__cta { margin-left: 8px; }

/* ---------- Products dropdown (two-panel mega menu) ---------- */
.nav__item { position: relative; display: inline-flex; align-items: center; }
.nav__item > .nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(720px, 94vw); padding-top: 14px;
  display: grid; grid-template-columns: 240px 1fr;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  z-index: 200;
  filter: drop-shadow(0 30px 70px rgba(9,21,40,.18));
}

/* JS adds .open (with close delay); hover/focus kept as CSS fallback */
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__dropdown.open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}

/* left panel: category list */
.nav__cats { background: var(--slate-50, #f7f9fc); border: 1px solid var(--slate-200); border-right: 0; border-radius: 18px 0 0 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 340px; }
.nav__cat-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-radius: 12px; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy);
  transition: background .2s var(--ease), color .2s var(--ease); line-height: 1.25;
}
.nav__cat-tab:hover { color: var(--red); }
.nav__cat-tab::after { content: "›"; font-size: 1.1rem; line-height: 1; opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.nav__cat-tab.is-active::after { opacity: .6; transform: translateX(0); }
/* active tab highlight (JS-driven) */
.nav__cat-tab.is-active { background: #fff; color: var(--red); box-shadow: 0 6px 18px rgba(9,21,40,.06); }

/* right panel: product list per category */
.nav__panels { position: relative; padding: 26px 30px; background: #fff; border: 1px solid var(--slate-200); border-left: 0; border-radius: 0 18px 18px 0; min-height: 340px; }
.nav__panel { display: none; grid-template-columns: 1fr; gap: 4px; align-content: start; }
.nav__panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background .2s var(--ease), transform .2s var(--ease); }
.nav__panel a:hover { background: var(--slate-50, #f7f9fc); }
.nav__panel .p-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(145,21,21,.1), rgba(22,46,84,.1)); color: var(--navy); }
.nav__panel .p-ico svg { width: 18px; height: 18px; }
.nav__panel a:hover .p-ico { color: var(--red); }
.nav__panel .p-code { display: block; font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.nav__panel .p-name { display: block; font-size: .95rem; font-weight: 500; color: var(--navy); }
.nav__panel .p-soon { font-size: .88rem; color: var(--slate-500); grid-column: 1 / -1; }
/* categories-only dropdown: single column of categories with a short description,
   no product/service panel. Anchored left so it aligns under the Services link. */
.nav__item[data-empty-start] .nav__dropdown { left: 0; transform: translateX(0) translateY(8px); width: 360px; grid-template-columns: 1fr; }
.nav__item[data-empty-start]:hover .nav__dropdown,
.nav__item[data-empty-start]:focus-within .nav__dropdown,
.nav__item[data-empty-start] .nav__dropdown.open { transform: translateX(0) translateY(0); }
.nav__item[data-empty-start] .nav__cats { border-right: 1px solid var(--slate-200); border-radius: 18px; min-height: 0; padding: 12px; gap: 4px; }
.nav__item[data-empty-start] .nav__panels { display: none; }
/* category item shows title + short description stacked */
.nav__item[data-empty-start] .nav__cat-tab { flex-direction: column; align-items: flex-start; gap: 3px; }
.nav__item[data-empty-start] .nav__cat-tab .cat-title { display: block; }
.nav__item[data-empty-start] .nav__cat-tab .cat-desc { display: block; font-family: var(--font-body, inherit); font-weight: 400; font-size: .82rem; color: var(--slate-500); line-height: 1.35; }
.nav__item[data-empty-start] .nav__cat-tab:hover .cat-desc { color: var(--slate-600); }
.nav__item[data-empty-start] .nav__cat-tab::after { display: none; }

/* only the active panel is shown (JS toggles .is-active) */
.nav__panel.is-active { display: grid; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }

/* scrolled state */
.nav.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 6px 26px rgba(72, 10, 10, .09);
  padding: 12px 0;
}
.nav.scrolled .logo--white { opacity: 0; }
.nav.scrolled .logo--dark { opacity: 1; }
.nav.scrolled .nav__link { color: var(--slate-700); }
.nav.scrolled .nav__link:hover { background: var(--slate-100); color: var(--navy); }
.nav.scrolled .nav__link.active { color: var(--navy); }
.nav.scrolled .nav__toggle span { background: var(--navy); }

/* solid variant for interior pages */
.nav--solid { background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 6px 26px rgba(72,10,10,.08); position: fixed; }
.nav--solid .logo--white { opacity: 0; }
.nav--solid .logo--dark { opacity: 1; }
.nav--solid .nav__link { color: var(--slate-700); }
.nav--solid .nav__link:hover { background: var(--slate-100); color: var(--navy); }
.nav--solid .nav__link.active { color: var(--navy); }
.nav--solid .nav__toggle span { background: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(72, 10, 10, .9) 0%, rgba(72, 10, 10, .58) 46%, rgba(72, 10, 10, .18) 100%),
    radial-gradient(1000px 560px at 85% 18%, rgba(22, 46, 84, .18), transparent 62%);
}
#particles { position: absolute; inset: 0; z-index: -1; opacity: .5; }

/* ---------- Champion products slider ---------- */
.hero__slider { position: relative; width: 100%; overflow: hidden; }
.hero__track { display: flex; width: 100%; transition: transform .7s cubic-bezier(.65,.05,.36,1); will-change: transform; }
.hero__slide { flex: 0 0 100%; min-width: 100%; min-height: 100vh; display: flex; align-items: center; position: relative; }

/* oversized index numeral — signature motif */
.hero__index {
  position: absolute; top: 14%; left: 3%; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; line-height: .9;
  font-size: clamp(7rem, 20vw, 19rem); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.12);
}

.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding-top: 90px; width: 100%; position: relative; z-index: 1; }
/* mirrored composition — product on the left, content on the right */
.hero__product { order: 1; }
.hero__content { order: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #37e08b; box-shadow: 0 0 0 4px rgba(55, 224, 139, .25); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.05; }
.hero h1 .accent { color: transparent; background: linear-gradient(120deg, #5b8bff, var(--red-bright)); -webkit-background-clip: text; background-clip: text; }
.hero h1 .hero__pname { display: block; margin-top: 8px; font-family: var(--font-body, inherit); font-size: 1.25rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: rgba(255, 255, 255, .85); }
.hero__sub { font-size: 1.2rem; color: rgba(255, 255, 255, .82); max-width: 560px; margin: 26px 0 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero__tags span { font-size: .78rem; font-weight: 600; padding: 6px 14px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85); }
.hero__cta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
/* secondary CTA as a text link (no twin pill) */
.hero__demo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; color: #fff; position: relative; padding: 6px 2px; }
.hero__demo svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.hero__demo::after { content: ""; position: absolute; left: 2px; right: 24px; bottom: -1px; height: 2px; background: currentColor; transform: scaleX(.35); transform-origin: left; opacity: .5; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hero__demo:hover::after { transform: scaleX(1); opacity: 1; }
.hero__demo:hover svg { transform: translateX(4px); }

/* product image */
.hero__product { position: relative; }
.hero__product img {
  width: 100%; height: auto; border-radius: 20px; display: block;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

/* slider animation on active slide content */
.hero__slide .hero__content > * { opacity: 0; transform: translateY(26px); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.hero__slide.is-active .hero__content > *:nth-child(1) { transition-delay: .1s; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .2s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .4s; }
.hero__slide.is-active .hero__content > *:nth-child(5) { transition-delay: .5s; }
.hero__slide .hero__product { opacity: 0; transform: scale(.94) translateX(30px); }
.hero__slide.is-active .hero__product { opacity: 1; transform: none; transition: opacity .7s ease .25s, transform .7s ease .25s; }

/* controls / toggle */
.hero__ctrl { position: absolute; bottom: 40px; left: 0; right: 0; transform: none; z-index: 3; display: flex; align-items: center; gap: 18px; justify-content: flex-start; }
.hero__arrow {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); transition: background .25s ease, transform .25s ease;
}
.hero__arrow:hover { background: var(--red, #162e54); transform: translateY(-2px); }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__toggle { display: flex; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); padding: 6px; border-radius: 10px; }
.hero__tgl {
  border: 0; cursor: pointer; padding: 10px 20px; border-radius: 10px; font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; color: rgba(255,255,255,.75); background: transparent; transition: all .3s ease; white-space: nowrap;
}
.hero__tgl:hover { color: #fff; }
.hero__tgl.active { background: linear-gradient(120deg, #5b8bff, var(--red-bright, #1d3a66)); color: #fff; box-shadow: 0 8px 22px rgba(22,46,84,.4); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding: 180px 0 90px; color: #fff; overflow: hidden; background: var(--navy-800); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(900px 500px at 85% 10%, rgba(22,46,84,.35), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy-700)); }
/* optional background photo behind the gradient (drop an <img> with class page-hero__bg) */
.page-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
/* when a photo is present, darken the gradient a touch so text stays readable */
.page-hero:has(.page-hero__bg)::before { background: linear-gradient(120deg, rgba(72,10,10,.82), rgba(22,46,84,.72)); }
.page-hero__grid { display: none; }
.page-hero__inner { position: relative; z-index: 3; max-width: 760px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { font-size: 1.18rem; color: rgba(255,255,255,.82); margin-top: 20px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #8ab4ff; }

/* ============================================================
   TRUSTED BY / MARQUEE
   ============================================================ */
.trusted { padding: 54px 0; border-bottom: 1px solid var(--slate-100); }
.trusted__label { text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); font-weight: 600; margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 66px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--slate-400); white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SOLUTIONS CARDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.head-row .section-title, .head-row .eyebrow { margin: 0; }
.head-row .col-left { max-width: 620px; }
.head-row .section-title { margin: 16px 0 0; }

.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 34px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--red), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__media { margin: -34px -34px 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate-100); border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__ico { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-700)); margin-bottom: 22px; transition: transform .4s var(--ease); }
.card:hover .card__ico { transform: scale(1.08) rotate(-4deg); }
.card__ico svg { width: 30px; height: 30px; stroke: #fff; }
.card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; }
.card p { color: var(--slate-600); font-size: .98rem; margin-bottom: 22px; }
.card > .badge { display: inline-block; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 6px 13px; border-radius: 10px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
/* clickable product card */
.card--link { display: block; color: inherit; cursor: pointer; }
.card--link h3 { transition: color .3s var(--ease); }
.card--link:hover h3 { color: var(--red); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--red); }
.card__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.card--link:hover .card__more svg { transform: translateX(4px); }
.card .tags span { font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 10px; background: var(--slate-100); color: var(--slate-600); }

/* ---- Solution catalog cards (equal height, image on top) ---- */
.sol-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.sol-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sol-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-900, #480a0a), var(--red-bright, #1D3A66)); }
.sol-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.sol-card:hover .sol-card__media img { transform: scale(1.06); }
.sol-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; gap: 12px; }
.sol-card__body h3 { font-size: 1.22rem; color: var(--navy); line-height: 1.25; transition: color .3s var(--ease); margin: 0; }
.sol-card:hover .sol-card__body h3 { color: var(--red); }
.sol-card__body p { color: var(--slate-600); font-size: .95rem; text-align: justify; text-justify: inter-word; hyphens: manual; -webkit-hyphens: manual; margin: 0; }
.sol-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .9rem; color: var(--red); }
.sol-card__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.sol-card:hover .sol-card__more svg { transform: translateX(4px); }

.sol-card--cta { background: linear-gradient(150deg, var(--navy, #241B54), var(--navy-700, #2f2470)); border: 0; }
.sol-card--cta .sol-card__body { justify-content: center; }
.sol-card--cta h3 { color: #fff; }
.sol-card--cta p { color: rgba(255,255,255,.75); }
.sol-card__more--light { color: #5EEAD4; }
.sol-card--cta:hover .sol-card__more--light svg { transform: translateX(4px); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; padding: 28px; color: #fff; isolation: isolate; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.ind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(72,10,10,.15), rgba(72,10,10,.9)); transition: background .4s; }
.ind:hover img { transform: scale(1.08); }
.ind:hover::before { background: linear-gradient(180deg, rgba(22,46,84,.3), rgba(72,10,10,.92)); }
.ind__body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.ind__body p { font-size: .9rem; color: rgba(255,255,255,.8); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .4s var(--ease), margin .4s; }
.ind:hover .ind__body p { max-height: 90px; opacity: 1; margin-top: 8px; }
.ind__tag { position: absolute; top: 22px; left: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 10px; }

/* ============================================================
   FEATURED PROJECTS / CASE STUDIES
   ============================================================ */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; background: #fff; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.case:nth-child(even) .case__media { order: 2; }
.case__media { position: relative; min-height: 420px; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); }
.case__media .badge { position: absolute; top: 22px; left: 22px; background: var(--red); color: #fff; font-size: .76rem; font-weight: 700; padding: 7px 14px; border-radius: 10px; letter-spacing: .05em; }
.case__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.case__body .ind-label { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.case__body h3 { font-size: 1.75rem; color: var(--navy); margin: 12px 0 14px; }
.case__body p { color: var(--slate-600); margin-bottom: 22px; }
.case__tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.case__tech span { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--slate-100); color: var(--navy); }
.kpis { display: flex; gap: 32px; padding-top: 26px; border-top: 1px solid var(--slate-200); }
.kpis .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.kpis .num .plus { color: var(--red); }
.kpis .lbl { font-size: .8rem; color: var(--slate-500); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why__item { display: flex; gap: 18px; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease), background .3s; }
.why__item:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.why__item .n { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #8ab4ff; }
.why__ico { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; background: rgba(22,46,84,.9); display: grid; place-items: center; }
.why__ico svg { width: 26px; height: 26px; stroke: #fff; }
.why__item h4 { font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.why__item p { font-size: .92rem; color: #a9bcd8; }

/* stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statband .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: #fff; }
.statband .num .plus, .statband .num .pct { color: #8ab4ff; }
.statband .lbl { color: #a9bcd8; font-size: .95rem; margin-top: 4px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 20px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner .p-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--red); }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 60px; }
.timeline::before { content: ""; position: absolute; top: 46px; left: 0; right: 0; height: 3px; background: var(--slate-200); }
.timeline__progress { content: ""; position: absolute; top: 46px; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--navy)); transition: width 1.2s var(--ease); z-index: 1; }
.timeline__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.tl-step { text-align: center; position: relative; }
.tl-step .dot { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid var(--slate-300); margin: 21px auto 0; position: relative; z-index: 2; display: grid; place-items: center; color: var(--slate-400); box-shadow: 0 6px 16px rgba(9,21,40,.08); transition: border-color .4s, transform .4s, background .4s, color .4s, box-shadow .4s; }
.tl-step .dot svg { width: 24px; height: 24px; }
.tl-step.on .dot { border-color: var(--red); background: var(--red); color: #fff; transform: scale(1.08); box-shadow: 0 10px 24px rgba(145,21,21,.3); }
.tl-step:hover .dot { border-color: var(--navy); }
.tl-step .step-n { font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.tl-step h4 { font-size: 1.2rem; color: var(--navy); margin: 22px 0 8px; }
.tl-step p { font-size: .9rem; color: var(--slate-600); padding: 0 8px; }

/* 7-step variant: single full-width row so the connecting line stays continuous */
.timeline--7 .timeline__row { grid-template-columns: repeat(7, 1fr); gap: 12px; }
.timeline--7 .tl-step .dot { width: 46px; height: 46px; margin-top: 18px; }
.timeline--7 .tl-step .dot svg { width: 21px; height: 21px; }
.timeline--7::before,
.timeline--7 .timeline__progress { top: 43px; }
.timeline--7 .tl-step h4 { font-size: 1.02rem; margin: 18px 0 6px; }
.timeline--7 .tl-step p { font-size: .82rem; padding: 0 4px; }
.timeline--7 .tl-step .step-n { font-size: .74rem; }
@media (max-width: 1100px) and (min-width: 861px) {
  .timeline--7 .tl-step p { font-size: .76rem; }
  .timeline--7 .tl-step h4 { font-size: .95rem; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tst:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.tst .quote { font-size: 2.4rem; line-height: 1; color: var(--red); font-family: Georgia, serif; }
.tst p { color: var(--slate-700); font-size: 1.02rem; flex: 1; }
.tst__who { display: flex; align-items: center; gap: 14px; }
.tst__who .av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--red)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.tst__who .nm { font-weight: 700; color: var(--navy); font-size: .98rem; }
.tst__who .rl { font-size: .84rem; color: var(--slate-500); }
.stars { color: #f5b400; font-size: .95rem; letter-spacing: 2px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta { position: relative; overflow: hidden; padding: 120px 0; text-align: center; color: #fff; }
.finalcta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 55%, #12243a); }
.finalcta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 25% 30%, rgba(22,46,84,.4), transparent 60%), radial-gradient(600px 400px at 80% 80%, rgba(168,40,40,.6), transparent 60%); }
.finalcta h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); max-width: 840px; margin: 18px auto 22px; }
.finalcta p { font-size: 1.2rem; color: #c3cfe0; max-width: 620px; margin: 0 auto 40px; }
.finalcta .hero__cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: #93a6c4; padding: 80px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 40px; margin-bottom: 20px; }
.footer__brand p { max-width: 320px; font-size: .95rem; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background .3s, transform .3s; }
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__col h5 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; font-size: .93rem; transition: color .3s, padding .3s; }
.footer__col a:hover { color: #fff; padding-left: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .86rem; flex-wrap: wrap; gap: 12px; }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--slate-200); border-radius: 12px; font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s; background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(145,21,21,.1); }
.form__note { font-size: .84rem; color: var(--slate-500); }
.form__ok { display: none; padding: 14px 18px; border-radius: 12px; background: #e6f7ee; color: #1a7a45; font-weight: 600; font-size: .95rem; }

/* phone: country-code dropdown + number */
.phone-group { display: flex; gap: 10px; width: 100%; }
.phone-group__code { width: auto; flex: 0 0 96px; padding-left: 12px; padding-right: 8px; }
.phone-group__num { flex: 1 1 auto; min-width: 0; }

/* value/info list */
.info-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 30px; display: flex; gap: 18px; align-items: flex-start; }
.info-card .info-ico { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); display: grid; place-items: center; }
.info-card .info-ico svg { width: 26px; height: 26px; stroke: #fff; }
.info-card h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.info-card p { color: var(--slate-600); font-size: .93rem; }

/* justified body text — no hyphenation so words never break with a hyphen */
.card p, .prose p, .section-lead, .hero__sub { text-align: justify; text-justify: inter-word; hyphens: manual; -webkit-hyphens: manual; }
.center .section-lead, .finalcta p, .center p { text-align: center; hyphens: manual; }

/* prose */
.prose p { color: var(--slate-600); font-size: 1.05rem; margin-bottom: 20px; }
.prose h2 { color: var(--navy); font-size: 1.8rem; margin: 40px 0 16px; }
.prose ul.check { display: grid; gap: 12px; margin: 10px 0 24px; }
.prose ul.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-700); }
.prose ul.check li svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--red); margin-top: 2px; }

/* careers */
.job { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); margin-bottom: 16px; flex-wrap: wrap; }
.job:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--navy-600); }
.job h4 { color: var(--navy); font-size: 1.2rem; margin-bottom: 6px; }
.job .meta { display: flex; gap: 16px; font-size: .88rem; color: var(--slate-500); flex-wrap: wrap; }
.job .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; } .reveal.d6 { transition-delay: .6s; }

/* progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--navy)); z-index: 1100; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3, .grid-4, .partners, .statband { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; text-align: left; }
  .hero__product { order: -1; max-width: 460px; }
  .hero__slide { min-height: auto; padding: 40px 0 130px; }
  .hero__ctrl { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* ---------- mobile slide-in menu ---------- */
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; z-index: 1000;
    flex: none; margin-left: 0; width: min(340px, 86vw); max-width: 100%;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 92px 18px 32px; gap: 0;
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav__menu.open { transform: none; }
  .nav__links { position: static; transform: none; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; margin-right: 0; }
  .nav__menu .nav__link { color: #fff !important; font-size: 1rem; padding: 13px 14px; border-radius: 10px; }
  .nav__menu .nav__link:hover { background: rgba(255,255,255,.1); }
  .nav.scrolled .nav__menu .nav__link { color: #fff; }
  /* active page marker (replaces the desktop underline dot) */
  .nav__menu .nav__link.active { background: rgba(255,255,255,.08); }
  .nav__menu .nav__link.active::after {
    content: ""; position: absolute; left: 0; top: 50%; bottom: auto; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 3px; background: var(--red-bright);
  }
  .nav__toggle { display: flex; z-index: 1001; }

  /* mobile: show the Solutions dropdown inline instead of a floating mega-menu */
  .nav__item { display: block; width: 100%; position: static; }
  .nav__item > .nav__link { width: 100%; justify-content: flex-start; }
  .nav__caret { display: none; }
  .nav__item .nav__dropdown,
  .nav__item[data-empty-start] .nav__dropdown {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; width: 100%; padding: 0; margin: 2px 0 6px; display: block;
    filter: none; grid-template-columns: 1fr;
  }
  .nav__item .nav__cats,
  .nav__item[data-empty-start] .nav__cats {
    background: transparent; border: 0; border-radius: 0; min-height: 0;
    gap: 0; padding: 2px 0 2px 14px; margin-left: 8px;
    border-left: 1px solid rgba(255,255,255,.16);
  }
  .nav__cat-tab,
  .nav__item[data-empty-start] .nav__cat-tab {
    color: rgba(255,255,255,.78); padding: 10px 12px; border-radius: 8px;
    font-family: var(--font); font-weight: 500;
  }
  .nav__cat-tab:hover,
  .nav__item[data-empty-start] .nav__cat-tab:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav__cat-tab .cat-title,
  .nav__item[data-empty-start] .nav__cat-tab .cat-title { color: inherit; font-size: .92rem; font-weight: 500; line-height: 1.3; }
  .nav__cat-tab .cat-desc,
  .nav__item[data-empty-start] .nav__cat-tab .cat-desc { display: none; }
  .nav__cat-tab::after { display: none; }
  .nav__panels { display: none; }
  /* touch devices can leave :hover/:focus stuck — keep the panel inline regardless */
  .nav .nav__item:hover .nav__dropdown,
  .nav .nav__item:focus-within .nav__dropdown,
  .nav .nav__item[data-empty-start]:hover .nav__dropdown,
  .nav .nav__item[data-empty-start]:focus-within .nav__dropdown,
  .nav .nav__item[data-empty-start] .nav__dropdown.open {
    position: static; transform: none; width: 100%; left: auto; filter: none;
  }

  /* divider between the links and the CTA button */
  .nav__links { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  /* CTA keeps its button look, full width */
  .nav__cta { margin: 18px 0 0; width: 100%; justify-content: center; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }
  .case, .why { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media { min-height: 280px; }
  .timeline__row { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before, .timeline__progress { display: none; }
  .tl-step .dot { display: none; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .grid-3, .grid-4, .grid-2, .partners, .statband, .form .row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .case__body { padding: 32px 26px; }
  .kpis { gap: 22px; flex-wrap: wrap; }
  .hero__stats { gap: 24px; }
  .hero__tgl { padding: 10px 16px; }
  .hero__tgl span { display: none; }
  .hero__toggle { gap: 6px; }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SERVICES CATALOG — filter toolbar + search + category grid
   ============================================================ */
.svc-toolbar { display: flex; flex-direction: column; gap: 20px; margin-bottom: 44px; }
.svc-search { position: relative; max-width: 520px; }
.svc-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate-400); pointer-events: none; }
.svc-search input {
  width: 100%; padding: 15px 18px 15px 50px; font: inherit; font-size: 1rem;
  color: var(--navy); background: #fff; border: 1.5px solid var(--slate-200);
  border-radius: 14px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.svc-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(145,21,21,.1); }
.svc-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-filter {
  padding: 10px 20px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--slate-200);
  background: #fff; color: var(--slate-600); font-family: var(--font-display); font-weight: 600;
  font-size: .92rem; transition: all .2s var(--ease); white-space: nowrap;
}
.svc-filter:hover { border-color: var(--navy); color: var(--navy); }
.svc-filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(145,21,21,.28); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px; background: #fff;
  border: 1px solid var(--slate-200); border-radius: var(--radius-lg, 18px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg, 0 24px 50px rgba(9,21,40,.12)); border-color: var(--slate-300); }
.svc-card__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--slate-100); color: var(--navy); }
.svc-card__ico svg { width: 26px; height: 26px; }
.svc-card__cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.svc-card h3 { font-size: 1.2rem; color: var(--navy); line-height: 1.25; }
.svc-card p { font-size: .95rem; color: var(--slate-600); flex: 1; }
.svc-card__count { font-size: .85rem; font-weight: 600; color: var(--slate-500); }
.svc-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); font-size: .95rem; margin-top: 4px; }
.svc-card__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__more svg { transform: translateX(4px); }
.svc-card.is-hidden { display: none; }

/* category sections hide/show for filter + search */
.svc-section.is-hidden { display: none; }
.svc-item.is-hidden { display: none; }
.svc-empty { display: none; text-align: center; padding: 60px 0; color: var(--slate-500); font-size: 1.05rem; }
.svc-empty.is-shown { display: block; }

/* service detail page: sub-service list */
.subsvc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.subsvc {
  display: flex; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--slate-200);
  border-radius: 14px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.subsvc:hover { border-color: var(--slate-300); transform: translateX(3px); }
.subsvc__num { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: .95rem; flex-shrink: 0; }
.subsvc h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 5px; }
.subsvc p { font-size: .9rem; color: var(--slate-600); }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .subsvc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   JUSTIFIED DESCRIPTIONS (skip centered content)
   ============================================================ */
.prose p,
.card p,
.svc-item p,
.subsvc p,
.subsvc-card__body p,
.section-lead,
.why__item p,
.info-card p,
.prose ul.check li,
.who-panel p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* keep centered blocks centered (override the justify above) */
.center .section-lead,
.center p,
.finalcta p,
.finalcta .section-lead {
  text-align: center;
  hyphens: manual;
}
/* hero intro stays left-aligned, not justified */
.page-hero p { text-align: left; hyphens: manual; }

/* ============================================================
   MEDIA COMPONENTS — image slots, feature splits, icon tiles
   Placeholders show a branded gradient until real images drop in.
   ============================================================ */

/* Generic framed media (rounded, shadow) with aspect ratio */
.media-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg, 18px);
  background: linear-gradient(135deg, var(--navy-900, #480a0a), var(--red, #162E54));
  box-shadow: var(--shadow-lg, 0 24px 50px rgba(9,21,40,.14));
}
.media-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-frame.ratio-4-3 { aspect-ratio: 4 / 3; }
.media-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.media-frame.ratio-1-1 { aspect-ratio: 1 / 1; }
.media-frame.ratio-3-2 { aspect-ratio: 3 / 2; }

/* Placeholder label shown when there is no <img> (empty frame) */
.media-frame[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 16px; color: rgba(255,255,255,.55); font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.media-frame[data-placeholder] > img { position: relative; z-index: 1; }
.media-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.12), transparent 45%),
                    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}

/* Split section: text one side, media the other */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

/* Small icon tile (for cards) — holds an <img> icon or inline svg */
.icon-tile {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(145,21,21,.12), rgba(22,46,84,.12));
  color: var(--navy); border: 1px solid var(--slate-200);
}
.icon-tile img { width: 30px; height: 30px; object-fit: contain; }
.icon-tile svg { width: 28px; height: 28px; }

/* ---- Decorated gradient icon tile (shared look) ---- */
/* base gradient + soft grid texture + radial glow, applied to both outer & inner tiles */
.card__thumb, .subsvc-card__tile {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120px 120px at 50% 42%, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(135deg, var(--navy-900, #480a0a) 0%, var(--navy-800, #6f0f0f) 45%, var(--red-bright, #1D3A66) 100%);
}
.card__thumb::before, .subsvc-card__tile::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
}
/* corner accent ring */
.card__thumb::after, .subsvc-card__tile::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); pointer-events: none;
}

/* card with a small media thumb on top (ecosystem/industries + services) */
.card__thumb {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
/* icon centered in a soft glass frame */
.card__thumb .thumb-ico {
  position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25); backdrop-filter: blur(2px);
}
.card__thumb .thumb-ico svg { width: 32px; height: 32px; }
.card--link:hover .card__thumb .thumb-ico { background: rgba(255,255,255,.14); }

/* sub-service card (inside detail pages) — decorated tile + icon + text */
.subsvc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.subsvc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 20px 44px rgba(9,21,40,.12)); border-color: var(--slate-300); }
.subsvc-card__tile { aspect-ratio: 16 / 10; display: grid; place-items: center; color: #fff; }
.subsvc-card__tile .subsvc-ico {
  position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
}
.subsvc-card__tile .subsvc-ico svg { width: 28px; height: 28px; }
.subsvc-card__tile .subsvc-card__num { position: absolute; top: 12px; left: 14px; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: rgba(255,255,255,.55); }
.subsvc-card__body { padding: 20px 22px; }
.subsvc-card__body h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.subsvc-card__body p { font-size: .9rem; color: var(--slate-600); }

@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; gap: 34px; }
  .feature-split .media-frame { order: -1; }
}

/* ============================================================
   "WHO WE ARE" positioning panel (homepage) — left aligned,
   justified body, decorated background (not plain white)
   ============================================================ */
.who-panel {
  position: relative; overflow: hidden;
  padding: 54px 56px; border-radius: 22px;
  background:
    radial-gradient(520px 360px at 100% 0%, rgba(145,21,21,.08), transparent 60%),
    radial-gradient(520px 360px at 0% 100%, rgba(22,46,84,.08), transparent 60%),
    linear-gradient(135deg, #eef2fb 0%, #e3e9f6 100%);
  border: 1px solid var(--slate-200);
}
/* faint dot grid texture */
.who-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(22,46,84,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 85% 20%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 85% 20%, #000, transparent 70%);
}
/* accent bar on the left */
.who-panel::after {
  content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; width: 5px;
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--navy), var(--red));
}
.who-panel > * { position: relative; z-index: 1; }
.who-panel .section-lead { text-align: justify; hyphens: manual; -webkit-hyphens: manual; max-width: none; margin: 0; }

@media (max-width: 620px) {
  .who-panel { padding: 36px 24px; }
}
