.dt-maturity-model {
  background: var(--dt-bg, #ffffff);
  padding: 40px 20px;
  color: #111111;
  font-family: inherit;
}

.dt-maturity-model,
.dt-maturity-model * {
  box-sizing: border-box;
}

.dt-maturity-model__inner {
  width: 100%;
  max-width: var(--dt-max-width, 1350px);
  margin: 0 auto;
}

/* Header */

.dt-maturity-model__header {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.dt-maturity-model__eyebrow {
  margin: 0 0 8px;
  color: #f83747;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt-maturity-model__heading {
  margin: 0;
  color: #111111;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dt-maturity-model__intro {
  margin: 16px auto 0;
  color: #333333;
  font-size: 18px;
  line-height: 1.6;
}

.dt-maturity-model__intro p {
  margin: 0;
}

/* Graph */

.dt-maturity-model__graph {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: visible;
}

.dt-maturity-model__start-label {
  position: absolute;
  left: 2%;
  top: 18%;
  z-index: 2;
  color: #d68d86;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

/* Dotted line */

.dt-maturity-model__path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;

  clip-path: inset(0 100% 0 0);
}

.dt-maturity-model__path {
  fill: none;
  stroke: var(--dt-path-colour, #c85c5c);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

/* Stages */

.dt-maturity-model__stage {
  position: absolute;
  left: var(--stage-x);
  top: var(--stage-y);
  z-index: 3;
  width: 190px;
  text-align: center;

  opacity: 0;
  transform: translate(-50%, 18px) scale(0.92);
}

.dt-maturity-model__goal-label {
  margin-bottom: 8px;
  color: #9f222b;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dt-maturity-model__stage-label {
  position: relative;
  z-index: 4;
  margin-bottom: 8px;
  color: #7f1d25;
  font-size: 12px;
  line-height: 1;
}

.dt-maturity-model__circle {
  width: var(--stage-size, 86px);
  height: var(--stage-size, 86px);
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--stage-colour, #fbe4e7);
  color: var(--stage-text-colour, #111111);
  border: 1.5px solid #f83747;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(248, 55, 71, 0.08);
}

.dt-maturity-model__circle span {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dt-maturity-model__stage-title {
  margin: 0 0 4px;
  color: #111111;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
}

.dt-maturity-model__stage-description {
  color: #111111;
  font-size: 13px;
  line-height: 1.25;
}

.dt-maturity-model__stage-description p {
  margin: 0;
}

/* Pillars */

.dt-maturity-model__pillars {
  width: 94%;
  margin: 8px auto 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dt-maturity-model__pillar {
  min-height: 98px;
  padding: 18px 24px;
  border-radius: 9px;
  background: linear-gradient(
    90deg,
    var(--pillar-gradient-start, #fbe0de) 0%,
    var(--pillar-gradient-end, #f83747) 100%
  );
  color: var(--pillar-text-colour, #ffffff);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(248, 55, 71, 0.14);

  opacity: 0;
  transform: translateY(24px);
}

.dt-maturity-model__pillar h3 {
  margin: 0 0 5px;
  color: inherit;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.dt-maturity-model__pillar p {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
}

/* Axis */

.dt-maturity-model__axis {
  width: 94%;
  margin: 0 auto;
  padding-top: 15px;
  border-top: 2px solid #111111;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.dt-maturity-model__axis span:nth-child(1) {
  text-align: left;
}

.dt-maturity-model__axis span:nth-child(2) {
  text-align: center;
}

.dt-maturity-model__axis span:nth-child(3) {
  text-align: right;
}

/* Animation */

.dt-maturity-model.is-visible .dt-maturity-model__path-svg {
  animation: dtPathReveal 2.8s ease-out forwards;
}

.dt-maturity-model.is-visible .dt-maturity-model__stage {
  animation: dtStageReveal 0.55s cubic-bezier(0.2, 0.7, 0.2, 1.15) forwards;
  animation-delay: var(--stage-delay, 0.25s);
}

.dt-maturity-model.is-visible .dt-maturity-model__pillar {
  animation: dtPillarReveal 0.65s ease-out forwards;
  animation-delay: var(--pillar-delay, 3.05s);
}

@keyframes dtPathReveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes dtStageReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes dtPillarReveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 980px) {
  .dt-maturity-model__graph {
    height: 520px;
  }

  .dt-maturity-model__stage {
    width: 165px;
  }

  .dt-maturity-model__stage-title {
    font-size: 15px;
  }

  .dt-maturity-model__stage-description {
    font-size: 12px;
  }

  .dt-maturity-model__pillars,
  .dt-maturity-model__axis {
    width: 100%;
  }

  .dt-maturity-model__pillars {
    gap: 14px;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .dt-maturity-model {
    padding: 34px 18px;
  }

  .dt-maturity-model__header {
    text-align: left;
    margin-bottom: 26px;
  }

  .dt-maturity-model__graph {
    height: auto;
    display: grid;
    gap: 20px;
    padding-left: 20px;
    border-left: 2px dotted #f83747;
  }

  .dt-maturity-model__path-svg,
  .dt-maturity-model__start-label {
    display: none;
  }

  .dt-maturity-model__stage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    text-align: left;
    transform: translateY(18px);
  }

  .dt-maturity-model__goal-label,
  .dt-maturity-model__stage-label {
    grid-column: 2;
    margin: 0 0 4px;
  }

  .dt-maturity-model__circle {
    grid-row: 1 / span 4;
    width: 68px;
    height: 68px;
    margin: 0;
  }

  .dt-maturity-model__circle span {
    font-size: 22px;
  }

  .dt-maturity-model__stage-title,
  .dt-maturity-model__stage-description {
    grid-column: 2;
  }

  .dt-maturity-model__pillars {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .dt-maturity-model__pillar {
    min-height: 84px;
  }

  .dt-maturity-model__axis {
    display: none;
  }
    .dt-maturity-model__axis {
    display: none;
  }

  /* Mobile animation fix */
  .dt-maturity-model.is-visible .dt-maturity-model__stage {
    animation: dtStageRevealMobile 0.55s cubic-bezier(0.2, 0.7, 0.2, 1.15) forwards;
    animation-delay: var(--stage-delay, 0.25s);
  }

  @keyframes dtStageRevealMobile {
    0% {
      opacity: 0;
      transform: translateY(18px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

}
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .dt-maturity-model__path-svg,
  .dt-maturity-model__stage,
  .dt-maturity-model__pillar,
  .dt-maturity-model.is-visible .dt-maturity-model__path-svg,
  .dt-maturity-model.is-visible .dt-maturity-model__stage,
  .dt-maturity-model.is-visible .dt-maturity-model__pillar {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}