/* =============================================================
   Solmateria — COMMENT ÇA SE PASSE
   The narrative thread becomes explicit: a numbered timeline whose
   vertical orange line draws as you scroll, igniting each number
   when the line reaches it. "Un seul interlocuteur, de A à Z."
   ============================================================= */

.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, #473f48 0%, #4d3e43 55%, #523c3f 100%);
}
.process__aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(238, 96, 67, 0.12) 0%, transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.process__head { max-width: 44rem; margin: 0 auto var(--space-16); text-align: center; }
.process__title { font-size: var(--text-3xl); margin-top: var(--space-4); }
.process__title .spark { color: var(--brand-orange); }
.process__subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ---- Timeline ---------------------------------------------- */
.timeline {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* vertical line running through the marker centers */
.tl-track {
  position: absolute;
  left: 25px; /* marker is 52px wide -> centre at 26px */
  width: 2px;
  top: 0;
  height: 0; /* top & height set by JS to span the marker centres */
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  z-index: 0;
}
.tl-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--filament-color);
  box-shadow: 0 0 10px rgba(238, 96, 67, 0.5);
  transform-origin: top;
  transform: scaleY(var(--timeline-progress, 0));
  transition: transform 0.08s linear;
}

.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-12);
}
.tl-step:last-child { padding-bottom: 0; }

.tl-marker {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b3542; /* opaque: hides the line passing behind it */
  border: 1px solid var(--color-border-strong);
  transition: border-color 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}
.tl-num {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-subtle);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s ease;
}

/* ignited state (latched once the line reaches it) */
.tl-step.is-lit .tl-marker {
  border-color: var(--brand-orange);
  background: var(--gradient-warm);
  box-shadow: 0 0 0 4px rgba(246, 140, 56, 0.14), 0 0 22px rgba(238, 96, 67, 0.45);
}
.tl-step.is-lit .tl-num { color: #fff; }

.tl-content { padding-top: var(--space-2); }
.tl-title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.tl-desc { margin: 0; color: var(--color-text-muted); }

@media (min-width: 720px) {
  .tl-step { gap: var(--space-8); padding-bottom: var(--space-16); }
  .tl-content { padding-top: var(--space-3); }
}
