/* DevSecOps page: a motion layer on top of qa-consulting-services.css.
   Colors stay on the shared navy / #4361EE / #8FB0FF palette. */

/* ---------- scroll progress ---------- */
.dso-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 300;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #4361EE, #8FB0FF);
  pointer-events: none;
}

/* ---------- blueprint grid on dark sections ---------- */
.dso-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 176, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 75%);
}

/* ---------- hero: floating pipeline checks ---------- */
.dso-hero-chips {
  position: absolute;
  right: 3%;
  top: 50%;
  width: min(40vw, 560px);
  height: 440px;
  transform: translateY(-38%);
  pointer-events: none;
}
.dso-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid rgba(143, 176, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}
.dso-chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.dso-chip i svg { width: 15px; height: 15px; }
.dso-chip small { display: block; font-size: 11px; font-weight: 500; color: #8FA0BD; }
.dso-chip--blue i { background: #4361EE; box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.25); }

/* ---------- control-name marquee ---------- */
.dso-marquee {
  overflow: hidden;
  padding: 18px 0;
  background: #050B1F;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dso-marquee__track { display: flex; width: max-content; align-items: center; white-space: nowrap; }
.dso-marquee__item {
  padding: 0 20px;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
/* Alternate items use the soft brand blue as a solid fill; a thin outline was too faint to read. */
.dso-marquee__item--outline { color: #8FB0FF; }
.dso-marquee__dot { color: #4361EE; font-size: clamp(12px, 1.2vw, 16px); }

/* ---------- heading word masks ---------- */
.dso-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.dso-w__in { display: inline-block; will-change: transform; }

/* ---------- cursor spotlight on cards ---------- */
.dso-spot { position: relative; isolation: isolate; }
.dso-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(67, 97, 238, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.dso-spot:hover::before { opacity: 1; }

/* ---------- controls: the row at the reading line lights up ---------- */
.dso-controls > li { position: relative; }
.dso-controls > li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, #4361EE, #8FB0FF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dso-controls > li.is-active::before { transform: scaleX(1); }
.dso-controls .qcs-rows__num {
  align-self: flex-start;
  padding: 4px 0 3px;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.dso-controls > li.is-active .qcs-rows__num { background: #4361EE; color: #fff; }

/* ---------- supply chain cards tilt ---------- */
.dso-supply { perspective: 1200px; }
.dso-supply > li { transform-style: preserve-3d; will-change: transform; }

/* ---------- rollout stages switch on ---------- */
.qcs-week__dot { transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.qcs-weeks li.is-on .qcs-week__dot { background: #4361EE; box-shadow: 0 0 0 7px rgba(67, 97, 238, 0.22); transform: scale(1.06); }

/* ---------- FAQ answers animate open ---------- */
.qcs-faq details > p { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .dso-progress, .dso-hero-chips { display: none; }
  .dso-controls > li::before, .dso-controls .qcs-rows__num, .qcs-week__dot, .dso-spot::before { transition: none; }
}
