/* Linked engineering phases; typography remains in the shared styles. */
#engineering .engineering-status {
  margin-top: 12px;
  color: #405257;
  font-size: 16px;
  line-height: 1.6;
}

#engineering .path-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(44px, 5vw, 62px);
  border: 0;
}

#engineering .path-steps article,
#engineering .path-steps article:first-child {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
}

#engineering .path-steps article::before {
  position: absolute;
  top: 68px;
  left: 50%;
  height: 60px;
  border-left: 1px solid #a8c3bb;
  content: "";
}

#engineering .path-steps article:not(:last-child)::after {
  position: absolute;
  top: 34px;
  right: calc(clamp(16px, 2vw, 28px) * -1);
  width: clamp(16px, 2vw, 28px);
  border-top: 1px solid #a8c3bb;
  content: "";
}

#engineering .path-steps time {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 12px 28px 12px 20px;
  color: #fff;
  background: #135f4c;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  font-variant-numeric: tabular-nums;
}

#engineering .path-steps article:nth-child(2) time { background: #206453; }
#engineering .path-steps article:nth-child(3) time { background: #2a6470; }
#engineering .path-steps article:nth-child(4) time { background: #386672; }

#engineering .phase-detail {
  position: relative;
  min-height: 190px;
  margin-top: 60px;
  padding: 28px 24px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbdcd5;
  border-radius: 12px;
}

#engineering .phase-detail::before {
  position: absolute;
  top: -35px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid #497c70;
  border-radius: 50%;
  content: "";
  background: #f2f6f3;
}

#engineering .path-steps h3 { margin: 0 0 16px; }
#engineering .path-steps p { color: #405257; }

@media (max-width: 1100px) {
  #engineering .path-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  #engineering .path-steps article:nth-child(2)::after { display: none; }
}

@media (max-width: 640px) {
  #engineering .path-steps { grid-template-columns: 1fr; }
  #engineering .path-steps article::after { display: none; }
  #engineering .phase-detail { min-height: 0; }
}

/* Engineering and cooperation share a light surface; the cards separate the three directions. */

#cooperation.section {
  width: 100%;
  max-width: none;
  padding: clamp(72px, 8vw, 110px) max(22px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  border-top: 1px solid #d5e3dc;
  background: #f2f6f3;
}

#cooperation .simple-heading { max-width: 760px; }

#cooperation .simple-heading p {
  max-width: 60ch;
  margin-top: 20px;
  color: #405257;
  font-size: 16px;
  line-height: 1.7;
}

#cooperation .cooperation-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(42px, 5vw, 62px);
  border: 0;
}

#cooperation .cooperation-list article {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbdcd5;
  border-radius: 12px;
  background: #fff;
}

#cooperation .cooperation-media {
  aspect-ratio: 1.62;
  overflow: hidden;
  background: #dbe6e2;
}

#cooperation .cooperation-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cooperation .cooperation-list article:first-child img { object-position: 48% 48%; }
#cooperation .cooperation-list article:nth-child(2) img { object-position: 50% 45%; }
#cooperation .cooperation-list article:nth-child(3) img { object-position: 72% 57%; }

#cooperation .cooperation-copy {
  min-height: 190px;
  padding: clamp(26px, 2.5vw, 34px);
}

#cooperation .cooperation-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(21px, 1.7vw, 24px);
  font-weight: 650;
  line-height: 1.35;
}

#cooperation .cooperation-list p {
  max-width: 34ch;
  margin-top: 16px;
  padding-top: 0;
  color: #405257;
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 860px) {
  #cooperation .cooperation-list {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  #cooperation .cooperation-copy { min-height: 0; }
}
