/* How a project runs, told from the client's side: a large photo and the steps on one line.
   Same grid and card surface as the portfolio and references; the open step's dot is filled. */
.steps-section {
  padding-block: var(--section-space);
  font-family: Satoshi, Arial, sans-serif;
}
.steps-heading { margin-bottom: 20px; }
.steps-heading h2 { max-width: none; font-family: Satoshi, Arial, sans-serif; font-size: clamp(34px, 3.2vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.steps-intro { max-width: none; margin: 8px 0 0; color: #a9a9a7; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }

.steps-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.steps-media, .steps { border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }

/* Photos are stacked; the open step's photo fades in. */
.steps-media { position: relative; overflow: hidden; min-height: 460px; }
.steps-media img { position: absolute; top: 10px; left: 10px; display: block; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 6px; object-fit: cover; opacity: 0; transition: opacity .7s; }
.steps-media img.is-active { opacity: 1; }
/* Návrh and Stavba show the same room from the same spot: the same crop lets one turn into the other. */
.steps-media img[data-step="navrh"], .steps-media img[data-step="stavba"] { object-position: center 45%; }
/* Zaběhnutí: keep the face looking in over the water line in frame. */
.steps-media img[data-step="zabehnuti"] { object-position: center top; }
.steps-tag { position: absolute; left: 24px; bottom: 24px; padding: 6px 11px; border-radius: 999px; background: #131415d9; color: #e9e9e4; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }

/* Numbered steps on a vertical line; each circle is centred on its step's headline. */
.steps { position: relative; margin: 0; padding: 6px 24px 6px 62px; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 35px; top: 50px; bottom: 40px; width: 1px; background: #ffffff24; }
.step { position: relative; border-bottom: 1px solid #ffffff14; counter-increment: step; }
.step:last-child { border-bottom: 0; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: -41px; top: calc(18px + 20px + clamp(19px, 1.5vw, 23px) * .6 - 14px); display: grid; place-items: center; width: 28px; height: 28px; line-height: 1; border: 1px solid #ffffff59; border-radius: 50%; background: #18191a; color: #a4a4a1; font-size: 11px; font-variant-numeric: tabular-nums; transition: background .4s, border-color .4s, color .4s; }
.is-enhanced .step::before { cursor: pointer; }
.step.is-active::before { border-color: #f5f5f0; background: #f5f5f0; color: #131415; }
.step-trigger { display: block; width: 100%; padding: 18px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.step-trigger:focus-visible { outline: 1px solid #f5f5f0; outline-offset: 4px; }
.step-label { display: block; margin-bottom: 6px; line-height: 14px; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.step-title { display: block; color: #f5f5f0; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.025em; line-height: 1.2; transition: color .4s; }
.step .step-text { max-width: none; margin: -4px 0 20px; color: #a4a4a1; font-size: 14px; line-height: 1.55; }

/* With JavaScript only the open step shows its text; without it everything stays readable. */
.is-enhanced .step:not(.is-active) .step-title { color: #8f8f8d; }
.is-enhanced .step:not(.is-active) .step-trigger:hover .step-title { color: #d6d6d1; }
.is-enhanced .step:not(.is-active) .step-text { display: none; }

/* Below 1000 px the photo goes on top in 16:9, so whole installations stay in frame. */
@media (max-width: 1000px) {
  .steps-layout { grid-template-columns: 1fr; gap: 12px; }
  .steps-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .steps-heading { margin-bottom: 18px; }
  .steps-heading h2 { font-size: 34px; }
  .steps-intro { font-size: 15px; }
  .steps-layout { gap: 10px; }
  .steps-media { border-radius: 9px; }
  .steps-media img { top: 7px; left: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
  .steps-tag { left: 17px; bottom: 17px; font-size: 9px; }
  .steps { padding: 2px 16px 2px 50px; border-radius: 9px; }
  .steps::before { left: 27px; top: 34px; bottom: 34px; }
  .step::before { left: -36px; top: calc(14px + 20px + 19px * .6 - 13px); width: 26px; height: 26px; font-size: 10px; }
  .step-trigger { padding: 14px 0; }
  .step-title { font-size: 19px; }
  .step .step-text { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .steps-media img, .step::before, .step-title { transition: none; }
}
