/*
 * 04 / HOW TO USE — typography-led refinement.
 * The module stays image-free; hierarchy and proximity carry the rhythm.
 */

@media (min-width: 721px) {
  .how-v9-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .how-v9-steps li {
    position: relative;
    display: grid;
    min-height: clamp(196px, 13.5vw, 238px);
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(14px, 1.25vw, 24px);
    row-gap: clamp(24px, 2vw, 34px);
    align-content: start;
    align-items: start;
    padding: clamp(26px, 2vw, 38px) clamp(20px, 2vw, 36px)
      clamp(28px, 2.1vw, 40px);
    border: 0;
    border-right: 1px solid var(--line);
  }

  .how-v9-steps li:last-child {
    border-right: 0;
  }

  .how-v9-steps span {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--clay);
    font-family: var(--display);
    font-size: clamp(44px, 3.35vw, 64px);
    font-weight: 780;
    line-height: 0.8;
    letter-spacing: -0.055em;
  }

  .how-v9-steps h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 1.85vw, 35px);
    font-weight: 720;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .how-v9-steps p {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    max-width: 29ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px, 0.96vw, 18px);
    font-weight: 480;
    line-height: 1.44;
  }
}

@media (max-width: 720px) {
  .how-v9-steps li {
    display: grid;
    min-height: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 9px 14px;
    padding: 23px 0 25px;
  }

  .how-v9-steps span {
    grid-column: 1;
    grid-row: 1 / span 2;
    color: var(--clay);
    font-family: var(--display);
    font-size: 34px;
    font-weight: 780;
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  .how-v9-steps h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 28px;
    line-height: 0.98;
  }

  .how-v9-steps p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.48;
  }
}
