
.steps {
  background: var(--surface-page);
  padding: var(--panel-gutter);
}

.steps-panel {
  background: var(--surface-panel);
  color: var(--ink-primary);
  border-radius: var(--ds-radius-16);
  padding: var(--space-section) var(--panel-inset);
}

.steps-head {
  max-width: 720px;
}

.steps-title {
  color: var(--ink-primary);
}

.steps-title-alt {
  color: var(--ds-accent-900);}

.steps-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.steps-item-media {
  overflow: hidden;
  border: 1px solid var(--photo-edge);
  border-radius: var(--ds-radius-12);
  height: var(--steps-media-h, 260px);
}

.steps-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: steps-ambient 22s var(--ds-ease) infinite alternate;
  transition: scale 350ms var(--ds-ease-out);
}

.steps-item:nth-child(2) .steps-item-media img {
  animation-delay: -9s;
}

.steps-item:nth-child(3) .steps-item-media img {
  animation-delay: -16s;
}

@keyframes steps-ambient {
  to {
    scale: 1.06;
  }
}

@media (hover: hover) {
  .steps-item:hover .steps-item-media img {
    scale: 1.05;
  }

  .steps-item:hover .steps-chip {
    transform: scale(1.12);
  }
}

.steps-chip {
  transition: scale 220ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--pop-delay, 0ms),
    opacity 200ms var(--ds-ease) var(--pop-delay, 0ms),
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.steps-plate {
  max-width: 44ch;
}

.steps-item-word {
  margin: 0;
  font-size: clamp(26px, 22px + 1vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink-primary);
}

.steps-item-title {
  margin: var(--space-2) 0 0;
  color: var(--ink-primary);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.steps-item-line {
  margin: var(--space-1) 0 0;
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .steps-item {
    display: flex;
    flex-direction: column;
  }

  .steps-chip {
    margin-top: var(--space-4);
  }

  .steps-plate {
    margin-top: var(--space-2);
  }
}

@media (min-width: 900px) {
  .steps-list {
    --steps-media-h: clamp(240px, 22vw, 320px);
    --steps-rule-y: calc(var(--steps-media-h) + var(--space-6));
    position: relative;
    flex-direction: row;
    gap: var(--space-6);
  }

  .steps-item {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
  }

  .steps-list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--steps-rule-y);
    height: 2px;
    background: var(--ds-accent-600);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 900ms var(--ds-ease-out) 250ms;
  }

  .steps-list:has(.steps-item.is-revealed)::before {
    transform: scaleX(1);
  }

  .steps-list:not([data-reveal-armed])::before {
    transform: scaleX(1);
  }

  .steps-chip {
    position: absolute;
    left: 0;
    top: calc(var(--steps-rule-y) - 15px);
    z-index: 1;
  }

  .steps-plate {
    margin-top: calc(var(--space-6) + var(--space-7));
  }

  [data-reveal-armed] .steps-item .steps-chip {
    opacity: 0;
    scale: 0.4;
  }

  [data-reveal-armed] .steps-item.is-revealed .steps-chip {
    opacity: 1;
    scale: 1;
  }

  [data-reveal-armed] .steps-item:nth-child(1) .steps-chip {
    --pop-delay: 400ms;
  }

  [data-reveal-armed] .steps-item:nth-child(2) .steps-chip {
    --pop-delay: 650ms;
  }

  [data-reveal-armed] .steps-item:nth-child(3) .steps-chip {
    --pop-delay: 900ms;
  }
}
