/* Process and About page refinements from the final review handoff. */

/* Five centered process milestones with a connecting rule. */
#section-process-overview [data-layout="Five stages"] > .layout-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
#section-process-overview [data-layout="Five stages"] > .layout-row::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #d8dce0;
}
#section-process-overview [data-layout="Five stages"] > .layout-row > .layout-column {
  position: relative;
  z-index: 1;
  align-items: center;
  min-width: 0;
  text-align: center;
}
#section-process-overview .image-compact {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  max-width: 64px;
  border-radius: 50%;
  background: #20252b;
  color: #fff;
}
#section-process-overview .node-text { text-align: center !important; }

/* Paired image and copy read as one consistent horizontal card. */
#section-our-process-in-depth .process-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  align-items: stretch;
}
#section-our-process-in-depth .process-step > .image-placeholder {
  width: 100%;
  max-width: none;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 0;
  background: #20252b;
  color: #fff;
}
#section-our-process-in-depth .process-step > .process-preview-card {
  width: auto;
  max-width: none;
  min-width: 0;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 0;
  box-shadow: none;
}
#section-our-process-in-depth .process-step > .process-preview-card > :first-child {
  order: 3;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 12px;
  border-radius: 50%;
  background: #f1f2f3;
  color: #747c85;
  font-size: 14px;
}
#section-our-process-in-depth .process-step > .process-preview-card > .image-compact {
  max-width: 44px;
  width: 44px;
  height: 44px;
}

/* Keep the communication sections on the established one-third/two-thirds split. */
#section-working-together [data-layout="Communication"],
#section-working-together [data-layout="Project rhythm"],
#section-working-together [data-layout="Timeline"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
  align-items: start;
}

/* More breathing room on About, with clear subheads under the main heading. */
#section-meet-your-designer,
#section-sketching-approach,
#section-the-people-behind-the-studio,
#section-the-working-relationship { padding-block: clamp(80px, 8vw, 120px); }
#section-the-working-relationship [data-layout="Copy / Direct conversations"] h3,
#section-the-working-relationship [data-layout="Copy / Clear decisions"] h3,
#section-the-working-relationship [data-layout="Copy / An agreed plan"] h3 {
  font-size: clamp(17px,2vw,21px) !important;
  line-height: 1.25;
}
#section-the-working-relationship [data-layout="Project commitments"] { margin-top: 40px; }
#section-the-working-relationship [data-layout="Project commitments"] > .layout-row { gap: 36px; }
#section-sketching-approach [data-layout="Copy / Why sketching matters to us."] h2 {
  text-wrap: balance;
}

@media (max-width: 760px) {
  #section-process-overview [data-layout="Five stages"] > .layout-row {gap:8px}
  #section-process-overview [data-layout="Five stages"] > .layout-row::before {top:clamp(19px,6vw,27px)}
  #section-process-overview .image-compact {
    width:clamp(38px,12vw,54px);
    height:clamp(38px,12vw,54px);
    max-width:100%;
    flex-basis:auto;
  }
  #section-process-overview .node-text {font-size:clamp(10px,2.8vw,13px)!important}
  #section-our-process-in-depth .process-step {
    grid-template-columns: minmax(0, 1fr);
  }
  #section-our-process-in-depth .process-step > .image-placeholder {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
  #section-our-process-in-depth .process-step > .process-preview-card {
    padding: 26px 24px;
  }
  #section-working-together [data-layout="Communication"],
  #section-working-together [data-layout="Project rhythm"],
  #section-working-together [data-layout="Timeline"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section-our-process-in-depth .process-step { animation: none !important; }
}
