/* ==========================================================================
   Desktop: bigger HEADINGS only (section labels and section titles). Body text, buttons, lists,
   footer and everything else keep their original sizes.
   Phones/tablets: a connected Process timeline. Loaded last.
   ========================================================================== */

/* ---------- Desktop and tablet-landscape: headings only ---------- */
@media (min-width: 901px) {
  /* section labels such as "Services", "Full portfolio", "Process" */
  .tag { font-size: clamp(1.1rem, 1.3vw, 1.4rem); }
  .mark { margin-right: .6em; }

  /* section titles */
  .about__title { font-size: clamp(3.6rem, 8.4vw, 9rem); }
  .row__t { font-size: clamp(3.4rem, 6.4vw, 7.4rem); }
  .works__label { font-size: clamp(1.9rem, 3.5vw, 3.8rem); }
  .portfolio__h { font-size: clamp(3.6rem, 7.8vw, 8.6rem); }
  .process__lede { font-size: clamp(2.2rem, 4.2vw, 4.8rem); max-width: 22ch; }
  .track__h { font-size: clamp(3.6rem, 8.4vw, 9rem); }
  .cta__h { font-size: clamp(3.8rem, 9.4vw, 10rem); }
}

/* ---------- Phones and portrait tablets: a connected Process timeline ---------- */
@media (max-width: 900px) {
  .process { padding-top: 4.2rem; padding-bottom: 4rem; }
  .process__top { flex-direction: column-reverse; align-items: flex-start; gap: 1.1rem; }
  .process__lede { font-size: clamp(1.9rem, 7.6vw, 2.8rem); max-width: 18ch; line-height: 1.08; }

  .process__grid { margin-top: 2.4rem; padding: 0 0 0 28px; border-bottom: 0; gap: 0; }
  /* the rail */
  .process__grid::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: 28px; width: 1px; background: var(--line); transform-origin: top; transform: scaleY(0); transition: transform 1.8s var(--ease) .2s; }
  .process__grid.is-in::before { transform: none; }

  .step { padding: 0 0 2.8rem 0; transform: translateY(18px); }
  .process__grid.is-in .step { transform: none; }
  .step:last-of-type { padding-bottom: 0; }
  /* the node on the rail, level with each step title */
  .step::before { content: ""; position: absolute; left: -28px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); box-sizing: border-box; }
  .step h3 { font-size: 1.08rem; padding: .8rem 1.1rem; }
  .step p { margin-top: .9rem; font-size: 1rem; max-width: none; }
  .step figure { margin-top: 1.1rem; aspect-ratio: 16 / 10; }
}
