.progress {
  padding-block: var(--section-pad-y);
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Step rail ------------------------------------------------------------ */
.progress__steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) 0;
  padding: 0;
  /* Break out of the 1280px container so all seven steps sit on one line on
     wide screens, then wrap horizontally onto multiple rows as the viewport
     narrows. Centered via a margin calc (not transform) so it doesn't collide
     with the [data-reveal] entrance animation, which animates transform. */
  width: min(1600px, calc(100vw - 80px));
  margin: var(--space-6) 0 0;
  margin-left: calc(50% - min(1600px, calc(100vw - 80px)) / 2);
}

/* Step = card + trailing arrow connector --------------------------------- */
.progress__step {
  display: inline-flex;
  align-items: center;
}

/* Arrow connector (line with the point at the end) — drawn after every
   step except the last. The line is a gradient; the arrowhead is an SVG
   pinned to the right end via background-position. */
.progress__step:not(:last-child)::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(24px, 3vw, 56px);
  height: 12px;
  filter: drop-shadow(0 0 5px rgba(152, 67, 255, 0.45));
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 1 L7 6 L0 11 Z' fill='%239843ff'/%3E%3C/svg%3E")
      no-repeat right center / 8px 12px,
    linear-gradient(90deg, rgba(152, 67, 255, 0.25), var(--color-brand-glow))
      no-repeat left center / calc(100% - 5px) 2px;
}

/* Glow card -------------------------------------------------------------- */
.progress__card {
  --radius: 16px;
  --inner-radius: 12px;
  --glow-left: 26%;
  --glow-width: 38%;
  --glow-height: 12px;
  --glow-top: 0;
  --glow-bottom: auto;
  --glow-shift-y: 45%;

  position: relative;
  display: inline-flex;
  padding: 6px;
  border-radius: var(--radius);
  background:
    radial-gradient(180px 110px at 34% 42%, rgba(39, 55, 120, 0.26), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #070b18 0%, #050914 100%);
  overflow: visible;
}

.progress__card::before {
  content: "";
  position: absolute;
  left: var(--glow-left);
  top: var(--glow-top);
  bottom: var(--glow-bottom);
  transform: translateY(var(--glow-shift-y));
  width: var(--glow-width);
  height: var(--glow-height);
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 12%,
      rgba(225, 220, 255, 0.72) 28%,
      rgba(150, 140, 255, 0.35) 52%,
      rgba(90, 80, 240, 0) 78%),
    linear-gradient(90deg,
      rgba(120, 110, 255, 0) 0%,
      rgba(170, 160, 255, 0.28) 35%,
      rgba(255, 255, 255, 0.75) 50%,
      rgba(170, 160, 255, 0.28) 65%,
      rgba(120, 110, 255, 0) 100%);
  filter: blur(1.6px);
}

/* Alternate the glow hotspot to the bottom-right on every other card */
.progress__step:nth-child(even) .progress__card {
  --glow-left: 62%;
  --glow-width: 30%;
  --glow-top: auto;
  --glow-bottom: 0;
  --glow-shift-y: -45%;
}

.progress__card-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 0.95em;
  border-radius: var(--inner-radius);
  background: linear-gradient(180deg, rgba(20, 26, 50, 0.72), rgba(10, 14, 30, 0.82));
  box-shadow:
    0 0 10px rgba(75, 73, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #f4f6fb;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.progress__card-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 2px 0 rgba(112, 110, 255, 0.75),
    inset -2px 0 0 rgba(98, 96, 255, 0.55),
    inset 2px 0 0 rgba(90, 88, 255, 0.25),
    inset 0 -2px 0 rgba(90, 88, 255, 0.25);
}

/* Isometric layer tower ------------------------------------------------ */
.progress__stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: var(--space-7) auto 0;
  /* Bounding box of the four layers in the source design (1153 × 1545). */
  aspect-ratio: 1153 / 1545;
}

.progress__layer {
  position: absolute;
  display: block;
  height: auto;
  /* Explode hook: toggle a state class on .progress__stage and set a
     translate on each layer modifier below to separate the tower. */
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(0);
}

.progress__layer--execution {
  left: 2.18%;
  top: 0;
  width: 95.76%;
  z-index: 4;
}

.progress__layer--intelligence {
  left: 2.43%;
  top: 18.49%;
  width: 95.78%;
  z-index: 3;
}

.progress__layer--governance {
  left: 0;
  top: 36.48%;
  width: 95.78%;
  z-index: 2;
}

.progress__layer--foundation {
  left: 0.70%;
  top: 54.41%;
  width: 99.30%;
  z-index: 1;
}

@media (max-width: 560px) {
  .progress__card-inner {
    font-size: 14px;
    padding: 0.5em 0.9em;
  }
}