/* ==========================================================================
   MindTraits — Corporate Website Redesign
   Plain CSS design system. No frameworks.
   Theme derived from the official MindTraits logo:
   azure blue #0169c7 ("MIND" + MT badge) and vivid green #38c600 ("TRAITS"),
   on white / light-grey surfaces with deep blue-navy ink.
   ========================================================================== */

:root {
  --ink: #0e1a2e;
  --ink-soft: #27364f;
  --slate: #55627a;
  --slate-light: #8593ab;
  --blue: #0169c7;
  --blue-dark: #01539f;
  --blue-soft: #2e8ee0;
  --blue-tint: #e9f3fc;
  --green: #38c600;
  --green-ink: #2b9e00;
  --green-bright: #5be02e;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-navy: #0e1a2e;
  --border: #e2eaf3;
  --border-strong: #cbdaea;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(14, 26, 46, 0.05);
  --shadow-m: 0 10px 30px rgba(14, 26, 46, 0.08);
  --shadow-l: 0 24px 60px rgba(14, 26, 46, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-soft);
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: rgba(1, 105, 199, 0.16);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 300;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section--navy {
  background: var(--bg-navy);
  color: #fff;
}
.section--navy .section-title,
.section--navy h3 {
  color: #fff;
}

/* ---------- Section headers ---------- */
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section--navy .kicker {
  color: var(--green-bright);
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: 16px;
}
.section-lead {
  color: var(--slate);
  max-width: 66ch;
  font-size: 17.5px;
}
.section--navy .section-lead {
  color: #b9c0d4;
}
.section-head {
  margin-bottom: 56px;
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15.5px;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(1, 105, 199, 0.28);
}
.btn--primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--blue-tint);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-s);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 38px;
  width: auto;
}
/* Brand logo — scroll swap: the scroll-state image overlays the default one
   exactly (same 170×46 canvas); opacity is driven by scroll position in JS. */
.site-header .brand {
  position: relative;
}
.site-header .brand .brand__img--scroll {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:not(.btn) {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 15px;
  transition: background 0.16s ease, color 0.16s ease;
}
.main-nav a:not(.btn):hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.main-nav a.is-active:not(.btn) {
  background: var(--ink);
  color: #fff;
}
.header-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 46, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 190;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 96px;
  background: radial-gradient(
      900px 480px at 85% -10%,
      rgba(1, 105, 199, 0.07),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at -10% 110%,
      rgba(56, 198, 0, 0.08),
      transparent 60%
    ),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--blue);
}
.hero-lead {
  font-size: 18.5px;
  color: var(--slate);
  max-width: 54ch;
  margin-bottom: 14px;
}
.hero-rotator {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 34px;
  min-height: 1.6em;
}
.hero-rotator .dot {
  color: var(--green-ink);
}
.hero-rotator span {
  transition: opacity 0.25s ease;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}
.hero-badges span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
}

.page-hero {
  padding: calc(var(--header-h) + 72px) 0 72px;
  background: radial-gradient(
      800px 400px at 90% -20%,
      rgba(1, 105, 199, 0.08),
      transparent 60%
    ),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero .section-lead {
  margin-bottom: 0;
}

/* ---------- Bento / cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.card h3,
.card h4 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p {
  color: var(--slate);
  font-size: 15.5px;
  margin-bottom: 0;
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 20px;
}
.icon-tile svg {
  width: 24px;
  height: 24px;
}
.card--navy {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.card--navy h3,
.card--navy h4 {
  color: #fff;
}
.card--navy p {
  color: #b9c0d4;
}
.card--navy .icon-tile {
  background: rgba(91, 224, 46, 0.14);
  color: var(--green-bright);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.tag--blue {
  background: var(--blue-tint);
  border-color: transparent;
  color: var(--blue);
}

/* ---------- Split intro ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .media img {
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
  text-align: left;
}
.stat strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat strong em {
  font-style: normal;
  color: var(--blue);
}
.stat span {
  color: var(--slate);
  font-size: 14.5px;
}

/* ---------- Industries (Sectors we support) ---------- */
.grid--sectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.industry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.industry:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--blue);
}
.industry__art {
  aspect-ratio: 10 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry__art svg {
  width: 76%;
  height: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.34, 1);
}
.industry:hover .industry__art svg {
  transform: scale(1.06) translateY(-2px);
}
.industry h4 {
  margin: 0;
  padding: 16px 18px 20px;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--border);
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.16s ease;
}
.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-l);
  border-color: var(--border-strong);
}
.project-card .thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.project-card:hover .thumb img {
  transform: scale(1.035);
}
.project-card .body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.project-card .cat {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.project-card h3 {
  font-size: 21px;
  margin: 0;
}
.project-card p {
  color: var(--slate);
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.project-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--ink);
}
.project-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.16s ease;
}
.project-link:hover {
  color: var(--blue);
}
.project-link:hover svg {
  transform: translateX(3px);
}
.case-study {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--slate);
  transition: all 0.16s ease;
}
.case-study svg {
  width: 18px;
  height: 18px;
}
a.case-study:hover {
  background: var(--blue-tint);
  color: var(--blue);
  border-color: transparent;
}
.case-study[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.is-hidden {
  display: none !important;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card .quote-mark {
  width: 34px;
  height: 34px;
  color: var(--blue);
  opacity: 0.9;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 13px;
}
.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 15px;
  flex: none;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 14.5px;
  display: block;
}
.testimonial-card .role {
  color: var(--slate);
  font-size: 13.5px;
}

/* ---------- Clients ---------- */
.client-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.client-badge {
  padding: 15px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}
.client-badge:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px 28px 28px;
}
.process-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  margin-bottom: 18px;
}
.process-step:nth-child(even) .num {
  background: var(--blue);
}
.process-step h4 {
  margin-bottom: 6px;
}
.process-step p {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
}

/* ---------- Company Journey (vertical timeline, 2012–2026) ---------- */
.journey {
  position: relative;
  margin-top: 56px;
  padding: 4px 0 28px;
}
.journey::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--border-strong);
}
.journey-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  transition: height 0.12s linear;
  z-index: 1;
}
.journey-cursor {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(56, 198, 0, 0.22),
    0 4px 12px rgba(14, 26, 46, 0.28);
  transform: translateY(-50%);
  opacity: 0;
  transition: top 0.12s linear, opacity 0.3s ease;
  z-index: 3;
}
.journey-era {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 46px 0 40px;
}
.journey-era:first-of-type {
  margin-top: 8px;
}
.journey-era span {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 22px;
  box-shadow: var(--shadow-m);
  white-space: nowrap;
}
.journey-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: start;
  margin-bottom: 34px;
}
.journey-item:last-child {
  margin-bottom: 0;
}
.journey-year {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  padding-top: 20px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-light);
  transition: color 0.3s ease;
}
.journey-node {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 16px;
  height: 16px;
  margin-top: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border-strong);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}
.journey-card {
  grid-column: 3;
  grid-row: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 26px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.journey-item:nth-of-type(even) .journey-year {
  grid-column: 3;
  justify-self: start;
}
.journey-item:nth-of-type(even) .journey-card {
  grid-column: 1;
}
.journey-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.journey-card h3 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.journey-card p {
  color: var(--slate);
  line-height: 1.72;
  margin: 0;
  font-size: 15.5px;
}
.journey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.journey-tags span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid rgba(1, 105, 199, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
}
/* Key milestones & the featured chapter */
.journey-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
  background: rgba(56, 198, 0, 0.1);
  border: 1px solid rgba(56, 198, 0, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
}
.journey-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.journey-item--key .journey-node {
  width: 19px;
  height: 19px;
  border-color: var(--blue);
  background: var(--blue-tint);
}
.journey-item--key .journey-year {
  color: var(--blue);
}
.journey-item--key .journey-card {
  position: relative;
  overflow: hidden;
}
.journey-item--key .journey-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}
.journey-item--featured .journey-card {
  border-color: rgba(1, 105, 199, 0.3);
  background: linear-gradient(180deg, #f7fafd, #ffffff 55%);
}
/* Active chapter as the scroll position passes it */
.journey-item.is-active .journey-node {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(1, 105, 199, 0.18);
}
.journey-item.is-active .journey-year {
  color: var(--blue);
}
.journey-item.is-active .journey-card {
  border-color: rgba(1, 105, 199, 0.45);
  box-shadow: var(--shadow-m);
}
/* Line Mapper feature block (2019) */
.linemapper {
  margin-top: 18px;
  background: var(--blue-tint);
  border: 1px solid rgba(1, 105, 199, 0.16);
  border-radius: var(--radius-m);
  padding: 22px 24px;
}
.linemapper h4 {
  font-size: 17px;
  margin: 0 0 3px;
}
.linemapper .lm-tagline {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.lm-grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.lm-grid li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
}
.lm-grid svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: var(--green);
  margin-top: 2px;
}
.lm-contrib {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(1, 105, 199, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lm-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.lm-chip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}
/* Journey — tablet & mobile */
@media (max-width: 860px) {
  .journey {
    margin-top: 44px;
  }
  .journey::before,
  .journey-progress {
    left: 16px;
  }
  .journey-cursor {
    left: 16px;
  }
  .journey-era {
    justify-content: flex-start;
    padding-left: 42px;
    margin: 36px 0 30px;
  }
  .journey-era span {
    white-space: normal;
    text-align: center;
    line-height: 1.45;
  }
  .journey-item {
    grid-template-columns: 42px 1fr;
    margin-bottom: 28px;
  }
  .journey-item .journey-node,
  .journey-item:nth-of-type(even) .journey-node {
    grid-column: 1;
    grid-row: 1;
    margin-top: 8px;
  }
  .journey-item .journey-year,
  .journey-item:nth-of-type(even) .journey-year {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    padding: 0 0 10px;
    font-size: 22px;
  }
  .journey-item .journey-card,
  .journey-item:nth-of-type(even) .journey-card {
    grid-column: 2;
    grid-row: 2;
    padding: 22px 20px;
  }
  .lm-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(
      700px 300px at 90% 0%,
      rgba(91, 224, 46, 0.12),
      transparent 60%
    ),
    radial-gradient(
      600px 320px at 5% 100%,
      rgba(46, 142, 224, 0.22),
      transparent 60%
    ),
    var(--bg-navy);
  border-radius: var(--radius-l);
  padding: 72px 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.cta-band p {
  color: #b9c0d4;
  max-width: 60ch;
  margin: 0 auto 32px;
}
.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-item .icon-tile {
  margin: 0;
  flex: none;
  width: 46px;
  height: 46px;
}
.contact-item h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.contact-item p {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
}
.contact-item a {
  color: var(--ink);
  font-weight: 600;
}
.contact-item a:hover {
  color: var(--blue);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 38px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 7px;
}
.field label .req {
  color: var(--blue);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(1, 105, 199, 0.12);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field .error-msg {
  display: none;
  color: #c81e3a;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 550;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #c81e3a;
}
.field.has-error .error-msg {
  display: block;
}
.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--blue-tint);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.form-note svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--blue);
  margin-top: 1px;
}
.form-status {
  display: none;
  border-radius: var(--radius-s);
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 550;
  margin-top: 18px;
}
.form-status.is-success {
  display: block;
  background: #e9f9ef;
  color: #146c37;
  border: 1px solid #bfe8cd;
}
.form-status.is-error {
  display: block;
  background: #fdeef0;
  color: #a01830;
  border: 1px solid #f3c2cb;
}

/* ---------- Project detail ---------- */
.project-hero {
  padding: calc(var(--header-h) + 64px) 0 64px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: var(--slate);
  font-weight: 550;
}
.breadcrumb a:hover {
  color: var(--blue);
}
.project-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.project-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.project-hero .shot {
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.detail-list {
  display: grid;
  gap: 14px;
}
.detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.detail-list svg {
  width: 19px;
  height: 19px;
  color: var(--green-ink);
  flex: none;
  margin-top: 3px;
}
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.project-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--ink);
}
.project-nav a:hover {
  color: var(--blue);
}
.project-nav svg {
  width: 16px;
  height: 16px;
}
.empty-state {
  text-align: center;
  padding: 90px 24px;
}
.empty-state h1 {
  font-size: 2rem;
}
.empty-state p {
  color: var(--slate);
  max-width: 52ch;
  margin: 0 auto 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-navy);
  color: #aab2c8;
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 52px;
}
.site-footer .brand img {
  height: 38px;
  width: auto;
  /* background: #fff; */
  padding: 7px 12px;
  border-radius: 12px;
  box-sizing: content-box;
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.site-footer p,
.site-footer li {
  font-size: 14.5px;
  line-height: 1.75;
}
.site-footer a {
  color: #aab2c8;
}
.site-footer a:hover {
  color: #fff;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--blue-soft);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--sectors {
    grid-template-columns: repeat(3, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid,
  .project-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-visual {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }
  .section {
    padding: 68px 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 88px 22px 30px;
    box-shadow: -12px 0 40px rgba(14, 26, 46, 0.16);
    transform: translateX(100%);
    transition: transform 0.26s ease;
    overflow-y: auto;
    z-index: 195;
  }
  .main-nav.is-open {
    transform: none;
  }
  .main-nav a {
    padding: 14px 18px;
    font-size: 16.5px;
  }
  .header-cta {
    margin: 14px 0 0;
    justify-content: center;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .grid--sectors {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 26px;
  }
  .cta-band {
    padding: 52px 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero {
    padding-top: calc(var(--header-h) + 56px);
  }
}

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

/* ==========================================================================
   Services page — mega-menu, hero carousel, carousels, demos, methodology
   ========================================================================== */

/* ---------- Services mega-menu ---------- */
.nav-mega {
  position: static;
}
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 550;
  font-size: 15px;
  transition: background 0.16s ease, color 0.16s ease;
}
.mega-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.mega-trigger:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.mega-trigger.is-active {
  background: var(--ink);
  color: #fff;
}
.nav-mega.is-open .mega-trigger {
  background: var(--ink);
  color: #fff;
}
.nav-mega.is-open .mega-trigger svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  left: 0;
  right: 0;
  z-index: 210;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}
.nav-mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-panel {
  width: min(1120px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 0.95fr 1.25fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.mega-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 16px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
}
.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: none;
  border-radius: var(--radius-s);
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink-soft);
  transition: background 0.16s ease, color 0.16s ease;
}
.mega-cat svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.mega-cat:hover {
  background: #fff;
  color: var(--ink);
}
.mega-cat.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-s);
}
.mega-cat.is-active svg {
  opacity: 1;
  transform: translateX(2px);
}
.mega-feature {
  padding: 28px;
  border-right: 1px solid var(--border);
}
.mega-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.mega-feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.mega-feature p {
  font-size: 14.5px;
  color: var(--slate);
  margin-bottom: 18px;
}
.mega-feature .btn {
  padding: 11px 22px;
  font-size: 14px;
}
.mega-links {
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 4px;
}
.main-nav a.mega-link {
  padding: 13px 14px;
  border-radius: var(--radius-s);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}
.main-nav a.mega-link:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.mega-link {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  border-radius: var(--radius-s);
  color: var(--ink);
  transition: background 0.16s ease;
}
.mega-link:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.mega-link img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.mega-link__name {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
}
.mega-link__name em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}
.mega-link__desc {
  font-size: 13px;
  color: var(--slate);
  margin-top: 3px;
  line-height: 1.5;
}
.mega-link > svg {
  width: 16px;
  height: 16px;
  color: var(--slate-light);
  transition: transform 0.16s ease, color 0.16s ease;
}
.mega-link:hover > svg {
  transform: translateX(3px);
  color: var(--blue);
}
.mega-all {
  width: min(1120px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  font-weight: 650;
  font-size: 14.5px;
  box-shadow: var(--shadow-l);
  transition: background 0.16s ease;
}
.main-nav a.mega-all,
.main-nav a.mega-all:not(.btn) {
  padding: 14px;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  font-size: 14.5px;
}
.main-nav a.mega-all:hover,
.main-nav a.mega-all:not(.btn):hover {
  background: var(--blue);
  color: #fff;
}
.mega-all:hover {
  background: var(--blue);
  color: #fff;
}
.mega-all svg {
  width: 15px;
  height: 15px;
}
/* Content switching animation */
.mega-feature,
.mega-links {
  transition: opacity 0.18s ease;
}
.mega.is-switching .mega-feature,
.mega.is-switching .mega-links {
  opacity: 0;
}

/* ---------- Services hero carousel ---------- */
.svc-hero {
  position: relative;
  margin-top: var(--header-h);
  height: clamp(480px, 68vh, 660px);
  overflow: hidden;
  background: var(--bg-navy);
}
.svc-hero__track {
  position: absolute;
  inset: 0;
}
.svc-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.svc-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.svc-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.svc-hero__slide.is-active img {
  transform: scale(1);
}
.svc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    78deg,
    rgba(10, 20, 38, 0.88) 8%,
    rgba(10, 20, 38, 0.55) 46%,
    rgba(10, 20, 38, 0.12) 78%
  );
}
.svc-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}
.svc-hero__content .kicker {
  color: var(--green-bright);
}
.svc-hero__content h1,
.svc-hero__content h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 15ch;
  margin-bottom: 30px;
  color: #fff;
}
.svc-hero__content .btn--light {
  color: var(--ink);
}
.svc-hero__content .btn--light:hover {
  color: var(--blue);
}
.svc-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.svc-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.5);
}
.svc-hero__arrow svg {
  width: 22px;
  height: 22px;
}
.svc-hero__arrow--prev {
  left: 26px;
}
.svc-hero__arrow--next {
  right: 26px;
}
.svc-hero__dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 9px;
}
.svc-hero__dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, width 0.2s ease;
}
.svc-hero__dot.is-active {
  background: #fff;
  width: 48px;
}

/* ---------- Service index ---------- */
.svc-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: svc;
}
.svc-index__item {
  display: grid;
  grid-template-columns: 84px 1fr 46px;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}
.svc-index__item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-m);
  transform: translateX(4px);
  color: var(--ink);
}
.svc-index__num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--border-strong);
  transition: color 0.18s ease;
}
.svc-index__item:hover .svc-index__num {
  color: var(--blue);
}
.svc-index__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.svc-index__body strong {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.svc-index__body span {
  font-size: 14.5px;
  color: var(--slate);
}
.svc-index__go {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}
.svc-index__item:hover .svc-index__go {
  background: var(--blue);
  color: #fff;
}
.svc-index__go svg {
  width: 18px;
  height: 18px;
}

/* ---------- Service section headers ---------- */
.svc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 30px;
}
.svc-head__num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: var(--radius-m);
  padding: 18px 20px;
}
.svc-head .kicker {
  margin-bottom: 8px;
}
.svc-head .section-title {
  margin-bottom: 0;
  max-width: 22ch;
}
.svc-sub {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 56px 0 26px;
}

/* ---------- Capability grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cap-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.cap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.cap h4 {
  font-size: 15.5px;
  margin-bottom: 7px;
}
.cap p {
  font-size: 13.8px;
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Generic carousel (DSS + portfolio) ---------- */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  outline-offset: 4px;
}
.carousel-card {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.carousel-card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-alt);
}
.carousel-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.carousel-card__cat {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.carousel-card__body h4 {
  font-size: 18px;
  margin: 0;
}
.carousel-card__body p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  flex: 1;
}
.carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
  margin-top: 6px;
}
.carousel-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.16s ease;
}
.carousel-cta:hover {
  color: var(--blue);
}
.carousel-cta:hover svg {
  transform: translateX(3px);
}
.carousel-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.carousel-nav button {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.16s ease;
}
.carousel-nav button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.carousel-nav button svg {
  width: 19px;
  height: 19px;
}

/* ---------- Demo badge / notes ---------- */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
  background: #eefbe4;
  border: 1px solid #cdeeb4;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.demo-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(56, 198, 0, 0.18);
}
.demo-note {
  font-size: 13.5px;
  color: var(--slate-light);
  margin: 16px 0 0;
}

/* ---------- Gamification demo ---------- */
.gamify {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 34px 34px 38px;
}
.gamify__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.gamify__bar .svc-sub {
  margin: 0;
}
.gamify__note {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  max-width: 62ch;
}
.gamify__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.gamify__depts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gamify__dept {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}
.gamify__dept:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.gamify__dept.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.gamify__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--slate);
  transition: all 0.16s ease;
}
.gamify__reset:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.gamify__reset svg {
  width: 15px;
  height: 15px;
}
.gamify__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr 1fr;
  gap: 18px;
}
.gamify__panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
}
.gamify__panel h4 {
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gamify__panel h4 .lvl {
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
/* scorecard */
.gamify__you .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.gamify__you .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex: none;
}
.gamify__you .who strong {
  display: block;
  font-size: 16.5px;
}
.gamify__you .who span {
  font-size: 13px;
  color: var(--slate);
}
.gamify__you .points {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.gamify__you .points small {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0;
}
.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 10px 0 6px;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.5s ease;
}
.progress--blue i {
  background: var(--blue);
}
.gamify__you .goal-label {
  font-size: 12.5px;
  color: var(--slate);
  margin-bottom: 18px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--slate-light);
  transition: all 0.2s ease;
}
.badge svg {
  width: 13px;
  height: 13px;
}
.badge.is-earned {
  background: #eefbe4;
  border-color: #cdeeb4;
  color: var(--green-ink);
}
.badge.is-earned svg {
  color: var(--green-ink);
}
.badge.is-new {
  animation: badge-pop 0.45s ease;
}
@keyframes badge-pop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
/* challenges */
.challenge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
.challenge__info {
  flex: 1;
  min-width: 0;
}
.challenge__info strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.challenge__info span {
  font-size: 12.5px;
  color: var(--green-ink);
  font-weight: 700;
}
.challenge__btn {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  font-size: 13px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.challenge__btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.challenge.is-done {
  border-color: #cdeeb4;
  background: #f6fdef;
}
.challenge.is-done .challenge__info strong {
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-color: rgba(43, 158, 0, 0.5);
}
.challenge.is-done .challenge__btn {
  background: var(--green);
  pointer-events: none;
}
/* leaderboard */
.board-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  transition: background 0.25s ease;
}
.board-row + .board-row {
  margin-top: 4px;
}
.board-row.is-you {
  background: var(--blue-tint);
  border: 1px solid rgba(1, 105, 199, 0.25);
}
.board-row .rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--border);
  color: var(--slate);
}
.board-row:nth-child(1) .rank {
  background: var(--green);
  color: #fff;
}
.board-row:nth-child(2) .rank {
  background: var(--blue);
  color: #fff;
}
.board-row:nth-child(3) .rank {
  background: var(--ink);
  color: #fff;
}
.board-row .who strong {
  display: block;
  font-size: 14px;
}
.board-row .who span {
  font-size: 12px;
  color: var(--slate);
}
.board-row .pts {
  font-weight: 750;
  font-size: 14px;
  color: var(--ink);
}
.board-row.bump {
  animation: row-bump 0.5s ease;
}
@keyframes row-bump {
  0% {
    background: #eefbe4;
  }
  100% {
    background: transparent;
  }
}
.board-row.is-you.bump {
  animation: none;
}
.gamify__board .dept-goal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.gamify__board .dept-goal strong {
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.gamify__toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 400;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-l);
  max-width: 90vw;
  text-align: center;
}
.gamify__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.gamify__toast .demo-inline {
  color: var(--green-bright);
  font-weight: 750;
}

/* ---------- ERP modules ---------- */
.erp-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.erp-module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.erp-module:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.erp-module h4 {
  font-size: 16.5px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-tint);
}
.erp-module ul {
  display: grid;
  gap: 9px;
}
.erp-module li {
  font-size: 13.8px;
  color: var(--slate);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.erp-module li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.erp-module li strong {
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- AI-ready block ---------- */
.ai-ready {
  margin-top: 56px;
  background: radial-gradient(
      600px 260px at 92% 0%,
      rgba(91, 224, 46, 0.1),
      transparent 60%
    ),
    var(--bg-navy);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 48px 44px;
}
.ai-ready h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  max-width: 26ch;
  margin-bottom: 14px;
}
.ai-ready > p {
  color: #b9c0d4;
  max-width: 78ch;
  font-size: 15px;
  margin-bottom: 28px;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ai-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-s);
  padding: 18px;
}
.ai-item h5 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 7px;
  line-height: 1.4;
}
.ai-item p {
  color: #9aa5bd;
  font-size: 13px;
  margin: 0;
  line-height: 1.55;
}
.ai-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-soft);
  background: rgba(46, 142, 224, 0.16);
  border: 1px solid rgba(46, 142, 224, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.ai-tag--now {
  color: var(--green-bright);
  background: rgba(91, 224, 46, 0.12);
  border-color: rgba(91, 224, 46, 0.35);
}

/* ---------- ERP dashboard demo ---------- */
.erp-dash {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px 30px 24px;
}
.erp-dash__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.erp-dash__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.erp-dash__tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}
.erp-dash__tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.erp-dash__tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.erp-dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.erp-kpi {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 16px 18px;
}
.erp-kpi span {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.erp-kpi strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.erp-kpi em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.erp-kpi em.up {
  color: var(--green-ink);
}
.erp-kpi em.down {
  color: #c81e3a;
}
.erp-dash__lower {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.erp-chart,
.erp-feed {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 20px;
}
.erp-chart h5,
.erp-feed h5 {
  font-size: 13.5px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.erp-chart .bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
}
.erp-chart .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.erp-chart .bar i {
  display: block;
  width: 100%;
  max-width: 44px;
  border-radius: 6px 6px 3px 3px;
  background: var(--blue);
  transition: height 0.5s ease;
}
.erp-chart .bar.is-accent i {
  background: var(--green);
}
.erp-chart .bar span {
  font-size: 11px;
  color: var(--slate-light);
  font-weight: 600;
}
.erp-feed ul {
  display: grid;
  gap: 10px;
}
.erp-feed li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.erp-feed li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 6px;
}
.erp-feed li strong {
  color: var(--ink);
}

/* ---------- Methodology timeline ---------- */
.method {
  position: relative;
}
.method-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.method-stage {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 0;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.method-stage .dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2.5px solid var(--border-strong);
  font-weight: 800;
  font-size: 14px;
  color: var(--slate);
  transition: all 0.2s ease;
}
.method-stage .name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate);
  transition: color 0.18s ease;
}
.method-stage:hover .name {
  color: var(--ink);
}
.method-stage.is-active .dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(1, 105, 199, 0.13);
}
.method-stage.is-active .name {
  color: var(--blue);
}
.method-stage:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
.method-line {
  position: absolute;
  top: 33px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-strong);
}
.method-panel {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 34px 36px;
  transition: opacity 0.2s ease;
}
.method-panel.is-switching {
  opacity: 0;
}
.method-panel h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.method-panel h3 .stage-tag {
  color: var(--blue);
  margin-right: 10px;
}
.method-panel p {
  color: var(--slate);
  max-width: 78ch;
  margin: 0 0 16px;
}
.method-panel .method-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Industries grid ---------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ind-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.ind-card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.ind-card__body {
  padding: 20px;
}
.ind-card__body h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.ind-card__body p {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.55;
}
.ind-card--icon {
  padding: 20px;
}
.ind-card--icon .ind-card__body {
  padding: 0;
}
.ind-card--icon .icon-tile {
  margin-bottom: 16px;
}

/* ---------- Challenges selector ---------- */
.challenges {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}
.challenges__list {
  display: grid;
  gap: 8px;
}
.challenge-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: left;
  transition: all 0.16s ease;
}
.challenge-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--slate-light);
  transition: transform 0.16s ease, color 0.16s ease;
}
.challenge-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.challenge-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.challenge-btn.is-active svg {
  color: var(--green-bright);
  transform: translateX(3px);
}
.challenges__panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  transition: opacity 0.18s ease;
}
.challenges__panel.is-switching {
  opacity: 0;
}
.challenges__panel .svc-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.challenges__panel h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.challenges__panel p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  transition: color 0.16s ease;
}
.faq-q:hover {
  color: var(--blue);
}
.faq-q svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--slate-light);
  transition: transform 0.22s ease, color 0.16s ease;
}
.faq-item.is-open .faq-q {
  color: var(--blue);
}
.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
  color: var(--blue);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--slate);
  font-size: 15px;
  max-width: 72ch;
}

/* ---------- Services responsive ---------- */
@media (max-width: 1024px) {
  .cap-grid,
  .cap-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .erp-modules {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gamify__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gamify__board {
    grid-column: 1 / -1;
  }
  .erp-dash__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .erp-dash__lower {
    grid-template-columns: 1fr;
  }
  .mega-panel {
    grid-template-columns: 200px 1fr 1.2fr;
  }
}

@media (max-width: 760px) {
  /* mega-menu becomes an inline accordion inside the mobile drawer */
  .nav-mega {
    display: flex;
    flex-direction: column;
  }
  .mega-trigger {
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 16.5px;
    border-radius: 10px;
  }
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }
  .nav-mega.is-open .mega {
    display: block;
  }
  .mega-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-alt);
    margin-top: 6px;
    border-radius: var(--radius-s);
    overflow: hidden;
  }
  .mega-cats {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .mega-cat {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 13.5px;
    background: #fff;
    border: 1px solid var(--border);
  }
  .mega-cat svg {
    display: none;
  }
  .mega-cat.is-active {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
    border-color: var(--ink);
  }
  .mega-feature {
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .mega-feature img {
    aspect-ratio: 16 / 8;
    margin-bottom: 12px;
  }
  .mega-feature h3 {
    font-size: 17px;
  }
  .mega-links {
    padding: 10px;
  }
  .main-nav a.mega-link {
    display: grid;
    grid-template-columns: 60px 1fr;
    padding: 11px 12px;
    font-size: 14px;
    border-radius: var(--radius-s);
  }
  .mega-link > svg {
    display: none;
  }
  .mega-link img {
    width: 60px;
    height: 44px;
  }
  .main-nav a.mega-all {
    width: 100%;
    border-radius: 0 0 var(--radius-s) var(--radius-s);
    margin-top: 0;
    padding: 14px;
    font-size: 14.5px;
  }

  .svc-hero {
    height: 74vh;
    min-height: 480px;
  }
  .svc-hero__content h1,
  .svc-hero__content h2 {
    font-size: clamp(1.7rem, 7.6vw, 2.3rem);
  }
  .svc-hero__arrow {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 64px;
    transform: none;
  }
  .svc-hero__arrow--prev {
    left: auto;
    right: 70px;
  }
  .svc-hero__arrow--next {
    right: 16px;
  }
  .svc-hero__dot {
    width: 24px;
  }
  .svc-hero__dot.is-active {
    width: 36px;
  }

  .svc-index__item {
    grid-template-columns: 1fr 40px;
    padding: 18px 20px;
  }
  .svc-index__num {
    display: none;
  }
  .svc-index__go {
    width: 40px;
    height: 40px;
  }

  .svc-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .svc-head__num {
    display: inline-block;
    font-size: 30px;
    padding: 10px 16px;
  }

  .cap-grid,
  .cap-grid--3 {
    grid-template-columns: 1fr;
  }
  .erp-modules {
    grid-template-columns: 1fr;
  }
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-ready {
    padding: 34px 24px;
  }
  .ind-grid {
    grid-template-columns: 1fr;
  }
  .gamify {
    padding: 22px 18px 26px;
  }
  .gamify__grid {
    grid-template-columns: 1fr;
  }
  .erp-dash {
    padding: 20px 16px;
  }
  .erp-dash__kpis {
    grid-template-columns: 1fr 1fr;
  }
  .challenges {
    grid-template-columns: 1fr;
  }
  .challenges__panel {
    position: static;
    padding: 24px 20px;
  }

  /* methodology becomes vertical */
  .method-track {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .method-stage {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 8px 4px;
    text-align: left;
  }
  .method-stage .dot {
    width: 40px;
    height: 40px;
    flex: none;
  }
  .method-line {
    display: none;
  }
  .method-panel {
    margin-top: 18px;
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Visual upgrade — genuine brand assets, banner heroes, premium surfaces
   ========================================================================== */

:root {
  --cyan: #45b6f0;
  --navy-deep: #0a1424;
  --showcase: linear-gradient(160deg, #f7fafd 0%, #e9f2fa 100%);
}

/* ---------- Header over dark heroes ---------- */
@media (min-width: 761px) {
  .site-header--ondark:not(.is-scrolled) .main-nav a:not(.btn),
  .site-header--ondark:not(.is-scrolled) .mega-trigger {
    color: rgba(255, 255, 255, 0.88);
  }
  .site-header--ondark:not(.is-scrolled) .main-nav a:not(.btn):hover,
  .site-header--ondark:not(.is-scrolled) .mega-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .site-header--ondark:not(.is-scrolled) .main-nav a.is-active:not(.btn),
  .site-header--ondark:not(.is-scrolled) .mega-trigger.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .site-header--ondark:not(.is-scrolled) .brand img {
    /* background: #fff; */
    padding: 6px 11px;
    border-radius: 11px;
    box-sizing: content-box;
  }
}
.site-header--ondark:not(.is-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.site-header--ondark:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

/* ---------- Banner heroes ---------- */
.hero--banner {
  min-height: clamp(620px, 86vh, 780px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 84px;
  background: var(--navy-deep);
  border-bottom: none;
}
.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg {
  object-position: 68% 42%;
}
.hero__overlay,
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      640px 320px at 82% 18%,
      rgba(69, 182, 240, 0.16),
      transparent 62%
    ),
    linear-gradient(
      84deg,
      rgba(7, 14, 28, 0.96) 16%,
      rgba(7, 14, 28, 0.82) 44%,
      rgba(7, 14, 28, 0.45) 72%,
      rgba(7, 14, 28, 0.6) 100%
    );
}
.hero--banner .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__content {
  max-width: 740px;
  color: #fff;
}
.hero--banner .kicker {
  color: var(--green-bright);
}
.hero--banner h1 {
  color: #fff;
}
.hero--banner h1 .accent {
  color: var(--cyan);
}
.hero--banner .hero-lead {
  color: #c4cddd;
}
.hero--banner .hero-lead strong {
  color: #fff;
}
.hero--banner .hero-rotator {
  color: #a9b4cb;
}
.hero--banner .hero-rotator .dot {
  color: var(--green-bright);
}
.hero--banner .hero-badges span {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e7ecf5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-hero--banner {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 84px;
  background: var(--navy-deep);
  border-bottom: none;
  overflow: hidden;
  color: #fff;
}
.page-hero--banner .container {
  position: relative;
  z-index: 2;
}
.page-hero--banner .kicker {
  color: var(--green-bright);
}
.page-hero--banner h1 {
  color: #fff;
}
.page-hero--banner .section-lead {
  color: #c4cddd;
}

/* ---------- Kicker editorial dash ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.75;
  flex: none;
}

/* ---------- Buttons — refined depth ---------- */
.btn--primary {
  background: linear-gradient(
    180deg,
    #0f7ad8 0%,
    var(--blue) 55%,
    var(--blue-dark) 100%
  );
  box-shadow: 0 10px 26px rgba(1, 105, 199, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #0a6ec6 0%, var(--blue-dark) 100%);
  box-shadow: 0 14px 32px rgba(1, 105, 199, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ---------- Cards — hover accent line ---------- */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover::before {
  opacity: 1;
}
.card--navy::before {
  background: linear-gradient(90deg, var(--green-bright), var(--cyan));
}

/* ---------- Framed genuine imagery ---------- */
.media--framed {
  position: relative;
}
.media--framed::before {
  content: "";
  position: absolute;
  inset: 22px -16px -16px 22px;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--blue-tint), rgba(56, 198, 0, 0.12));
  z-index: 0;
}
.media--framed img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-l);
}
.media--framed img[src$=".png"] {
  background: #fff;
}

/* ---------- Logo walls (genuine stack) ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.logo-wall--compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.logo-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.logo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.logo-item img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ---------- Inline logo chips (service cards) ---------- */
.logo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 6px 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.logo-chip:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-s);
}
.logo-chip img {
  max-height: 21px;
  max-width: 78px;
  width: auto;
  object-fit: contain;
}

/* ---------- Client badges with genuine logos ---------- */
.client-badge--logo {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
}
.client-badge--logo img {
  max-height: 30px;
  max-width: 132px;
  width: auto;
  object-fit: contain;
}

/* ---------- Project showcase thumbs (device mockups) ---------- */
.project-card .thumb--contain {
  background: var(--showcase);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 26px;
}
.project-card .thumb--contain img {
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(14, 26, 46, 0.16));
}
.carousel-card__img--contain {
  object-fit: contain;
  background: var(--showcase);
  padding: 22px;
}

/* ---------- Project detail shot ---------- */
.project-hero .shot--contain {
  background: var(--showcase);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.project-hero .shot--contain .shot__logo {
  align-self: flex-start;
  max-height: 40px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
}
.project-hero .shot--contain .shot__img {
  object-fit: contain;
  max-height: 400px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 20px 34px rgba(14, 26, 46, 0.18));
}

/* ---------- Store badges ---------- */
.store-badge {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(14, 26, 46, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-badge img {
  height: 46px;
  width: auto;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

/* ---------- Stats — accent top ---------- */
.stat {
  border-top: 3px solid var(--blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.stat:nth-child(2) {
  border-top-color: var(--green);
}
.stat:nth-child(3) {
  border-top-color: var(--cyan);
}

/* ---------- Testimonials — softer premium card ---------- */
.testimonial-card {
  border-radius: 20px;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

/* ---------- Navy sections — ambient glow ---------- */
.section--navy {
  background: radial-gradient(
      700px 340px at 90% 0%,
      rgba(69, 182, 240, 0.1),
      transparent 60%
    ),
    radial-gradient(
      560px 300px at 4% 100%,
      rgba(56, 198, 0, 0.07),
      transparent 60%
    ),
    var(--bg-navy);
}

/* ---------- CTA band — genuine banner texture ---------- */
.cta-band {
  background: linear-gradient(
      94deg,
      rgba(9, 17, 33, 0.96) 30%,
      rgba(9, 17, 33, 0.82) 62%,
      rgba(9, 17, 33, 0.68) 100%
    ),
    url("../assets/images/brand/banner-global.jpg") center 38% / cover no-repeat,
    var(--bg-navy);
  box-shadow: var(--shadow-l);
}
.cta-band .kicker {
  color: var(--green-bright);
}

/* ---------- Footer — brand gradient seam ---------- */
.site-footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--green)) 1;
}

/* ---------- Upgrade responsive ---------- */
@media (max-width: 1024px) {
  .logo-wall {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 760px) {
  .hero--banner {
    min-height: 0;
    padding: calc(var(--header-h) + 48px) 0 64px;
  }
  .page-hero--banner {
    padding: calc(var(--header-h) + 56px) 0 56px;
  }
  .logo-wall,
  .logo-wall--compact {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
  }
  .logo-item {
    height: 80px;
    padding: 12px 14px;
  }
  .logo-item img {
    max-height: 40px;
  }
  .media--framed::before {
    inset: 14px -10px -10px 14px;
  }
  .store-badge img {
    height: 40px;
  }
  .project-hero .shot--contain {
    padding: 22px 18px 20px;
    gap: 16px;
  }
  .project-hero .shot--contain .shot__img {
    max-height: 300px;
  }
}

/* ---------- Mid-width nav tightening ---------- */
.main-nav a:not(.btn) {
  white-space: nowrap;
}
@media (min-width: 761px) and (max-width: 1080px) {
  .main-nav a:not(.btn) {
    padding: 9px 11px;
    font-size: 14px;
  }
  .mega-trigger {
    padding: 9px 11px;
    font-size: 14px;
    white-space: nowrap;
  }
  .header-cta {
    margin-left: 6px;
  }
  .header-cta.btn--small {
    padding: 9px 16px;
  }
  .brand img {
    height: 34px;
  }
}

/* ---------- Logos designed for dark backgrounds ---------- */
.client-badge--dark {
  background: #565656;
  border-color: transparent;
}
.client-badge--dark:hover {
  background: #484848;
  border-color: transparent;
}
.project-hero .shot__logo--dark {
  background: #565656;
  padding: 9px 15px;
  border-radius: 10px;
}

/* ---------- Featured services: card links + equal-height cards ---------- */
.card:has(.card-link) {
  display: flex;
  flex-direction: column;
}
.card:has(.card-link) p {
  flex: 1;
}
.card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.card-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}
.card-link:hover {
  color: var(--blue-dark);
}
.card-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Case Study page ---------- */
.cs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}
.cs-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cs-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.cs-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--showcase);
}
.cs-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.cs-card:hover .cs-card__thumb img {
  transform: scale(1.03);
}
.cs-card__thumb--contain img {
  object-fit: contain;
  padding: 22px;
}
.cs-format {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 26, 46, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cs-format svg {
  width: 13px;
  height: 13px;
}
.cs-card__body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cs-card__body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.cs-card__body > p {
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.cs-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.cs-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-actions .btn {
  padding: 10px 18px;
  font-size: 13.5px;
}
.cs-actions .btn svg {
  width: 15px;
  height: 15px;
}

/* Case study reader (dynamic in-page view) */
.cs-reader {
  display: none;
}
.cs-reader.is-open {
  display: block;
}
.cs-reader__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  margin-bottom: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.cs-reader__bar strong {
  font-size: 15px;
}
.cs-reader__bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-reader__bar-actions .btn {
  padding: 9px 16px;
  font-size: 13px;
}
.cs-reader__bar-actions .btn svg {
  width: 14px;
  height: 14px;
}
.cs-article {
  max-width: 860px;
  margin: 0 auto;
}
.cs-article__head {
  text-align: center;
  margin-bottom: 44px;
}
.cs-article__head .kicker {
  justify-content: center;
}
.cs-article__head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 10px 0 14px;
}
.cs-article__head p {
  color: var(--slate);
  font-size: 16.5px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}
.cs-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.cs-sec {
  margin-bottom: 44px;
}
.cs-sec > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  margin-bottom: 16px;
  color: var(--ink);
}
.cs-sec > h3::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.cs-sec p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.cs-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.cs-sec li {
  position: relative;
  padding: 13px 16px 13px 42px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.6;
}
.cs-sec li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.cs-sec li strong {
  color: var(--ink);
}
.cs-figure {
  margin: 22px 0 6px;
}
.cs-figure img {
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-s);
  display: block;
}
.cs-figure figcaption {
  text-align: center;
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 10px;
}
.cs-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.cs-result {
  padding: 18px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--blue-tint), #f3fbf0);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.cs-note {
  margin-top: 40px;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 640px) {
  .cs-list {
    grid-template-columns: 1fr;
  }
  .cs-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .cs-reader__bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cs-reader__bar-actions {
    justify-content: center;
  }
}
.cs-reader__bar strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.cs-reader__bar strong svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--blue);
}

/* ==========================================================================
   Case Study — premium editorial edition (cs2)
   ========================================================================== */
.cs2-list {
  display: grid;
  gap: 72px;
}

/* ---------- Listing rows ---------- */
.cs2-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  opacity: 0;
  transform: translateY(26px);
  animation: cs2-in 0.7s cubic-bezier(0.22, 0.8, 0.34, 1) forwards;
}
.cs2-row:nth-child(2) {
  animation-delay: 0.12s;
}
.cs2-row:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes cs2-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.cs2-row--flip .cs2-row__visual {
  order: 2;
}
.cs2-row__visual {
  position: relative;
}
.cs2-row__num {
  position: absolute;
  top: -46px;
  left: -14px;
  z-index: 0;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--csa);
  opacity: 0.14;
  user-select: none;
}
.cs2-row--flip .cs2-row__num {
  left: auto;
  right: -14px;
}
.cs2-row__frame {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px -18px rgba(14, 26, 46, 0.28),
    0 0 0 1px rgba(14, 26, 46, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.34, 1), box-shadow 0.45s;
}
.cs2-row__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.cs2-row__frame img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.cs2-row:hover .cs2-row__frame {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -20px rgba(14, 26, 46, 0.34),
    0 0 0 1px rgba(14, 26, 46, 0.06);
}
.cs2-row:hover .cs2-row__frame img {
  transform: scale(1.025);
}
.cs2-row__visual::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  z-index: 0;
  border-radius: 22px;
  border: 2px solid var(--csa);
  opacity: 0.28;
  transition: opacity 0.4s, inset 0.45s;
}
.cs2-row--flip .cs2-row__visual::before {
  inset: 22px 22px -18px -18px;
}
.cs2-row:hover .cs2-row__visual::before {
  opacity: 0.45;
}
.cs2-row__format {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 26, 46, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.cs2-row__format svg {
  width: 13px;
  height: 13px;
}
.cs2-row__body h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.22;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cs2-row__body > p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.cs2-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cs2-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--csa-soft);
  color: var(--csa-deep);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.cs2-tag--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.cs2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs2-actions .btn {
  padding: 11px 19px;
  font-size: 13.5px;
}
.cs2-actions .btn svg {
  width: 15px;
  height: 15px;
}
.cs2-btn-main {
  background: linear-gradient(135deg, var(--csa), var(--csa-deep));
  color: #fff;
  box-shadow: 0 10px 22px -8px var(--csa);
}
.cs2-btn-main:hover {
  filter: brightness(1.07);
  color: #fff;
  transform: translateY(-2px);
}
.cs2-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.cs2-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.cs2-actions--end {
  margin-top: 36px;
  justify-content: flex-end;
}

/* ---------- Reader hero ---------- */
.cs2-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
      900px 420px at 85% -10%,
      color-mix(in srgb, var(--csa) 55%, transparent),
      transparent 65%
    ),
    linear-gradient(150deg, var(--csa-ink), var(--csa-deep) 68%, var(--csa));
  padding: 84px 0 96px;
}
.cs2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 400px at 80% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    720px 400px at 80% 0%,
    #000 0%,
    transparent 75%
  );
}
.cs2-hero .container {
  position: relative;
  z-index: 1;
  max-width: 980px;
}
.cs2-hero__back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.25s, gap 0.25s;
}
.cs2-hero__back svg {
  width: 15px;
  height: 15px;
}
.cs2-hero__back:hover {
  color: #fff;
  gap: 11px;
}
.cs2-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cs2-hero__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}
.cs2-hero h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  color: #fff;
}
.cs2-hero p {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 0 20px;
}
.cs2-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

/* ---------- Reader layout ---------- */
.cs2-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 24px;
}
.cs2-toc__inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
}
.cs2-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.cs2-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--border);
  border-radius: 0 8px 8px 0;
  color: var(--slate);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.cs2-toc a span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--csa, var(--blue));
}
.cs2-toc a:hover {
  color: var(--ink);
  border-left-color: var(--csa, var(--blue));
  background: var(--bg-alt);
}

/* ---------- Reader sections ---------- */
.cs2-article {
  max-width: 780px;
}
.cs2-sec {
  margin-bottom: 52px;
  scroll-margin-top: 100px;
}
.cs2-sec > h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink);
}
.cs2-sec__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--csa);
  letter-spacing: 0.06em;
}
.cs2-sec > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.cs2-sec p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.78;
  margin-bottom: 12px;
}
.cs2-lead-p::first-letter {
  float: left;
  font-size: 52px;
  line-height: 0.9;
  font-weight: 800;
  padding: 4px 10px 0 0;
  color: var(--csa);
}
.cs2-sec ul {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.cs2-sec li {
  position: relative;
  padding: 13px 16px 13px 42px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.62;
  transition: border-color 0.25s, transform 0.25s;
}
.cs2-sec li:hover {
  border-color: var(--csa);
  transform: translateX(3px);
}
.cs2-sec li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--csa);
}
.cs2-sec li strong {
  color: var(--ink);
}

/* results */
.cs2-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.cs2-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--csa-soft);
  border: 1px solid color-mix(in srgb, var(--csa) 25%, transparent);
  font-size: 14px;
  line-height: 1.55;
  color: var(--csa-ink);
  font-weight: 550;
}
.cs2-result svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--csa);
}

/* compare before/after */
.cs2-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.cs2-compare__col {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.cs2-compare__col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cs2-compare__col h4 svg {
  width: 15px;
  height: 15px;
}
.cs2-compare__col p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.cs2-compare__col--before {
  background: #f6f7f9;
}
.cs2-compare__col--before h4 {
  color: #94a3b8;
}
.cs2-compare__col--after {
  background: var(--csa-soft);
  border-color: color-mix(in srgb, var(--csa) 30%, transparent);
}
.cs2-compare__col--after h4 {
  color: var(--csa-deep);
}
.cs2-compare__col--after p {
  color: var(--csa-ink);
}

/* figures + gallery */
.cs2-figure {
  margin: 24px 0 8px;
}
.cs2-figure img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-m);
  display: block;
}
.cs2-figure figcaption,
.cs2-gallery figcaption {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 10px;
  text-align: center;
}
.cs2-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
.cs2-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}
.cs2-gallery img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-s);
  display: block;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.cs2-gallery figure:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-m);
}

/* claim lifecycle diagram */
.cs2-flow {
  margin: 22px 0 6px;
  padding: 28px 22px;
  border-radius: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.cs2-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.cs2-flow__step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.cs2-flow__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--csa), var(--csa-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 16px -6px var(--csa);
}
.cs2-flow__step strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.cs2-flow__step > span:last-child:not(.cs2-flow__link) {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.45;
  display: block;
}
.cs2-flow__link {
  position: absolute;
  top: 20px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--csa) 0,
    var(--csa) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.5;
}
.cs2-flow__caption {
  text-align: center;
  font-size: 12.5px;
  color: var(--slate);
  margin: 18px 0 0;
}

/* note */
.cs2-note {
  margin-top: 44px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cs2-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cs2-toc {
    display: none;
  }
  .cs2-article {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .cs2-row,
  .cs2-row--flip {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cs2-row--flip .cs2-row__visual {
    order: 0;
  }
  .cs2-row__num {
    font-size: 84px;
    top: -34px;
  }
  .cs2-list {
    gap: 60px;
  }
  .cs2-compare {
    grid-template-columns: 1fr;
  }
  .cs2-gallery {
    grid-template-columns: 1fr;
  }
  .cs2-flow__steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cs2-flow__step {
    display: grid;
    grid-template-columns: 40px 1fr;
    text-align: left;
    align-items: center;
    column-gap: 14px;
  }
  .cs2-flow__dot {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .cs2-flow .cs2-flow__step .cs2-flow__link {
    display: none;
  }
}
@media (max-width: 640px) {
  .cs2-hero {
    padding: 64px 0 72px;
  }
  .cs2-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .cs2-actions--end {
    justify-content: stretch;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cs2-row {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .cs2-row__frame,
  .cs2-row__frame img,
  .cs2-gallery img,
  .cs2-hero__back,
  .cs2-sec li {
    transition: none;
  }
  .cs2-btn-main:hover {
    transform: none;
  }
}
