/* Home pictures: hero background, service cards, case visuals, process panels, stack and project frames.
   Compound selectors win over the section style blocks that follow this file. */

/* Hero: the workshop picture sits behind the copy, darkened so the headline reads on it. */
.st-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.st-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* A dark veil from the left and the bottom edge keeps the headline and the glass plates legible. */
.st-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(31 32 36 / .92) 0%, rgb(31 32 36 / .62) 42%, rgb(31 32 36 / .12) 78%, rgb(31 32 36 / .3) 100%),
    linear-gradient(0deg, rgb(31 32 36 / .96) 0%, rgb(31 32 36 / .55) 34%, transparent 62%);
}

.st-hero__grid {
  position: relative;
  z-index: 1;
}

/* Services: each card opens onto a 4:3 picture with its label and word on top. */
.st-services__card.st-services__card--art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.st-services__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-services__card--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(31 32 36 / .55), rgb(31 32 36 / .15) 35%, rgb(31 32 36 / .88));
}

/* Possible orders: a 4:3 picture opens with each case. */
.st-examples__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.st-examples__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stack: a faint line texture behind the pinned routes. */
.st-stack__pin > .wrap {
  position: relative;
  z-index: 1;
}

.st-stack__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
  pointer-events: none;
}

/* Process: each step panel is a 3:4 picture with its text on the lower part. */
.st-process__panel.st-process__panel--art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(380px, 78vw);
  min-height: 540px;
}

.st-process__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-process__panel--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(31 32 36 / .1), rgb(31 32 36 / .35) 40%, rgb(31 32 36 / .92) 78%);
}

/* Projects: a 4:3 abstract frame behind the wordmark. */
.st-tcard.st-tcard--art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.st-tcard__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-tcard--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(31 32 36 / .2), rgb(31 32 36 / .75));
}

@media (max-width: 809.98px) {
  .st-hero__bg img {
    object-position: 68% 50%;
  }

  .st-hero__bg::after {
    background: linear-gradient(180deg, rgb(31 32 36 / .3) 0%, rgb(31 32 36 / .72) 42%, rgb(31 32 36 / .96) 78%);
  }

  .st-process__panel.st-process__panel--art {
    width: min(340px, 80vw);
    min-height: 460px;
  }
}
