/* Architectural illustrations can be images, inline SVGs, or figure wrappers. */
.service-types .service-type > .service-scene {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 180px;
  margin: 0 0 23px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgb(92 120 77 / 20%);
  border-radius: 0;
}
.service-scene > :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* A fine inset frame ties the story photograph to the architectural linework. */
.story-section .image-panel { isolation: isolate; }
.story-section .image-panel::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 11px;
  border: 1px solid rgb(255 249 233 / 65%);
  border-radius: 8px 64px 8px 8px;
  pointer-events: none;
}
.story-section .image-panel .image-badge { z-index: 3; }

/* Add ace-process to the section and a process-icon before each step number. */
.ace-process .steps-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.ace-process .steps-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 46px;
  left: 46px;
  right: calc(33.333% - 78px);
  height: 1px;
  background: linear-gradient(90deg, #c58c58, #6c8a63 35%, #6c8a63 70%, #c58c58);
}
.ace-process .step {
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}
.ace-process .process-icon {
  display: block;
  width: 92px;
  max-width: 100%;
  height: 92px;
  margin: 0 0 25px;
  object-fit: contain;
}
.ace-process .process-icon > :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
}
.ace-process .step-number {
  display: block;
  margin-bottom: 12px;
  color: #efa26c;
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .08em;
}
.ace-process .step h3 { max-width: 285px; }
.ace-process .step p { max-width: 350px; }

@media (max-width: 900px) {
  .ace-process .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .ace-process .steps-grid::before { content: none; }
  .ace-process .step {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 24px;
    align-content: start;
  }
  .ace-process .step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 70px;
    bottom: -32px;
    left: 35px;
    width: 1px;
    background: #68875f;
  }
  .ace-process .process-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 70px;
    height: 70px;
    margin: 0;
  }
  .ace-process .step-number { grid-column: 2; margin-top: 3px; margin-bottom: 9px; }
  .ace-process .step h3 { grid-column: 2; max-width: 100%; margin-bottom: 12px; }
  .ace-process .step p { grid-column: 2; max-width: 560px; margin-bottom: 0; }
}
@media (max-width: 480px) {
  .service-types .service-type > .service-scene { margin-bottom: 18px; }
  .ace-process .step { grid-template-columns: 58px minmax(0, 1fr); column-gap: 17px; }
  .ace-process .process-icon { width: 58px; height: 58px; }
  .ace-process .step:not(:last-child)::after { top: 58px; left: 29px; }
  .ace-process .step-number { font-size: .87rem; }
  .ace-process .step h3 { font-size: 1.4rem; }
  .story-section .image-panel::after { inset: 8px; border-radius: 6px 54px 6px 6px; }
}
