/* ---------- Process: sticky progress ring + step timeline ---------- */
.process {
  display: flex;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 48px) 128px;
}

/* While Process is the last section, leave enough room below it for the final cards to scroll up
   to eye level. This stops applying by itself once another section follows. */
.process:last-of-type {
  padding-bottom: max(128px, calc(58vh - 130px));
  padding-bottom: max(128px, calc(58svh - 130px));
}

.process__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.process__body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Ring panel stays in view while the steps scroll past */
.process__ring {
  position: sticky;
  top: 96px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 14px;
  background: var(--surface);
}

.ring { display: block; width: 100%; height: auto; font-family: var(--font-sans); }
.ring__track { fill: none; stroke: #c9c9c7; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0.1 5.2; }
.ring__arc { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ring__core { fill: var(--bg); }
.ring__num { font-size: 46px; font-weight: 500; letter-spacing: -0.04em; fill: var(--ink); }
.ring__total { font-size: 13px; font-weight: 500; fill: var(--ink-muted); }
.ring__name { font-size: 12.5px; font-weight: 500; fill: var(--ink-muted); }

.rdot { transform-box: fill-box; transform-origin: center; transition: transform .3s ease; }
.rdot circle { fill: var(--surface); stroke: #c9c9c7; stroke-width: 1; transition: fill .3s ease, stroke .3s ease; }
.rdot text { font-size: 8.5px; font-weight: 600; fill: #8a8a88; text-anchor: middle; transition: fill .3s ease; }
.rdot.is-done circle, .rdot.is-active circle { fill: var(--ink); stroke: var(--ink); }
.rdot.is-done text, .rdot.is-active text { fill: #fafafa; }
.rdot.is-active { transform: scale(1.3); }

/* Timeline: a gray rail with a dot that travels down it as you scroll */
.timeline { position: relative; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The rail spans first node -> last node (top/height set by process.js) */
.tl-rail {
  position: absolute;
  left: 5.5px;           /* centred on the 13px dots */
  top: 0;
  width: 2px;
  height: 0;
  border-radius: 1px;
  background: rgba(20, 20, 20, .14);
}

.tl-rail__fill {              /* darker trail behind the dot */
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #6a6a6a;
  transform-origin: top;
  transform: scaleY(0);
}

.tl-rail__dot {               /* the travelling dot */
  position: absolute;
  left: -5.5px;
  top: -6.5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(20, 20, 20, .1);
  z-index: 2;
  will-change: transform;
}

.step { position: relative; padding-left: 32px; }

.step__node {
  position: absolute;
  left: 0;
  top: 28px;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid #b4b4b2;
  background: var(--bg);
  z-index: 1;
  transition: background-color .3s ease, border-color .3s ease;
}

.step.is-done .step__node,
.step.is-active .step__node { background: var(--ink); border-color: var(--ink); }

.step__card {
  padding: 24px 26px 26px;
  border-radius: 14px;
  background: #e7e7e5;          /* resting: a soft gray, a touch darker than the page */
  transition: background-color .3s ease;
}

.step__no { display: block; margin-bottom: 6px; font-size: 13px; color: #85857f; transition: color .3s ease; font-variant-numeric: tabular-nums; }
.step__title { margin: 0 0 6px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: #66665f; transition: color .3s ease; }
.step__desc { margin: 0; max-width: 56ch; font-size: 14px; line-height: 1.5; color: #7d7d78; transition: color .3s ease; }

/* active: white, full contrast */
.step.is-active .step__card { background: #fff; }
.step.is-active .step__no { color: var(--ink-muted); }
.step.is-active .step__title { color: var(--ink); }
.step.is-active .step__desc { color: #5c5c5a; }
