/*
 * Last modified: 10/06/2026 09:12 PM
 *
 * IT Service Lifecycle. Scoped to .lifecycle. Nine steps at four seconds,
 * then a two-second rewind. Total cycle: 38 seconds.
 */

.lifecycle {
  --gold: var(--azt-gold, #b8860b);
  --lift: 230px;
  --cycle: 38s;
  position: relative;
  width: min(1360px, calc(100% - (var(--azt-pad, 32px) * 2)));
  max-width: 1360px;
  margin: 0 auto;
  color: #f5f4f0;
  font-family: inherit;
}

.lifecycle,
.lifecycle *,
.lifecycle *::before,
.lifecycle *::after {
  box-sizing: border-box;
}

.lifecycle .heading {
  position: relative;
  text-align: center;
  display: block;
  padding: 28px 145px 18px;
  margin: 0;
}

.lifecycle .eyebrow {
  margin: 0 0 9px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.lifecycle .heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #f5f4f0;
}

.lifecycle .pause-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.lifecycle .pause-control {
  position: absolute;
  right: 22px;
  top: 34px;
  padding: 10px 16px;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: #deded8;
}

.lifecycle .pause-toggle:focus-visible ~ .experience .heading .pause-control {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.lifecycle .paused-label {
  display: none;
}

.lifecycle .pause-toggle:checked ~ .experience .heading .running-label {
  display: none;
}

.lifecycle .pause-toggle:checked ~ .experience .heading .paused-label {
  display: inline;
}

.lifecycle .experience {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: 14px;
  background: transparent;
}

.lifecycle .stage {
  position: relative;
  height: 300px;
  margin: 0;
}

.lifecycle .slide {
  position: absolute;
  inset: 70px 6% 0 calc(6% + 70px);
  opacity: 0;
  visibility: hidden;
  transform-origin: 0 50%;
  animation: azztandc-slide var(--cycle) linear infinite;
  animation-delay: calc(-38s + var(--i) * 4s);
}

.lifecycle .slide-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 17px;
}

.lifecycle .step-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
   margin-top: 20px;
}

.lifecycle .step-icon [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.lifecycle .slide h3 {
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-transform: none;
  margin: 0;
  color: #f5f4f0;
}

.lifecycle .slide p {
  color: #c5c8c7;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
  margin: 0;
  max-width: 540px;
  width: 90%;
}

.lifecycle .step-count {
  position: absolute;
  right: 0;
  bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #aaa99e;
}

.lifecycle .timeline {
  --slot: 145px;
  position: relative;
  margin: 40px 0 0;
  overflow: visible;
}

.lifecycle .timeline-window {
  margin-left: calc(6% - 4px);
  margin-top: -4px;
  padding: 4px 0 0 4px;
  overflow: hidden;
}

.lifecycle .steps {
  display: flex;
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
  animation: azztandc-conveyor var(--cycle) linear infinite;
}

.lifecycle .steps li {
  position: relative;
  flex: 0 0 var(--slot);
  width: var(--slot);
  text-align: left;
  margin: 0;
  padding: 0;
}

.lifecycle .steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 44%, transparent);
}

.lifecycle .steps li:first-child::before {
  left: 0;
}

.lifecycle .steps li:last-child::before {
  right: 0;
}

.lifecycle .steps li::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -3px;
  left: -3px;
  background: var(--gold);
  border-radius: 50%;
}

.lifecycle .step-label {
  display: block;
  padding: 19px 8px 22px 0;
  font-size: clamp(10px, 1.05vw, 14px);
  color: #b8bcb9;
  animation: azztandc-label var(--cycle) linear infinite;
  animation-delay: calc(-38s + var(--i) * 4s);
}

.lifecycle .step-label small {
  display: block;
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.lifecycle .traveler {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 6%;
  width: 0;
  height: 0;
}

.lifecycle .ball {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  animation: azztandc-lift var(--cycle) ease-in-out infinite;
}

.lifecycle .ball::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.lifecycle .stem {
  position: absolute;
  top: 25px;
  left: 11px;
  height: 218px;
  border-left: 1px dashed var(--gold);
  transform-origin: top;
  animation: azztandc-stem var(--cycle) ease-in-out infinite;
}

.lifecycle .improvement {
  padding: 19px 20px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 19%, transparent);
  color: color-mix(in srgb, var(--gold) 62%, #f5f4f0);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.025em;
}

.lifecycle .preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 17px 6%;
  color: #aaa99e;
  font-size: 9px;
  letter-spacing: 0.1em;
  background: transparent;
}

.lifecycle .pause-toggle:checked ~ .experience *,
.lifecycle .pause-toggle:checked ~ .experience *::before {
  animation-play-state: paused !important;
}

.lifecycle .lifecycle-intro {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: #c5c8c7;
}

@media (max-width: 760px) {
  .lifecycle .heading {
    padding: 24px 12px 60px;
  }

  .lifecycle .heading h2 {
    font-size: 28px;
  }

  .lifecycle .pause-control {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    font-size: 10px;
  }

  .lifecycle .stage {
    height: 330px;
  }

  .lifecycle .slide {
    inset: 60px 18px 0 calc(6% + 46px);
  }

  .lifecycle .slide-heading {
    gap: 10px;
  }

  .lifecycle .step-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .lifecycle .slide h3 {
    font-size: 31px;
  }

  .lifecycle .slide p {
    font-size: 15px;
    width: 100%;
  }

  .lifecycle {
    --lift: 280px;
  }

  .lifecycle .stem {
    height: 268px;
  }

  .lifecycle .step-count {
    top: auto;
    bottom: 22px;
    right: 0;
  }

  .lifecycle .timeline {
    --slot: 125px;
  }

  .lifecycle .step-label {
    font-size: 12px;
  }

  .lifecycle .preview-footer {
    font-size: 8px;
    letter-spacing: 0;
  }

  .lifecycle .lifecycle-intro {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lifecycle .slide,
  .lifecycle .step-label,
  .lifecycle .traveler,
  .lifecycle .ball,
  .lifecycle .stem {
    animation: none;
  }

  .lifecycle .slide:first-child {
    opacity: 1;
    visibility: visible;
  }

  .lifecycle .traveler,
  .lifecycle .pause-control {
    position: absolute;
    right: 22px;
    top: 34px;
    display: none;
  }

  .lifecycle .steps,
  .lifecycle .timeline-window {
    overflow-x: auto;
    padding-top: 10px;
  }

  .lifecycle .steps li[aria-hidden="true"] {
    display: none;
  }

  .lifecycle .stage {
    height: auto;
    padding: 20px 6%;
  }

  .lifecycle .slide {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0 0 28px;
  }

  .lifecycle .step-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .lifecycle .slide h3 {
    font-size: 26px;
  }

  .lifecycle .slide p {
    width: 100%;
  }

  .lifecycle .step-count,
  .lifecycle .timeline {
    display: none;
  }
}

@keyframes azztandc-conveyor {
  0.000000%,
  9.052632% { transform: translateX(calc(var(--slot) * -0)); }
  10.526316%,
  19.578947% { transform: translateX(calc(var(--slot) * -1)); }
  21.052632%,
  30.105263% { transform: translateX(calc(var(--slot) * -2)); }
  31.578947%,
  40.631579% { transform: translateX(calc(var(--slot) * -3)); }
  42.105263%,
  51.157895% { transform: translateX(calc(var(--slot) * -4)); }
  52.631579%,
  61.684211% { transform: translateX(calc(var(--slot) * -5)); }
  63.157895%,
  72.210526% { transform: translateX(calc(var(--slot) * -6)); }
  73.684211%,
  82.736842% { transform: translateX(calc(var(--slot) * -7)); }
  84.210526%,
  93.263158% { transform: translateX(calc(var(--slot) * -8)); }
  94.736842% { transform: translateX(calc(var(--slot) * -8)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { transform: translateX(0); }
}

@keyframes azztandc-lift {
  0.000000% { transform: translateY(0px); }
  1.578947% { transform: translateY(calc(var(--lift) * -1)); }
  7.157895% { transform: translateY(calc(var(--lift) * -1)); }
  9.052632% { transform: translateY(0px); }
  10.526316% { transform: translateY(0px); }
  12.105263% { transform: translateY(calc(var(--lift) * -1)); }
  17.684211% { transform: translateY(calc(var(--lift) * -1)); }
  19.578947% { transform: translateY(0px); }
  21.052632% { transform: translateY(0px); }
  22.631579% { transform: translateY(calc(var(--lift) * -1)); }
  28.210526% { transform: translateY(calc(var(--lift) * -1)); }
  30.105263% { transform: translateY(0px); }
  31.578947% { transform: translateY(0px); }
  33.157895% { transform: translateY(calc(var(--lift) * -1)); }
  38.736842% { transform: translateY(calc(var(--lift) * -1)); }
  40.631579% { transform: translateY(0px); }
  42.105263% { transform: translateY(0px); }
  43.684211% { transform: translateY(calc(var(--lift) * -1)); }
  49.263158% { transform: translateY(calc(var(--lift) * -1)); }
  51.157895% { transform: translateY(0px); }
  52.631579% { transform: translateY(0px); }
  54.210526% { transform: translateY(calc(var(--lift) * -1)); }
  59.789474% { transform: translateY(calc(var(--lift) * -1)); }
  61.684211% { transform: translateY(0px); }
  63.157895% { transform: translateY(0px); }
  64.736842% { transform: translateY(calc(var(--lift) * -1)); }
  70.315789% { transform: translateY(calc(var(--lift) * -1)); }
  72.210526% { transform: translateY(0px); }
  73.684211% { transform: translateY(0px); }
  75.263158% { transform: translateY(calc(var(--lift) * -1)); }
  80.842105% { transform: translateY(calc(var(--lift) * -1)); }
  82.736842% { transform: translateY(0px); }
  84.210526% { transform: translateY(0px); }
  85.789474% { transform: translateY(calc(var(--lift) * -1)); }
  91.368421% { transform: translateY(calc(var(--lift) * -1)); }
  93.263158% { transform: translateY(0px); }
  100% { transform: translateY(0); }
}

@keyframes azztandc-stem {
  0.000000% { transform: scaleY(0); }
  1.578947% { transform: scaleY(1); }
  7.157895% { transform: scaleY(1); }
  9.052632% { transform: scaleY(0); }
  10.526316% { transform: scaleY(0); }
  12.105263% { transform: scaleY(1); }
  17.684211% { transform: scaleY(1); }
  19.578947% { transform: scaleY(0); }
  21.052632% { transform: scaleY(0); }
  22.631579% { transform: scaleY(1); }
  28.210526% { transform: scaleY(1); }
  30.105263% { transform: scaleY(0); }
  31.578947% { transform: scaleY(0); }
  33.157895% { transform: scaleY(1); }
  38.736842% { transform: scaleY(1); }
  40.631579% { transform: scaleY(0); }
  42.105263% { transform: scaleY(0); }
  43.684211% { transform: scaleY(1); }
  49.263158% { transform: scaleY(1); }
  51.157895% { transform: scaleY(0); }
  52.631579% { transform: scaleY(0); }
  54.210526% { transform: scaleY(1); }
  59.789474% { transform: scaleY(1); }
  61.684211% { transform: scaleY(0); }
  63.157895% { transform: scaleY(0); }
  64.736842% { transform: scaleY(1); }
  70.315789% { transform: scaleY(1); }
  72.210526% { transform: scaleY(0); }
  73.684211% { transform: scaleY(0); }
  75.263158% { transform: scaleY(1); }
  80.842105% { transform: scaleY(1); }
  82.736842% { transform: scaleY(0); }
  84.210526% { transform: scaleY(0); }
  85.789474% { transform: scaleY(1); }
  91.368421% { transform: scaleY(1); }
  93.263158% { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}

@keyframes azztandc-slide {
  0% { opacity: 0; visibility: visible; transform: translateY(15px) scale(1.1); }
  1.7%,
  7.6% { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  9.5% { opacity: 0; visibility: visible; }
  10.526316%,
  100% { opacity: 0; visibility: hidden; }
}

@keyframes azztandc-label {
  0%,
  9% { color: #dcc481; font-weight: 600; }
  10.526316%,
  100% { color: #b8bcb9; font-weight: 400; }
}
