/* Homepage six-stage implementation journey: clear sequence with expressive stage numbers. */
/* Numbered stages with centered icon tiles. */
.home .fws-implementation-grid > .fws-implementation-step .fws-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}
.home .fws-implementation-grid > .fws-implementation-step .fws-step-icon {
  justify-content: center;
  margin: 0;
}
.home .fws-implementation-grid > .fws-implementation-step .fws-step-sequence {
  display: inline-block;
  color: #A87519;
  font: 700 clamp(34px, 3vw, 44px)/.95 var(--font-heading);
  letter-spacing: -.045em;
  transform-origin: center;
  transition: transform .32s cubic-bezier(.2,.75,.25,1), color .32s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home .fws-implementation-grid > .fws-implementation-step:hover .fws-step-sequence {
    color: #80520A;
    transform: translate(-4px, -3px) rotate(-7deg) scale(1.12);
  }
}

.home .fws-implementation-grid {
  --journey-accent: #A87519;
  --journey-line: #C99A4A;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 54px;
  margin-top: 46px !important;
}
.home .fws-implementation-grid > .fws-implementation-step {
  position: relative;
  min-width: 0;
  min-height: 100%;
  border: 1px solid #D8C9B8;
  border-radius: 20px;
  background: #FCFAF6;
  box-shadow: 0 4px 13px rgba(50,32,12,.07);
  transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease, border-color .3s ease;
}
.home .fws-implementation-grid > .fws-implementation-step .fws-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0;
  border: 1px solid #E6D7BD;
  border-radius: 16px;
  background: #F7EEDC;
  color: #94620F;
}
.home .fws-implementation-grid > .fws-implementation-step .fws-step-icon svg {
  width: 32px;
  height: 32px;
}
.home .fws-implementation-grid > .fws-implementation-step h3 {
  margin: 0 0 12px;
  color: #32200C;
  font: 700 clamp(22px, 1.8vw, 25px)/1.22 var(--font-heading);
}
.home .fws-implementation-grid > .fws-implementation-step p {
  margin: 0;
  color: #3F3022;
  font: 500 16px/1.65 var(--font-body);
}
/* Horizontal connectors follow the first three stages and the final three stages. */
.home .fws-implementation-grid > .fws-implementation-step:nth-child(1)::after,
.home .fws-implementation-grid > .fws-implementation-step:nth-child(2)::after,
.home .fws-implementation-grid > .fws-implementation-step:nth-child(4)::after,
.home .fws-implementation-grid > .fws-implementation-step:nth-child(5)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  transform: translateY(-50%);
  color: var(--journey-accent);
  font: 700 30px/1 var(--font-body);
  text-shadow: 0 1px 0 #FCFAF6;
  pointer-events: none;
}
/* No connector between Decide and Design: the row break is intentional. */
.home .fws-implementation-grid > .fws-implementation-step:focus-visible {
  outline: 3px solid #94620F;
  outline-offset: 4px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home .fws-implementation-grid > .fws-implementation-step {
    transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease, border-color .3s ease;
  }
  .home .fws-implementation-grid > .fws-implementation-step:hover {
    transform: translateY(-6px);
    border-color: #B88A3A;
    box-shadow: 0 16px 30px rgba(50,32,12,.18), 0 4px 9px rgba(50,32,12,.08);
  }
  .home .fws-implementation-grid > .fws-implementation-step:hover .fws-step-icon {
    background: #F3E4C6;
  }
  .home .fws-implementation-grid > .fws-implementation-step:hover .fws-step-icon svg {
    transform: scale(1.08);
  }
  .home .fws-implementation-grid .fws-step-icon svg {
    transition: transform .28s ease;
  }
}
@media (max-width: 900px) {
  .home .fws-implementation-grid {
    grid-template-columns: minmax(0,1fr);
    max-width: 720px;
    margin-inline: auto;
    row-gap: 42px;
  }
  .home .fws-implementation-grid > .fws-implementation-step:nth-child(4)::before {
    content: none;
  }
  .home .fws-implementation-grid > .fws-implementation-step::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -39px;
    width: 30px;
    height: 30px;
    transform: translateX(50%);
    font-size: 27px;
  }
  .home .fws-implementation-grid > .fws-implementation-step:last-child::after {
    content: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .fws-implementation-grid > .fws-implementation-step,
  .home .fws-implementation-grid .fws-step-icon svg {
    transition: none !important;
  }
  .home .fws-implementation-grid > .fws-implementation-step:hover {
    transform: none !important;
  }
}