/*
 * Process — Slice 5 / WOW 4.
 * SVG line connects 4 steps, animates via stroke-dashoffset on scroll.
 */

.process {
  background: var(--color-white);
  padding-block: var(--space-section);
}

.process__header { max-width: 720px; margin-bottom: var(--space-8); }
.process__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
}
.process__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-3);
}
.process__lede { font-size: clamp(1rem, 1.2vw, 1.125rem); color: rgba(17,17,17,.7); line-height: 1.55; max-width: 56ch; }

.process__track { position: relative; }
/* Horizontal connector line sits ABOVE the dots with a clear gap, acting
   as an editorial horizon rather than cutting through the circles. */
.process__line {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  height: 4px;
  color: var(--color-red);
  display: none;
  z-index: 0;
}
@media (min-width: 768px) { .process__line { display: block; } }

.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .process__steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
}

.process-step {
  /* Vertical stack: number → line (above, decorative) → dot → title → desc.
     padding-top reserves the area for ghost number + line above the dot.
       0-44   ghost number
       56-60  horizontal line
       88+    dot (32px clear from line) */
  position: relative;
  z-index: 1;
  padding-top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.625rem, 2.4vw, 2.25rem);
  letter-spacing: var(--tracking-tight);
  color: rgba(17, 17, 17, 0.10);
  line-height: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.process-step__dot {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  /* Solid background cuts the SVG line at the dot — the line passes BEHIND
     since .process__line has z-index 0 and .process-step has z-index 1. */
  background: var(--color-white);
  border: 2px solid var(--color-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  margin-bottom: var(--space-3);
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: var(--tracking-snug);
  color: var(--color-charcoal);
  margin: 0;
  transition: color var(--transition-base);
}

/* Hover — the step's dot fills in (white icon) and the title reddens. */
.process-step:hover .process-step__dot {
  background: var(--color-red);
  color: var(--color-white);
  transform: scale(1.08);
}
.process-step:hover .process-step__title { color: var(--color-red); }

.process-step__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.65);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-process-line] { stroke-dashoffset: 0 !important; }
  .process-step__dot, .process-step__title { transition: none; }
  .process-step:hover .process-step__dot { transform: none; }
}
