/* ============================================================
   steps.css — "What a divorce actually looks like"
   A full-width process timeline: a connecting line down the
   numbered nodes, lead + explanation side by side, drawing in
   on scroll. The clarity-is-the-product section.
   ============================================================ */

.steps {
  background: var(--paper);       /* same beige as the homepage promise section */
  padding-block: clamp(4rem, 9vw, 7rem);
}

.steps__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.steps__title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: var(--space-3);
}
.steps__title em { font-style: italic; color: var(--blue); }
.steps__intro {
  margin-top: var(--space-4);
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;   /* full layout width */
}

/* ---------- Timeline ---------- */
.steps__timeline {
  --node: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.step:last-child { padding-bottom: 0; }

/* connecting line from this node down to the next — visible by default */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: var(--node);
  bottom: 0;
  width: 2px;
  background: rgba(140, 133, 81, 0.45);   /* soft gold rail */
  transform-origin: top;
  transition: transform .6s ease .12s;
}
/* only hide-then-draw once the reveal system is active (JS added .reveal) */
.step.reveal:not(:last-child)::before { transform: scaleY(0); }
.step.is-visible:not(:last-child)::before { transform: scaleY(1); }

.step__node {
  position: relative;
  z-index: 1;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #F3EFE6;
  box-shadow: 0 0 0 4px rgba(47, 74, 107, 0.15);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  transition: transform .45s ease, opacity .4s ease;
}
.step.reveal .step__node { transform: scale(0.4); opacity: 0; }
.step.is-visible .step__node { transform: scale(1); opacity: 1; }

/* lead + explanation, side by side on the rail (no container) */
.step__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-top: 0.5rem;
}
.step__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.step__text {
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* step fades in place (no vertical shift) so the line reads cleanly */
.step.reveal { transform: none; }

.steps__closing {
  margin-top: clamp(4.5rem, 8vw, 6rem);
  padding-left: clamp(1rem, 2vw, 1.4rem);
  border-left: 2px solid var(--blue);
  max-width: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
  color: var(--ink-soft);
}
.steps__closing strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .step__body { grid-template-columns: 1fr; gap: 0.4rem; }
  .step__lead { margin-bottom: 0.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .step:not(:last-child)::before { transform: scaleY(1); }
  .step__node { transform: none; opacity: 1; }
}
