.order-process {
  --process-guide: calc(max(0px, (100% - 1600px) / 2) + 46px);
  --process-tilt: 17deg;
  --process-card-size: 412px;
  --process-photo-size: calc(var(--process-card-size) * .44);
  --process-photo-bleed: calc((var(--process-photo-size) + 16px) * tan(var(--process-tilt)) / 2);
  --process-spread: calc(var(--process-card-size) * tan(var(--process-tilt)) / 2);
  --process-gap: 22px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 56px 0 42px;
  background: var(--milk);
}
.order-process::before,
.order-process::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
}
.order-process::before {
  inset: 0;
  z-index: -3;
  opacity: .75;
  background: url("assets/images/process/05-waves.webp") center / 100% 100% no-repeat;
}
.order-process-construction {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto auto;
  width: min(52%, 845px);
  height: auto;
  opacity: .8;
  mask-image: linear-gradient(to right, transparent, #000 48%),
              linear-gradient(to bottom, #000 54%, transparent);
  mask-composite: intersect;
}
.order-process::after {
  z-index: -1;
  inset: clamp(95px, 8.2vw, 125px) 2% auto auto;
  width: min(45%, 720px);
  aspect-ratio: 960 / 150;
  background: url("assets/images/process/07-route.svg") right top / contain no-repeat;
}
.order-process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .66fr) minmax(0, 1.06fr);
  align-items: center;
  column-gap: 26px;
  padding-inline: var(--process-guide);
}
.order-process-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--petrol);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.order-process-kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: #55807d;
}
.order-process h2 {
  color: var(--petrol);
  font-size: clamp(44px, 3.34vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: initial;
}
.order-process h2 em {
  color: #37696b;
  font-style: normal;
}
.order-process-intro {
  position: relative;
  max-width: 290px;
  padding: 0 0 0 28px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
.order-process-intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: #55807d;
  transform: skewX(-17deg);
}
.order-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--process-gap);
  width: min(100%, 1600px);
  margin: 48px auto 0;
  padding: 0 calc(var(--process-spread) + 10px);
  list-style: none;
}
.order-process-step {
  position: relative;
  min-height: var(--process-card-size);
  padding-top: var(--process-photo-size);
}
.order-process-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 22px;
  box-shadow: 0 10px 24px #123e431a;
  transform: skewX(calc(-1 * var(--process-tilt)));
  background: #fff;
}
.order-process-card::after {
  content: "";
  position: absolute;
  inset: calc(var(--process-photo-size) - 2px) 0 0;
  border-radius: 22px 0 0;
  background: #fff;
}
.order-process .order-process-card img {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--process-photo-bleed));
  width: calc(100% + 2 * var(--process-photo-bleed));
  max-width: none;
  height: calc(var(--process-photo-size) + 16px);
  object-fit: cover;
  object-position: center var(--process-photo-focus, 50%);
  transform: skewX(var(--process-tilt));
}
.order-process-step:nth-child(1) { --process-photo-focus: 65%; }
.order-process-step:nth-child(2) { --process-photo-focus: 32%; }
.order-process-step:nth-child(3) { --process-photo-focus: 78%; }
.order-process-step:nth-child(4) { --process-photo-focus: 68%; }
.order-process-copy {
  position: relative;
  padding: 11px calc(4px + var(--process-spread)) 26px 23px;
}
.order-process-number {
  display: block;
  margin-bottom: 6px;
  color: var(--petrol);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.order-process-copy h3 {
  max-width: 12ch;
  min-block-size: 2lh;
  color: #172c2e;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}
.order-process-copy p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: normal;
}
.order-process-copy p::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 8px 0;
  background: #55807d;
}
.order-process-arrow {
  position: absolute;
  z-index: 1;
  top: 64%;
  inset-inline-end: calc(var(--process-spread) * .28 - var(--process-gap) / 2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: url("assets/images/process/08-arrow.svg") center / contain no-repeat;
  box-shadow: 0 4px 12px #123e4322;
  translate: 50% -50%;
  pointer-events: none;
}

@media (min-width: 1191px) {
  .order-process-copy p { max-inline-size: 218px; }
  .order-process-step:nth-child(3) .order-process-copy p { max-inline-size: 185px; }
}
@media (max-width: 1190px) {
  .order-process { --process-tilt: 12deg; --process-card-size: 378px; }
  .order-process-heading { grid-template-columns: minmax(330px, 1fr) minmax(0, .66fr) minmax(0, 1.34fr); }
  .order-process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1030px; }
  .order-process-step:nth-child(2) .order-process-arrow { display: none; }
}
@media (max-width: 1120px) {
  .order-process { --process-guide: 35px; }
}
@media (max-width: 775px) {
  .order-process { --process-guide: 12px; }
  .order-process-heading { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 16px; }
  .order-process h2 { font-size: clamp(34px, 5.1vw, 44px); }
  .order-process-construction { opacity: .65; }
  .order-process::after { opacity: .46; }
}
@media (max-width: 620px) {
  .order-process {
    --process-gap: 10px;
    --process-marker-size: 37px;
    --process-marker-gap: 8px;
    --process-rail: calc(var(--process-marker-size) + var(--process-marker-gap));
    --process-mobile-inset: 15px;
    padding: 20px 12px 32px;
  }
  .order-process::before {
    inset-inline: 5%;
    border-radius: 0 16px 16px 0;
    background:
      url("assets/images/services/diagonal-decor.svg") right -15px bottom -35px / 136px no-repeat,
      url("assets/images/process/05-waves.webp") right center / 130% 100% no-repeat;
    mask-image: linear-gradient(110deg, transparent 6%, #000 62%), linear-gradient(to bottom, transparent 2%, #000 25%);
    mask-composite: intersect;
  }
  .order-process-construction { inset-inline-end: 5%; width: 61%; }
  .order-process::after { top: 57px; inset-inline-end: 5%; width: 50%; opacity: .8; }
  .order-process-heading {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding-inline: var(--process-mobile-inset);
  }
  .order-process-kicker { gap: 9px; margin-bottom: 0; font-size: 9px; }
  .order-process-kicker::after { width: 24px; }
  .order-process h2 { font-size: 25px; }
  .order-process h2 em { display: block; color: inherit; }
  .order-process-intro { max-width: 29ch; padding-inline-start: 14px; font-size: 12px; }
  .order-process-intro::before { inset-inline-start: 2px; }

  .order-process-steps {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    margin-top: 17px;
    padding: 0 var(--process-mobile-inset) 0 calc(var(--process-mobile-inset) + var(--process-rail));
  }
  .order-process-steps::before {
    content: "";
    position: absolute;
    inset: -11px auto 0 calc(var(--process-mobile-inset) + var(--process-marker-size) / 2);
    border-inline-start: 1px dashed var(--petrol);
  }
  .order-process-step { min-height: 0; padding: 0; }
  .order-process-card {
    border-radius: 15px;
    transform: none;
    box-shadow: 0 7px 16px #123e4314;
  }
  .order-process-card::after { display: none; }
  .order-process .order-process-card img {
    inset: 0 0 0 auto;
    width: 63%;
    height: 100%;
    transform: none;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: shape(from 23% 0, line to 100% 0, line to 100% 100%, line to 5% 100%,
      curve to 1% 93% with 1% 100% / 0 97%, line to 16% 12%,
      curve to 23% 0 with 17% 5% / 20% 0, close);
  }
  .order-process-copy {
    width: 44%;
    padding: 10px 9px 10px 13px;
  }
  .order-process-number {
    position: absolute;
    inset: 15px auto auto calc(-1 * var(--process-rail));
    display: grid;
    place-items: center;
    width: var(--process-marker-size);
    height: var(--process-marker-size);
    margin: 0;
    border-radius: 50%;
    background: var(--mint);
    font-size: 18px;
  }
  .order-process-copy h3 { max-width: none; min-block-size: 0; color: var(--petrol); font-size: 17px; }
  .order-process-copy p { padding-inline-end: 8px; font-size: 12px; line-height: 1.3; }
  .order-process-copy p::before { width: 25px; height: 1px; margin: 7px 0; background: var(--petrol); }
  .order-process-step .order-process-arrow { display: none; }
}

@media (max-width: 359px) {
  .order-process { --process-marker-size: 32px; --process-marker-gap: 7px; --process-mobile-inset: 8px; }
  .order-process h2 { font-size: 23px; }
  .order-process .order-process-card img { width: 57%; }
  .order-process-copy { width: 48%; padding-inline: 10px 10px; }
  .order-process-number { font-size: 17px; }
  .order-process-copy h3 { font-size: 15px; }
  .order-process-copy p { padding-inline-end: 0; }
}
