/* Artrel homepage hero: three clear paths without dashboard-style tiles. */
.page-index .ps-imageslider .carousel-item {
  height: clamp(36rem, calc(100svh - 3rem), 47rem);
}

.page-index .ps-imageslider__figure {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 3rem);
  width: min(100%, 90rem);
  height: 100%;
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
}

.page-index .ps-imageslider__figure > img {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(42rem, calc(100svh - 5rem));
  height: auto;
  object-fit: contain;
  left: auto;
  transform: none;
}

.page-index .ps-imageslider__figcaption {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  right: auto;
  bottom: auto;
  left: auto;
  top: auto;
  transform: none;
}

.page-index .ps-imageslider__figcaption .h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.page-index .home-hero__lead {
  max-width: 33rem;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.5;
}

.page-index .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1.75rem;
}

.page-index .home-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.page-index .home-hero__action:hover {
  transform: translateY(-2px);
}

.page-index .home-hero__action:focus-visible {
  outline: 3px solid rgba(100, 195, 255, .8);
  outline-offset: 3px;
}

.page-index .home-hero__action--primary {
  background: var(--bs-primary, #03a9f4);
  border-color: var(--bs-primary, #03a9f4);
}

.page-index .home-hero__action--primary:hover {
  color: #fff;
  background: #218fce;
  border-color: #218fce;
}

.page-index .home-hero__action--secondary {
  background: rgba(20, 23, 29, .5);
  border-color: rgba(255, 255, 255, .55);
}

.page-index .home-hero__action--secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

.page-index .home-hero__action--tertiary {
  flex-basis: 100%;
  justify-content: flex-start;
  width: fit-content;
  min-height: 2.5rem;
  padding: .35rem .2rem;
  color: #b9ddf3;
  font-weight: 500;
}

.page-index .home-hero__action--tertiary::after {
  content: '→';
  margin-left: .45rem;
  transition: transform .18s ease;
}

.page-index .home-hero__action--tertiary:hover {
  color: #fff;
}

.page-index .home-hero__action--tertiary:hover::after {
  transform: translateX(3px);
}

@media (max-width: 767.98px) {
  .page-index .ps-imageslider .carousel-item {
    height: auto;
  }

  .page-index .ps-imageslider__figure {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: .25rem;
    height: auto;
    padding: 1.25rem 1.25rem 1.25rem;
  }

  .page-index .ps-imageslider__figcaption {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .page-index .ps-imageslider__figcaption .h1 {
    max-width: 16ch;
    margin-bottom: .55rem;
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.08;
  }

  .page-index .home-hero__lead {
    font-size: .98rem;
    line-height: 1.4;
  }

  .page-index .home-hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .55rem;
    margin-top: 1.15rem;
  }

  .page-index .home-hero__action {
    min-height: 2.9rem;
    padding: .6rem .45rem;
    font-size: .83rem;
    white-space: normal;
    text-align: center;
  }

  .page-index .home-hero__action--tertiary {
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: .25rem .5rem;
    font-size: .9rem;
  }

  .page-index .ps-imageslider__figure > img {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: min(100%, 34rem) !important;
    max-width: 100% !important;
    max-height: 100%;
  }
}

@media (max-width: 359.98px) {
  .page-index .ps-imageslider__figure {
    padding-inline: 1rem;
  }

  .page-index .ps-imageslider__figcaption .h1 {
    font-size: 1.85rem;
  }

  .page-index .home-hero__action {
    font-size: .77rem;
  }
}
