/* v5: on desktop the process copy stays pinned while the system stack builds.
   Only the highlight moves; the current step opens its description, the others fold to a title. */

@media (min-width: 1101px) {
  .process {
    display: block;
    height: 420vh;
    padding-block: 0;
  }

  .process-pin {
    position: sticky;
    top: 0;
    height: 100svh;
    padding-top: var(--header-h);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
  }

  .process .section-head h2 {
    font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  }

  .process .section-head p {
    margin-top: 16px;
  }

  .process-steps {
    margin-top: 36px;
  }

  .process-steps li {
    display: grid;
    grid-template-rows: auto auto 0fr;
    padding: 16px 0 18px;
    transition:
      grid-template-rows 500ms var(--ease-out),
      opacity 400ms ease;
  }

  .process-steps li.is-current {
    grid-template-rows: auto auto 1fr;
  }

  .process-steps h3 {
    margin-top: 4px;
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  }

  .process-steps p {
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 300ms ease;
  }

  .process-steps li.is-current p {
    padding-top: 8px;
    opacity: 1;
    transition: opacity 400ms ease 150ms;
  }

  .js .process-steps li.is-done {
    opacity: 0.62;
  }

  .process-steps li.is-current h3 {
    color: var(--text);
  }

  .process .stack-stage {
    position: relative;
    top: 0;
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .process .section-head p {
    display: none;
  }

  .process-steps {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-steps li,
  .process-steps p {
    transition: none;
  }
}
