/* Swiper hooks coexist with BEM component classes; no page is a fixed canvas. */
.site-carousel {
  display: block;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  overflow: hidden;
  scroll-snap-type: none;
}
.site-carousel > .site-carousel__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: auto;
  gap: 0;
}
.site-carousel__slide {
  flex-shrink: 0;
  height: auto;
  min-width: 0;
}
.site-carousel.swiper-autoheight > .site-carousel__track {
  align-items: flex-start;
}
.site-carousel:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 4px;
}
.home-hero__media.site-carousel {
  margin: 0;
  max-width: none;
}
.home-hero__media.site-carousel > .site-carousel__track,
.home-hero__media .site-carousel__slide {
  height: 100%;
}
.home-products__grid .site-carousel__slide {
  width: calc((100% - 3.75rem) / 4);
}
.home-service__gallery.site-carousel {
  max-width: none;
}
.home-service__slide {
  width: min(42.5rem, 100%);
}
.home-service__slide img {
  width: 100%;
  height: 26.25rem;
}
.home-industry__slide {
  position: relative;
  isolation: isolate;
}
.home-industry__slides.site-carousel {
  margin: 0;
}
.home-industry__slide .home-industry__media {
  z-index: -1;
}
.home-industry__slide .home-industry__details > .text-link {
  margin-top: 2rem;
}
.new-products.site-carousel .site-carousel__slide {
  width: min(58.75rem, calc(100vw - 4rem));
}
.flow-certificates.site-carousel .site-carousel__slide {
  flex-basis: auto;
}
.product-overview__photo .site-carousel__slide {
  display: grid;
  place-items: center;
}
.product-overview__thumbs button[aria-current="true"] {
  outline: 0;
  border-color: var(--home-gold);
}
.manufacturing-gallery__track .site-carousel__slide.flow-split {
  flex-basis: auto;
}
.case-scenarios__track .case-panel {
  margin: 0;
}
/* Dragging a slide must not turn into an accidental link activation. */
.site-carousel.swiper-initialized img {
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 1000px) {
  .home-service__gallery.site-carousel {
    width: 100%;
  }
}
@media (max-width: 540px) {
  .home-service__slide img {
    height: 18rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-carousel .site-carousel__track,
  .site-carousel .site-carousel__slide {
    transition-duration: 0ms !important;
  }
}
/* Swiper's auto margins must not shrink the gallery to the image's width. */
.product-overview__photo.site-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
}
.product-overview__photo.site-carousel > .site-carousel__track,
.product-overview__photo .site-carousel__slide {
  min-height: 0;
}
/* Keep the full-bleed Swiper behind the banner's links and controls. */
.home-hero__media.site-carousel {
  z-index: 0;
}
.home-hero__shade {
  z-index: 1;
  pointer-events: none;
}
.home-hero__content,
.home-hero__controls,
.home-hero__timeline {
  z-index: 2;
}
.manufacturing-gallery > .design-slider,
.cloud-scenarios > .design-slider,
.case-scenarios > .design-slider {
  z-index: 2;
}

/* The home showcase displays complete cards and keeps its navigation in a footer. */
.home-products__footer { display: flex; align-items: center; gap: 2rem; margin-top: 2rem; }
.home-products__footer .home-products__progress { flex: 1; margin: 0; height: 2px; }
.home-products__progress span { transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.home-products__controls { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.home-products__count { display: flex; gap: 0.5rem; align-items: baseline; margin-right: 0.75rem; font: 500 0.875rem/1.5 Arial, sans-serif; }
.home-products__count > span { opacity: 0.5; }
.home-products__count b { font-size: 1.125rem; font-weight: 500; }
.home-products__controls button {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  padding: 0; border: 1px solid #ffffff60; border-radius: 50%;
  color: #fff; background: transparent; transition: background-color 250ms ease, border-color 250ms ease;
}
.home-products__controls button:hover { background: var(--home-gold); border-color: var(--home-gold); }
.home-products__arrow { width: 1.125rem; height: 0.75rem; background: currentColor; mask: url('../img/design-arrow-right.svg') center / contain no-repeat; }
.home-products__arrow--prev { transform: rotate(180deg); }
.home-products__grid.site-carousel { padding-bottom: 2px; }
.home-product__image { overflow: hidden; }
.home-product:nth-child(4n) .home-product__image img { height: 12.6875rem; }
.interior-page--products #new-products .new-products__feature h2 {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  line-height: 1.35;
  max-width: 100%;
  color: #fff;
}
.new-products__feature--light { background: linear-gradient(135deg, #f0ece4, #fafaf8 70%); color: #292929; }
.interior-page--products #new-products .new-products__feature--light h2 { color: #292929; }
.new-products__feature--light .new-products__label { background: #fff; color: #997329; }
.new-products__feature--light .new-products__visual {
  justify-self: end; margin-right: 2rem; padding: 1.5rem;
  transform: none;
  background: transparent;
}
.new-products__feature--light .new-products__visual img { height: 15rem; }
.new-products__feature--light .new-products__link .flow-button { background: #ffffffc0; color: #292929; }
.home-product__image img { transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .home-product:hover .home-product__image img { transform: translateY(-3px) scale(1.035); }
}
.site-carousel > .site-carousel__track { transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
.carousel-playback {
  position: absolute; z-index: 5; top: 0.875rem; right: 0.875rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid #0000000d !important; border-radius: 50%;
  color: #333; background: #fffffff0; backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px #00000008;
}
.carousel-playback::before { content: ""; width: 0.625rem; height: 0.75rem; border-inline: 2px solid currentColor; box-sizing: border-box; }
.carousel-playback.is-paused::before { width: 0; height: 0; margin-left: 2px; border: 0; border-left: 0.625rem solid currentColor; border-block: 0.375rem solid transparent; }
.carousel-playback:hover { background: #fff; color: #997329; }
.home-products__controls .carousel-playback {
  position: static; background: transparent; color: #fff; box-shadow: none;
  border-color: #ffffff60 !important; backdrop-filter: none;
}
.home-products__controls .carousel-playback:hover { background: var(--home-gold); border-color: var(--home-gold) !important; }
.carousel-playback:focus-visible { outline: 2px solid var(--home-gold); outline-offset: 3px; }
.home-industry__slide .home-industry__inner { min-height: 0; }
@media (max-width: 640px) {
  .new-products__feature--light .new-products__visual { margin-right: 0; padding: 1rem; }
  .new-products__feature--light .new-products__visual img { height: 13rem; }
  .home-products__footer { gap: 1rem; margin-top: 1.5rem; }
  .home-products__controls { gap: 0.5rem; }
  .home-products__count { margin-right: 0.25rem; }
  .home-products__controls button { width: 2.75rem; height: 2.75rem; }
  .carousel-playback { top: 0.625rem; right: 0.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-playback { display: none; }
  .home-products__progress span,
  .home-product__image img { transition: none; }
}
