/* ============ WORK PROCESS — alternating scroll timeline ============ */
.process { background: var(--off-white); }
.process .section-head { text-align: center; margin-inline: auto; }

.process__title {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---- Track ---- */
.proc {
  position: relative;
  margin-top: clamp(44px, 5.5vw, 70px);
  padding-block: 10px;
}

/* the rail runs down the centre; the red fill is scrubbed by scroll */
.proc__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.proc__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--red), var(--red-dark));
  transform: scaleY(0);
  transform-origin: top;
}

/* ---- Step ---- */
.pstep {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.pstep:last-child { margin-bottom: 0; }

/* odd steps sit left of the rail, even steps right */
.pstep:nth-child(odd) .pstep__card  { grid-column: 1; margin-right: clamp(32px, 4vw, 58px); text-align: right; }
.pstep:nth-child(even) .pstep__card { grid-column: 2; margin-left: clamp(32px, 4vw, 58px); }

.pstep__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
  padding: clamp(14px, 1.6vw, 18px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
/* odd steps sit to the left of the rail, so their photo goes on the right */
.pstep:nth-child(odd) .pstep__card { flex-direction: row-reverse; }

/* ---- Step photo ---- */
.pstep__media {
  flex: none;
  width: clamp(84px, 9vw, 120px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
}
.pstep__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pstep__card:hover .pstep__media img { transform: scale(1.08); }
.pstep__body { min-width: 0; }
.pstep__card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.pstep__num {
  display: block;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.pstep h3 {
  margin-top: 8px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
}
.pstep p {
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- Dot on the rail ---- */
.pstep__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--line-strong);
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease),
              transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pstep.is-on .pstep__dot {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(225, 29, 42, 0.16);
}
.pstep.is-on .pstep__card { border-color: var(--red-line); }

/* ---- Mobile: single rail on the left ---- */
@media (max-width: 760px) {
  .pstep:nth-child(odd) .pstep__card { flex-direction: row; }
  .proc__rail { left: 9px; margin-left: 0; }
  .pstep { grid-template-columns: 1fr; }
  .pstep:nth-child(odd) .pstep__card,
  .pstep:nth-child(even) .pstep__card {
    grid-column: 1;
    margin: 0 0 0 40px;
    text-align: left;
  }
  .pstep__dot { left: 9px; margin-left: -7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .proc__fill { transform: scaleY(1); }
}

@media (max-width: 420px) {
  .pstep__media { width: 70px; }
}
