/* Separate layers in the 1335 × 1031 hero frame. */
.bt-home-hero__art {
  position: relative;
  z-index: 5;
  width: 100%;
  aspect-ratio: 1335 / 1031;
  overflow: visible;
  pointer-events: none;
}
.bt-home-hero__shape-slot {
  position: absolute;
  left: 49.9708%;
  top: 27.9268%;
  /* The trimmed export has less transparent padding around the shape. */
  width: 74%;
  transform: translate(-50%, -50%);
}
.bt-home-hero__motion {
  width: 100%;
  transition: transform 0.1s ease-out;
}
.bt-home-hero__shape {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-99.69deg);
}
.bt-home-hero__logo {
  position: absolute;
  z-index: 1;
  left: 32.1124%;
  top: 20.8244%;
  width: 44.4644%;
}
.bt-home-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}
/* Keep the second decorative shape independent from the content section's edge. */
.home .contbg { background-image: none; overflow: visible; isolation: isolate; }
.home .contbg::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -160px;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 2457;
  background: url("../img/oblik-pozadina.png") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bt-home-hero__motion {
    will-change: transform;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bt-home-hero__motion {
    transition: none;
  }
}
/* Reuse the desktop layers on touch screens; keep the logo readable. */
@media (max-width: 970px) {
  .bt-home-hero__art {
    margin-top: 0;
    aspect-ratio: 1.15;
  }
  .bt-home-hero__shape-slot {
    top: 40%;
  }
  .bt-home-hero__logo {
    left: 29%;
    width: 50%;
    top: 28%;
  }
  .home .hero .herobar {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: -64px auto 0;
  }
  .home .herowrap {
    flex-direction: row;
    min-height: 82px;
    height: auto;
    padding: 18px 22px;
    gap: 16px;
  }
  .home .herowrap .vllogo {
    width: 76px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
  }
  .home .contbg {
    margin-top: 32px;
    padding-top: 0;
    overflow: visible;
  }
}

@media (min-width: 971px) {
  .home .contbg {
    /* Start the background under the hero, while keeping the copy below it. */
    margin-top: calc(min(var(--layout-available), var(--layout-max)) * -0.12);
    padding-top: clamp(240px, 20.2vw, 388px);
  }
  .home .contbg::before { top: -220px; }
}

/* Figma 2002:2: 20 px between the Platform panel and the three cards. */
.home .bt-opis {
  margin-top: 0;
  margin-bottom: 0;
}
.home .bt-articles {
  margin-top: 20px;
}
