/* Process: a pinned, full-screen stage. Photo (841 x 772 Figma px) on the left, four steps (650 px wide) on the right.
   Everything is sized from ONE scale factor, --si = "px per Figma px", chosen so that the whole block always fits both the
   footer container width AND the screen height (so nothing overlaps or gets cut off on short screens). */
.process { padding-bottom: 5vw; }

.process__stage {
  --padTop: clamp(6.5rem, 12vh, 8rem);                      /* always clears the fixed header */
  --padBottom: clamp(1.5rem, 4vh, 3rem);
  --h2: clamp(1.9rem, 2.5vw, 3rem);
  --gap: clamp(1.25rem, 2.4vw, 2.5rem);                     /* between heading and the block */
  --headH: calc(max(1.98vw, 1.2rem) + .8vw + var(--h2) * 1.18 + .75rem);   /* eyebrow + gap + heading + safety */
  --rowH: calc(100svh - var(--padTop) - var(--padBottom) - var(--headH) - var(--gap));
  --gw: min(73.4vw, 1410px);                                /* same container as the footer */
  --si: min(calc(var(--rowH) / 772), calc(var(--gw) / 1569));

  height: 100vh; height: 100svh; padding: var(--padTop) 0 var(--padBottom);
  display: flex; flex-direction: column; align-items: center; justify-content: center;   /* block is centred in the pinned screen */
}
.process__head { text-align: center; flex: none; }
.process__title { margin-top: .8vw; font-size: var(--h2); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; color: #101828; }

.process__grid { margin-top: var(--gap); width: var(--gw); display: flex; align-items: center; gap: calc(78 * var(--si)); flex: none; }   /* photo left, steps take the rest of the container */

/* ---------- photo ---------- */
.process__media {
  position: relative; flex: none; margin: 0; overflow: hidden; container-type: inline-size;
  width: calc(841 * var(--si)); height: calc(772 * var(--si)); border-radius: calc(46 * var(--si)); background: #e9e4df;
}
.process__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.process__photo.is-active { opacity: 1; transform: none; }

/* glass card (inside the media box, so it uses cqw = 1% of the photo width) */
.process__glass {
  position: absolute; right: 3.1cqw; bottom: 3.6cqw; width: 42.8cqw; height: 25.9cqw; border-radius: 3.3cqw; color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.16));
  border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.process__glass img { position: absolute; left: 4.76cqw; top: 4.3cqw; width: 15.2cqw; height: auto; }
.process__glass p { position: absolute; left: 4.76cqw; top: 13cqw; font-size: 2.62cqw; line-height: 1.25; font-weight: 600; letter-spacing: -.005em; }

/* ---------- steps ---------- */
.process__steps { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.process-step {
  display: flex; align-items: flex-start; width: 100%; height: calc(193 * var(--si)); padding: calc(33 * var(--si)) 0 0; text-align: left; cursor: pointer;
  border-top: 1px solid rgba(16,24,40,.08); color: rgba(16,24,40,.16);
  transition: color .5s var(--ease);
}
.process-step:last-child { border-bottom: 1px solid rgba(16,24,40,.08); }
.process-step__num { flex: none; width: calc(126 * var(--si)); font-size: calc(64 * var(--si)); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.process-step__body { display: block; padding-top: calc(8 * var(--si)); }
.process-step__title { display: block; font-size: calc(40 * var(--si)); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; transition: transform .5s var(--ease); }
.process-step__text { display: block; margin-top: calc(20 * var(--si)); max-width: none; font-size: max(12px, calc(16 * var(--si))); line-height: 1.45; font-weight: 400; color: rgba(16,24,40,.16); transition: color .5s var(--ease); }
.process-step:hover { color: rgba(16,24,40,.38); }
.process-step:hover .process-step__text { color: rgba(16,24,40,.3); }
.process-step.is-active { color: #101828; }
.process-step.is-active .process-step__num { color: var(--c-primary); }
.process-step.is-active .process-step__text { color: rgba(16,24,40,.6); }
.process-step.is-active .process-step__title { transform: translateX(calc(6 * var(--si))); }

/* ---------- tablet / phone: no pin, photo on top, steps below ---------- */
@media (max-width: 900px) {
  .process { padding-bottom: 3rem; }
  .process__stage { height: auto; padding: 4rem 0 0; --si: calc((100vw - 2 * var(--gutter)) / 841); }
  .process__title { margin-top: .6rem; font-size: clamp(1.9rem, 8vw, 3rem); }
  .process__grid { width: calc(100% - 2 * var(--gutter)); flex-direction: column; align-items: stretch; gap: 1.5rem; margin-top: 1.75rem; }
  .process__media { width: 100%; height: auto; aspect-ratio: 841 / 772; border-radius: 1.5rem; }
  .process__steps { width: 100%; }
  .process-step { height: auto; padding: 1.1rem 0 1.25rem; }
  .process-step__num { width: 3.6rem; font-size: 2.4rem; }
  .process-step__body { padding-top: .25rem; }
  .process-step__title { font-size: 1.5rem; }
  .process-step__text { width: auto; margin-top: .5rem; font-size: .95rem; }
}
