.hiw {
  font-family: var(--bk-p-family, var(--bk-font-base, 'Montserrat', ui-sans-serif, system-ui, sans-serif));
  background: linear-gradient(180deg, var(--bk-color-surface, #f6f5f3) 0%, var(--bk-color-surface, #efeeea) 100%);
  color: var(--bk-p-color, var(--bk-color-ink, #29234a));
  padding: 120px 0 128px;
  border-top: 1px solid var(--bk-color-surface, #e4e1db);
  border-bottom: 1px solid var(--bk-color-surface, #e4e1db);
  overflow: hidden;
  color-scheme: light;
}

.hiw-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
.hiw-head { max-width: 900px; margin-bottom: 56px; }
.hiw-head h2 {
  margin: 0;
  font-weight: var(--bk-h2-weight, 300);
  letter-spacing: var(--bk-h2-letter-spacing, -0.025em);
  line-height: var(--bk-h2-line-height, 1.02);
  font-size: var(--bk-h2-size, clamp(36px, 4.6vw, 64px));
}
.hiw-head h2 em { font-style: var(--bk-h2-style, normal); font-weight: var(--bk-h2-weight, 500); color: var(--bk-color-secondary, #a4ace5); }
.hiw-lede {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: var(--bk-p-size, 17px);
  line-height: var(--bk-p-line-height, 1.55);
  font-weight: var(--bk-p-weight, 400);
  color: var(--bk-p-color, var(--bk-color-ink, #534b7e));
}

/* ---------- timeline ---------- */
.hiw-timeline { position: relative; margin-top: 8px; }

/* the connecting rail sits behind the dots, spanning dot-centre
   to dot-centre (each of 7 columns is centred at 1/14 of the width) */
.hiw-rail {
  position: absolute;
  top: 9px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bk-color-secondary, #a4ace5) 0%, var(--bk-color-accent, #5d92c2) 50%, var(--bk-color-accent, #1678a0) 100%);
  z-index: 0;
}

.hiw-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiw-step { position: relative; padding: 0 6px; text-align: center; }

/* hairline divider to the right of each step (not the last) */
.hiw-step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -10px;
  bottom: 6px;
  width: 1px;
  background: var(--bk-color-surface, #e4e1db);
}
.hiw-step:last-child::after { display: none; }

.hiw-dot {
  width: 18px;
  height: 18px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--bk-color-accent, var(--c));
  box-shadow: 0 0 0 6px var(--bk-color-surface, #f1f0ec),
              0 0 0 7px color-mix(in srgb, var(--bk-color-accent, var(--c)) 22%, transparent);
  position: relative;
  z-index: 2;
}

.hiw-num {
  margin-bottom: 16px;
  font-weight: var(--bk-p-weight, 200);
  font-size: var(--bk-p-size, 52px);
  line-height: var(--bk-p-line-height, 0.92);
  letter-spacing: var(--bk-p-letter-spacing, -0.035em);
  font-variant-numeric: tabular-nums;
}

.hiw-label {
  margin-bottom: 12px;
  font-size: var(--bk-overline-size, 10.5px);
  font-weight: var(--bk-overline-weight, 600);
  letter-spacing: var(--bk-overline-letter-spacing, 0.2em);
  text-transform: var(--bk-overline-transform, uppercase);
  color: var(--bk-color-accent, var(--c));
}

.hiw-step h3 {
  margin: 0 0 13px;
  font-weight: var(--bk-h3-weight, 600);
  font-size: var(--bk-h3-size, 16px);
  letter-spacing: var(--bk-h3-letter-spacing, -0.012em);
  line-height: var(--bk-h3-line-height, 1.22);
  text-wrap: balance;
}

.hiw-step p {
  margin: 0;
  font-size: var(--bk-p-size, 13px);
  line-height: var(--bk-p-line-height, 1.62);
  font-weight: var(--bk-p-weight, 400);
  color: var(--bk-color-secondary, #6b6588);
  text-wrap: pretty;
}

/* ---------- responsive ----------
   The continuous rail only reads on a single row, so once the
   steps wrap we drop the rail and the right-hand dividers and
   let the steps flow into a tidy auto-fit grid. */
@media (max-width: 1000px) {
  .hiw { padding: 90px 0 96px; }
  .hiw-rail { display: none; }
  .hiw-step::after { display: none; }
  .hiw-steps {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 24px;
  }
}

@media (max-width: 520px) {
  .hiw-steps { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- per-step accent colours ---------- */
.hiw-step:nth-child(1) { --c: var(--bk-color-secondary, #a4ace5); }
.hiw-step:nth-child(2) { --c: var(--bk-color-accent, #8ca3d9); }
.hiw-step:nth-child(3) { --c: var(--bk-color-accent, #759bce); }
.hiw-step:nth-child(4) { --c: var(--bk-color-accent, #5d92c2); }
.hiw-step:nth-child(5) { --c: var(--bk-color-accent, #4689b7); }
.hiw-step:nth-child(6) { --c: var(--bk-color-accent, #2f80ab); }
.hiw-step:nth-child(7) { --c: var(--bk-color-accent, #1678a0); }
