/* Cloud consulting page: "What We Consult On" index.
   Builds on qa-consulting-services.css and devsecops-services.css. */

/* clip, not hidden, so the sticky stage keeps working */
.ccs-consult { overflow-x: clip; }

/* ── Sticky stage: image with a live counter and progress bar */
.ccs-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(143, 176, 255, 0.14);
}
.ccs-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  /* one image per engagement, stacked; the active one wipes in over the last */
  opacity: 0;
  transform: scale(1.08);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.5s ease 0.15s, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.ccs-stage img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  clip-path: inset(0 0 0 0);
  transition: opacity 0.2s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.ccs-stage__shade, .ccs-stage__hud { z-index: 2; }
.ccs-stage__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 35%, rgba(11, 18, 32, 0.55) 62%, rgba(11, 18, 32, 0.94) 100%);
}
.ccs-stage__hud {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 26px 22px;
}
.ccs-stage__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FB0FF;
}
.ccs-stage__title {
  display: block;
  margin-top: 6px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.ccs-stage__count { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.ccs-stage__num {
  display: inline-block;
  overflow: hidden;
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.ccs-stage__num > span { display: inline-block; }
.ccs-stage__of { font-size: 14px; font-weight: 600; color: #8FA0BD; }
.ccs-stage__bar {
  display: block;
  margin-top: 18px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ccs-stage__bar > span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4361EE, #8FB0FF);
  transform: scaleX(0.111);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Index rows */
.ccs-index__head { grid-template-columns: 64px 1fr; gap: 0 20px; padding-left: 20px; }
.ccs-index { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ccs-index__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 40px;
  align-items: center;
  gap: 0 20px;
  padding: 26px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  isolation: isolate;
}
@media (min-width: 640px) {
  .ccs-index__row { grid-template-columns: 44px 1fr 44px; padding: 30px 20px; }
}
/* fill sweeps in from the left */
.ccs-index__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.2) 0%, rgba(67, 97, 238, 0.06) 60%, rgba(67, 97, 238, 0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
/* accent edge */
.ccs-index__row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #8FB0FF, #4361EE);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.ccs-index__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(143, 176, 255, 0.3);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #8FB0FF;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.ccs-index__title {
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ccs-index__answer {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: #7D8BA6;
  transition: color 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ccs-index__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
@media (min-width: 640px) { .ccs-index__arrow { width: 44px; height: 44px; } }
.ccs-index__arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ccs-index__row.is-active::before { transform: scaleX(1); }
.ccs-index__row.is-active::after { transform: scaleY(1); }
.ccs-index__row.is-active .ccs-index__num { background: #4361EE; border-color: #4361EE; color: #fff; }
.ccs-index__row.is-active .ccs-index__title { color: #fff; transform: translateX(6px); }
.ccs-index__row.is-active .ccs-index__answer { color: #C6D4EC; transform: translateX(6px); }
.ccs-index__row.is-active .ccs-index__arrow { background: #fff; border-color: #fff; color: #0B1220; }
.ccs-index__row.is-active .ccs-index__arrow svg { transform: rotate(0deg); }

/* Without the script every row reads at full strength. */
.ccs-index:not(.is-ready) .ccs-index__title { color: #fff; }
.ccs-index:not(.is-ready) .ccs-index__answer { color: #C6D4EC; }

@media (prefers-reduced-motion: reduce) {
  .ccs-index__row::before, .ccs-index__row::after, .ccs-index__num, .ccs-index__title,
  .ccs-index__answer, .ccs-index__arrow, .ccs-index__arrow svg, .ccs-stage__bar > span, .ccs-stage img { transition: none; }
}

/* ── Cost reviews: stat, right-sizing meter, and the findings ledger */
.ccs-cost { overflow-x: clip; }
.ccs-cost__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(67, 97, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 97, 238, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 75% 20%, #000 10%, transparent 75%);
}
.ccs-cost__stat {
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #2f43b8 0%, #4361EE 45%, #8FB0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ccs-meter-wrap { position: relative; }
.ccs-meter {
  position: relative;
  margin: -56px 20px 0;
  z-index: 2;
  padding: 20px 22px 18px;
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.6), 0 0 0 1px rgba(143, 176, 255, 0.16);
  color: #fff;
}
@media (min-width: 1024px) {
  .ccs-meter { position: absolute; left: -36px; right: auto; bottom: -40px; margin: 0; width: min(380px, 80%); }
}
.ccs-meter__row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; }
.ccs-meter__row + .ccs-meter__row { margin-top: 12px; }
.ccs-meter__label { font-size: 12px; font-weight: 600; color: #C6D4EC; }
.ccs-meter__val { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ccs-meter__track {
  position: relative;
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ccs-meter__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4361EE, #8FB0FF);
  transform-origin: left center;
  transform: scaleX(0.65);
}
.ccs-meter__fill--full { background: rgba(198, 212, 236, 0.45); transform: none; }
/* hatched removable band between "used" and the provisioned edge */
.ccs-meter__cut {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(251, 146, 60, 0.55) 0 4px, rgba(251, 146, 60, 0.15) 4px 8px);
}
.ccs-meter__foot { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #FDBA74; }
.ccs-meter__dot { width: 10px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(-45deg, #FB923C 0 2px, rgba(251, 146, 60, 0.3) 2px 4px); }

.ccs-ledger {
  display: grid;
  gap: 0;
  border-top: 1px solid #E3E7F0;
  margin-top: 24px;
}
@media (min-width: 768px) { .ccs-ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ccs-ledger { grid-template-columns: repeat(3, 1fr); margin-top: 72px; } }
.ccs-ledger__item {
  position: relative;
  padding: 30px 28px 34px;
  border-bottom: 1px solid #E3E7F0;
  background: #fff;
  transition: background-color 0.4s ease;
}
@media (min-width: 768px) {
  .ccs-ledger__item { border-right: 1px solid #E3E7F0; }
  .ccs-ledger__item:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .ccs-ledger__item:nth-child(2n) { border-right: 1px solid #E3E7F0; }
  .ccs-ledger__item:nth-child(3n) { border-right: 0; }
}
.ccs-ledger__item::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.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.ccs-ledger__item:hover { background: #F7F9FF; }
.ccs-ledger__item:hover::before { transform: scaleX(1); }
.ccs-ledger__top { display: flex; align-items: center; justify-content: space-between; }
.ccs-ledger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #EEF2FF;
  color: #4361EE;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ccs-ledger__icon svg { width: 22px; height: 22px; }
.ccs-ledger__item:hover .ccs-ledger__icon { background: #4361EE; color: #fff; transform: rotate(-8deg) scale(1.05); }
.ccs-ledger__num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px #C9D3EE;
  transition: -webkit-text-stroke-color 0.4s ease;
}
.ccs-ledger__item:hover .ccs-ledger__num { -webkit-text-stroke-color: #4361EE; }
.ccs-ledger__text { margin-top: 22px; font-size: 15px; line-height: 1.8; color: #4B5563; }
.ccs-ledger__text strong { color: #111827; }
/* each finding trims its own bar back to what is needed */
.ccs-ledger__trim {
  position: relative;
  display: block;
  margin-top: 22px;
  height: 6px;
  border-radius: 6px;
  background: repeating-linear-gradient(-45deg, rgba(251, 146, 60, 0.45) 0 3px, rgba(251, 146, 60, 0.12) 3px 6px);
  overflow: hidden;
}
.ccs-ledger__trim > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4361EE, #8FB0FF);
  transform-origin: left center;
  transform: scaleX(var(--trim, 0.7));
}

.ccs-cost__note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 56rem;
  padding: 22px 26px;
  border-radius: 20px;
  background: #F7F9FF;
  box-shadow: inset 0 0 0 1px #DCE4FF;
}
.ccs-cost__note-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #4361EE;
  color: #fff;
}
.ccs-cost__note-icon svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .ccs-ledger__item, .ccs-ledger__item::before, .ccs-ledger__icon, .ccs-ledger__num { transition: none; }
}
