/* ==========================================================================
   How it works — numbered timeline with a connecting line that draws in
   ========================================================================== */

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 1.5rem + 0.84vw, 2.5rem);
}

/* Connector: from the centre of the first dot to the centre of the last */
.steps::before {
  content: "";
  position: absolute;
  left: 28.5px;
  top: 30px;
  bottom: 30px;
  width: 3px;
  background: rgba(112, 75, 53, 0.25);
  transform-origin: top;
  transform: scaleY(var(--line, 1));
  transition: transform 1.6s var(--ease-out) 0.2s;
}

.js .steps:not(.is-visible)::before {
  --line: 0;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 999px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.step-body {
  padding-block: 10px;
}

.step-title {
  color: #3a2a1f;
  font-weight: 600;
  font-size: clamp(1.25rem, 1.189rem + 0.259vw, 1.5rem);
  line-height: 1.2;
}

.step-text {
  margin-top: 6px;
  color: #5e4a3b;
  font-size: clamp(1rem, 0.954rem + 0.194vw, 1.1875rem);
  line-height: 1.5;
}

/* Steps light up one after another once the list is in view */
.js .steps .step {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .steps .step-num {
  transform: scale(0.4);
  transition: transform 0.7s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.js .steps.is-visible .step {
  opacity: 1;
  transform: none;
}

.js .steps.is-visible .step-num {
  transform: none;
}

.js .steps.is-visible .step:nth-child(1),
.js .steps.is-visible .step:nth-child(1) .step-num { transition-delay: 0.15s; }
.js .steps.is-visible .step:nth-child(2),
.js .steps.is-visible .step:nth-child(2) .step-num { transition-delay: 0.65s; }
.js .steps.is-visible .step:nth-child(3),
.js .steps.is-visible .step:nth-child(3) .step-num { transition-delay: 1.15s; }

/* Meet Beth illustration: stays still — it only fades in, no movement */
.beth-art img {
  display: block;
  width: 100%;
  height: auto;
}
