/* -------------------------------------------------------
   Clients page
   Behaviour lives in assets/js/clients-x.js.
------------------------------------------------------- */
.clients-x {
  --cx-base: var(--base-color, #dd6531);
  --cx-peach: #f38c4b;
  --cx-ink: var(--dark-gray, #292d36);
  --cx-night: #15171c;
  --cx-paper: #f6f5f2;
  --cx-muted: var(--medium-gray, #808291);
  --cx-line: rgba(41, 45, 54, 0.1);
  --cx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cx-ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.25);
  font-family: var(--alt-font);
  background: var(--cx-paper);
}

.clients-x section {
  padding: 0;
}

.clients-x em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cx-peach), #ffb37d 50%, var(--cx-base));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.4s var(--cx-ease-out), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.cx-btn i {
  font-size: 16px;
  transition: transform 0.4s var(--cx-ease-out);
}

.cx-btn:hover i {
  transform: translate(3px, -3px);
}

.cx-btn-brand {
  color: #fff;
  background: linear-gradient(120deg, var(--cx-base), var(--cx-peach));
  box-shadow: 0 18px 40px -16px rgba(221, 101, 49, 0.8);
}

.cx-btn-brand:hover,
.cx-btn-brand:focus-visible {
  color: #fff;
  box-shadow: 0 24px 50px -14px rgba(221, 101, 49, 0.95);
}

.cx-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cx-btn-ghost:hover,
.cx-btn-ghost:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cx-btn-ghost:hover i {
  transform: translateY(3px);
}

.cx-btn-line {
  color: var(--cx-ink);
  border-color: var(--cx-line);
  background: #fff;
}

.cx-btn-line:hover,
.cx-btn-line:focus-visible {
  color: #fff;
  border-color: var(--cx-ink);
  background: var(--cx-ink);
}

.cx-btn-line:hover i {
  transform: translateX(4px);
}

.cx-btn-light {
  color: var(--cx-ink);
  background: #fff;
}

.cx-btn-light:hover,
.cx-btn-light:focus-visible {
  color: var(--cx-base);
}

.cx-btn-light:hover i {
  transform: translateX(4px);
}

.clients-x a:focus-visible,
.clients-x button:focus-visible,
.cx-search input:focus-visible {
  outline: 2px solid var(--cx-base);
  outline-offset: 3px;
}

/* -------------------------------------------------------
   Hero (dark so the transparent header stays legible)
------------------------------------------------------- */
.cx-hero {
  --mx: 50%;
  --my: 40%;
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  padding: 190px 0 0 !important;
  color: #fff;
  background: var(--cx-night);
}

.cx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: cx-grid 30s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
}

@keyframes cx-grid {
  to { background-position: 72px 72px; }
}

.cx-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.cx-glow-1 {
  left: -15%;
  top: -35%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(221, 101, 49, 0.42), transparent 65%);
  animation: cx-drift 14s ease-in-out infinite;
}

.cx-glow-2 {
  right: -12%;
  top: 10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(91, 63, 217, 0.32), transparent 65%);
  animation: cx-drift 18s ease-in-out infinite reverse;
}

@keyframes cx-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}

/* Cursor-following light */
.cx-spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 60%);
  transition: opacity 0.4s ease;
}

.cx-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 18px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-peach);
}

.cx-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: cx-ping 2.4s ease-out infinite;
}

@keyframes cx-ping {
  0% { box-shadow: 0 0 0 0 rgba(243, 140, 75, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(243, 140, 75, 0); }
}

.cx-title {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(44px, 7.4vw, 112px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.cx-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.cx-lead {
  max-width: 600px;
  margin: 0 0 36px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.cx-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Stats */
.cx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 720px);
  margin: 70px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cx-stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 24px 16px;
}

.cx-stat + .cx-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cx-stat dt {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cx-stat dd {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Marquee */
.cx-marquee {
  display: grid;
  gap: 14px;
  margin-top: 80px;
  padding-bottom: 90px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.cx-marquee-row {
  display: flex;
  width: max-content;
}

.cx-marquee-track {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  animation: cx-scroll 48s linear infinite;
}

.cx-marquee-row.is-reverse .cx-marquee-track {
  animation-direction: reverse;
  animation-duration: 56s;
}

.cx-marquee:hover .cx-marquee-track {
  animation-play-state: paused;
}

@keyframes cx-scroll {
  to { transform: translateX(-100%); }
}

.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cx-chip:hover {
  border-color: var(--c1);
  background: rgba(255, 255, 255, 0.08);
}

.cx-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.cx-chip-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2));
}

/* -------------------------------------------------------
   Shared section heads
------------------------------------------------------- */
.cx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.cx-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-base);
}

.cx-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.cx-head-center .cx-kicker {
  margin-bottom: 0;
}

.cx-h2 {
  margin: 0;
  color: var(--cx-ink);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

/* -------------------------------------------------------
   Client wall
------------------------------------------------------- */
.cx-wall {
  padding: 120px 0 110px !important;
}

.cx-search {
  position: relative;
  display: block;
  width: min(100%, 320px);
  margin: 0;
}

.cx-search i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--cx-muted);
  pointer-events: none;
}

.cx-search input {
  width: 100%;
  height: 54px;
  padding: 0 20px 0 50px;
  border: 1px solid var(--cx-line);
  border-radius: 100px;
  background: #fff;
  font-size: 15px;
  color: var(--cx-ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cx-search input:focus {
  border-color: var(--cx-base);
  box-shadow: 0 0 0 5px rgba(221, 101, 49, 0.12);
}

.cx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.cx-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--cx-line);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--cx-ink);
  transition: transform 0.3s var(--cx-ease-out), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cx-filter:hover {
  border-color: var(--cx-ink);
  transform: translateY(-2px);
}

.cx-filter i {
  font-size: 15px;
}

.cx-filter-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 100px;
  font-size: 12px;
  background: var(--cx-paper);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cx-filter.is-active {
  color: #fff;
  border-color: var(--cx-ink);
  background: var(--cx-ink);
}

.cx-filter.is-active .cx-filter-count {
  color: var(--cx-ink);
  background: #fff;
}

.cx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-item {
  transition: opacity 0.45s ease, transform 0.6s var(--cx-ease-out);
}

.cx-item.is-out {
  opacity: 0;
  transform: scale(0.9) translateY(14px);
}

.cx-item[hidden] {
  display: none;
}

.cx-card {
  --rx: 0deg;
  --ry: 0deg;
  --px: 50%;
  --py: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--cx-line);
  border-radius: 26px;
  background: #fff;
  color: var(--cx-ink);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--cx-ease-out), box-shadow 0.5s ease, border-color 0.4s ease;
}

.cx-card:hover {
  color: var(--cx-ink);
  border-color: transparent;
  box-shadow: 0 40px 70px -40px rgba(21, 23, 28, 0.45);
}

/* Gradient wash that rises on hover */
.cx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.7s var(--cx-ease-out);
}

.cx-card:hover::before {
  opacity: 0.08;
  transform: none;
}

/* Cursor spotlight */
.cx-card-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(320px circle at var(--px) var(--py), color-mix(in srgb, var(--c1) 22%, transparent), transparent 65%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cx-card:hover .cx-card-shine {
  opacity: 1;
}

.cx-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 16px 30px -14px var(--c1);
  transition: transform 0.6s var(--cx-ease-spring), border-radius 0.6s var(--cx-ease-out);
}

.cx-logo:has(img) {
  background: #fff;
  border: 1px solid var(--cx-line);
  box-shadow: none;
}

.cx-card:hover .cx-logo {
  transform: translateY(-4px) rotate(-6deg) scale(1.06);
  border-radius: 50%;
}

.cx-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.cx-mono {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}

.cx-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.cx-card-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cx-card-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cx-muted);
}

.cx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.cx-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c1);
  background: color-mix(in srgb, var(--c1) 10%, transparent);
}

.cx-card-go {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--cx-ink);
  transition: transform 0.4s var(--cx-ease-out), background-color 0.3s ease;
}

.cx-card:hover .cx-card-go {
  background: var(--c1);
  transform: rotate(45deg);
}

/* Empty state */
.cx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  border: 1px dashed var(--cx-line);
  border-radius: 26px;
  text-align: center;
  animation: cx-pop 0.5s var(--cx-ease-spring);
}

.cx-empty[hidden] {
  display: none;
}

.cx-empty p {
  margin: 0;
  font-size: 18px;
  color: var(--cx-ink);
}

.cx-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--cx-base);
  background: rgba(221, 101, 49, 0.1);
}

@keyframes cx-pop {
  from { opacity: 0; transform: scale(0.94); }
}

/* -------------------------------------------------------
   Process
------------------------------------------------------- */
.cx-process {
  padding: 110px 0 !important;
  background: #fff;
}

.cx-steps-wrap {
  position: relative;
  margin-top: 20px;
}

.cx-steps-line {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--cx-line);
}

.cx-steps-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cx-base), var(--cx-peach));
  transform: scaleX(var(--cx-progress, 0));
  transform-origin: left;
  transition: transform 0.2s linear;
}

.cx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cx-step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border: 1px solid var(--cx-line);
  border-radius: 50%;
  font-size: 26px;
  color: var(--cx-ink);
  background: #fff;
  transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, transform 0.6s var(--cx-ease-spring), box-shadow 0.5s ease;
}

.cx-step.is-lit .cx-step-icon {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--cx-base), var(--cx-peach));
  box-shadow: 0 18px 36px -16px rgba(221, 101, 49, 0.9);
  transform: scale(1.06);
}

.cx-step-num {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cx-base);
}

.cx-step-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cx-ink);
}

.cx-step-text {
  max-width: 260px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cx-muted);
}

/* -------------------------------------------------------
   Industries
------------------------------------------------------- */
.cx-sectors {
  padding: 110px 0 !important;
}

.cx-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cx-sector {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  color: var(--cx-ink);
  transition: color 0.4s ease, transform 0.5s var(--cx-ease-out), box-shadow 0.5s ease;
}

.cx-sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.7s var(--cx-ease-out);
}

.cx-sector:hover,
.cx-sector:focus-visible {
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px var(--c1);
}

.cx-sector:hover::before,
.cx-sector:focus-visible::before {
  clip-path: circle(150% at 100% 0%);
}

.cx-sector-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 22px;
  color: var(--c1);
  background: color-mix(in srgb, var(--c1) 10%, transparent);
  transition: color 0.4s ease, background-color 0.4s ease;
}

.cx-sector:hover .cx-sector-icon,
.cx-sector:focus-visible .cx-sector-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.cx-sector-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cx-sector-tag {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.7;
}

.cx-sector-go {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 20px;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.4s ease, transform 0.5s var(--cx-ease-out);
}

.cx-sector:hover .cx-sector-go,
.cx-sector:focus-visible .cx-sector-go {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------
   CTA
------------------------------------------------------- */
.cx-cta {
  padding-bottom: 120px !important;
}

.cx-cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 64px 60px;
  border-radius: 32px;
  color: #fff;
  background: var(--cx-night);
}

.cx-cta-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  top: -120%;
  width: 60%;
  height: 300%;
  background: radial-gradient(circle, rgba(221, 101, 49, 0.45), transparent 60%);
  animation: cx-drift 12s ease-in-out infinite;
}

.cx-cta-rings {
  position: absolute;
  z-index: -1;
  right: 8%;
  top: 50%;
  width: 0;
  height: 0;
}

.cx-cta-rings span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  animation: cx-ring 6s ease-out infinite;
}

.cx-cta-rings span:nth-child(2) { animation-delay: 2s; }
.cx-cta-rings span:nth-child(3) { animation-delay: 4s; }

@keyframes cx-ring {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

.cx-cta-card h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
}

.cx-cta-card p {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
}

/* -------------------------------------------------------
   Page entrance and scroll reveal (only hidden once JS runs)
------------------------------------------------------- */
.cx-js .cx-rise {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 1.1s var(--cx-ease-out);
  transition-delay: calc(var(--cx-d, 0) * 110ms + 100ms);
}

.cx-js .cx-line > .cx-rise {
  display: inline-block;
  opacity: 1;
  transform: translateY(105%);
}

.cx-js .cx-ready .cx-rise,
.cx-js .cx-ready .cx-line > .cx-rise {
  opacity: 1;
  transform: none;
}

.cx-js .cx-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.9s var(--cx-ease-out), color 0.4s ease, box-shadow 0.5s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.cx-js .cx-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cards stagger in when the grid first enters the viewport */
.cx-js .cx-grid:not(.is-visible) .cx-item {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}

.cx-js .cx-grid.is-visible .cx-item:not(.is-out) {
  transition-delay: calc(var(--d, 0) * 60ms);
}

.cx-js .cx-steps-wrap:not(.is-visible) .cx-step {
  opacity: 0;
  transform: translateY(30px);
}

.cx-step {
  transition: opacity 0.7s ease, transform 0.8s var(--cx-ease-out);
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* Hovered sector cards should respond instantly, not wait out the reveal delay */
.cx-js .cx-sector.is-visible:hover,
.cx-js .cx-sector.is-visible:focus-visible {
  transition-delay: 0s;
  transform: translateY(-6px);
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 1199px) {
  .cx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .cx-hero {
    padding-top: 160px !important;
  }

  .cx-grid,
  .cx-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cx-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 50px;
  }

  .cx-steps-line {
    display: none;
  }

  .cx-wall,
  .cx-process,
  .cx-sectors {
    padding: 90px 0 !important;
  }
}

@media (max-width: 767px) {
  .cx-hero {
    padding-top: 130px !important;
  }

  .cx-lead {
    font-size: 16px;
  }

  .cx-actions {
    flex-direction: column;
    width: 100%;
  }

  .cx-actions .cx-btn {
    width: 100%;
  }

  .cx-stats {
    margin-top: 48px;
  }

  .cx-stat {
    padding: 18px 8px;
  }

  .cx-stat dt {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .cx-marquee {
    margin-top: 56px;
    padding-bottom: 70px;
  }

  .cx-chip {
    font-size: 14px;
  }

  .cx-wall,
  .cx-process,
  .cx-sectors {
    padding: 70px 0 !important;
  }

  .cx-search {
    width: 100%;
  }

  /* Pills scroll sideways instead of stacking into a tall block */
  .cx-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -15px;
    padding: 4px 15px 8px;
    scrollbar-width: none;
  }

  .cx-filters::-webkit-scrollbar {
    display: none;
  }

  .cx-filter {
    flex: none;
  }

  .cx-grid {
    gap: 12px;
  }

  .cx-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .cx-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .cx-mono {
    font-size: 19px;
  }

  .cx-card-name {
    font-size: 17px;
  }

  .cx-card-note {
    font-size: 13px;
  }

  .cx-steps {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .cx-sector-grid {
    grid-template-columns: 1fr;
  }

  .cx-cta {
    padding-bottom: 80px !important;
  }

  .cx-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 26px;
    border-radius: 24px;
  }

  .cx-cta-card .cx-btn {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .cx-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-x *,
  .clients-x *::before,
  .clients-x *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
