/* Curved, depth-aware galleries. Without JS, the native horizontal galleries remain usable. */
.spatial-gallery {
  isolation: isolate;
}
.spatial-gallery [data-carousel-track] {
  display: block !important;
  position: relative;
  perspective: 1200px;
  perspective-origin: 50% 32%;
  overflow: clip !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
  contain: layout;
  transition: height 0.3s ease;
}
.spatial-gallery [data-carousel-track]:active {
  cursor: grabbing;
}
.spatial-gallery [data-carousel-track] > .product-card,
.spatial-gallery [data-carousel-track] > .service {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--spatial-card-width, 32%);
  min-width: 0;
  max-width: none;
  flex: none;
  transform-origin: 50% 45%;
  backface-visibility: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 34px -20px #062a4260;
  transition: box-shadow 0.4s;
  will-change: transform;
  overflow: hidden;
}
.spatial-gallery .product-card.spatial-front,
.spatial-gallery .service.spatial-front {
  box-shadow: 0 30px 40px -24px #062a4280;
}
.spatial-gallery .product-card:hover {
  translate: none;
}
.spatial-gallery .product-card img {
  height: 260px;
  object-fit: contain;
}
.spatial-gallery .card-copy {
  padding: 24px;
}
.spatial-gallery .card-copy h3 {
  font-size: 25px;
}
.spatial-gallery .card-copy p {
  font-size: 15px;
  line-height: 1.75;
}
.spatial-gallery .card-copy .text-link {
  margin-top: 22px;
}
.spatial-gallery .service-photo img {
  height: 260px;
  object-fit: cover;
}
.spatial-gallery .service-content {
  padding: 25px;
}
.spatial-gallery .service-content h3 {
  font-size: 25px;
}
.spatial-gallery .service-content > p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.spatial-gallery .review-focus {
  display: none;
}
.spatial-gallery .service-content .text-link {
  margin-top: 20px;
}
.spatial-gallery .carousel-toolbar {
  margin-bottom: 28px;
}
.spatial-gallery .carousel-buttons button {
  box-shadow: none;
}
#products,
#services {
  overflow: clip;
}
#products .section-head,
#services .section-head {
  margin-bottom: 28px;
}
#about-bless {
  background: #fff;
  padding-block: 105px;
  overflow: clip;
}
.about-layout {
  gap: 74px;
  align-items: center;
}
.about-layout figure {
  position: relative;
  perspective: 1100px;
  padding: 14px 24px 48px 0;
}
.about-layout figure > img {
  height: 475px;
  transform: rotateY(7deg) rotateZ(-1.7deg);
  box-shadow: 0 28px 50px -30px #062a4285;
  border-radius: 20px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-layout figure:hover > img {
  transform: rotateY(0) rotateZ(0);
}
.about-stamp {
  position: absolute;
  left: 28px;
  bottom: 15px;
  background: var(--navy);
  color: white;
  padding: 21px 28px;
  border-radius: 14px;
  box-shadow: 0 18px 28px -18px #062a4270;
  display: flex;
  align-items: center;
  gap: 17px;
  z-index: 2;
}
.about-stamp strong {
  font-size: 40px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.about-stamp span {
  font-size: 13px;
  max-width: 105px;
  line-height: 1.6;
}
.about-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 165px;
  border: 7px solid white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 32px -22px #062a4280;
}
.about-layout .about-inset img {
  height: 148px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}
.about-layout h2 {
  font-size: 44px;
}
.about-layout p {
  font-size: 16px;
  line-height: 1.85;
  margin-top: 20px;
}
.about-layout .text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  border-bottom: 1px solid #8dc8e1;
  margin-top: 22px;
}
.about-visible .about-stamp {
  animation: about-float 7s ease-in-out infinite;
}
.about-layout figure:before {
  content: '';
  position: absolute;
  inset: 32px 8px 65px 16px;
  border: 1px solid #acd6e7;
  border-radius: 24px;
  transform: rotate(3deg);
  z-index: -1;
}
@keyframes about-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}
@media (max-width: 1000px) {
  .about-layout {
    gap: 36px;
  }
  .about-layout figure > img {
    height: 530px;
  }
  .about-layout h2 {
    font-size: 36px;
  }
  .about-inset {
    width: 135px;
  }
  .about-stamp {
    left: 5px;
    padding: 18px;
  }
  .about-stamp strong {
    font-size: 33px;
  }
}
@media (max-width: 700px) {
  #about-bless {
    padding-block: 55px;
  }
  .about-layout {
    gap: 32px;
  }
  .about-layout figure {
    padding: 0 15px 42px 0;
  }
  .about-layout figure > img {
    height: 320px;
  }
  .about-inset {
    width: 125px;
  }
  .about-layout .about-inset img {
    height: 110px;
  }
  .about-stamp {
    left: 14px;
    bottom: 8px;
    padding: 17px 20px;
  }
  .about-stamp strong {
    font-size: 33px;
  }
  .about-stamp span {
    font-size: 12px;
    max-width: 95px;
  }
  .about-layout h2 {
    font-size: 33px;
  }
  .spatial-gallery [data-carousel-track] {
    perspective: 850px;
  }
  .spatial-gallery .product-card img,
  .spatial-gallery .service-photo img {
    height: 225px;
  }
  .spatial-gallery .card-copy,
  .spatial-gallery .service-content {
    padding: 21px;
  }
  .spatial-gallery .card-copy h3,
  .spatial-gallery .service-content h3 {
    font-size: 24px;
  }
  .spatial-gallery .carousel-toolbar {
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-visible .about-stamp {
    animation: none;
  }
  .about-layout figure > img {
    transform: none;
  }
  .spatial-gallery [data-carousel-track] {
    transition: none;
  }
  .spatial-gallery [data-carousel-track] > .product-card,
  .spatial-gallery [data-carousel-track] > .service {
    transition: none;
    will-change: auto;
  }
}
/* Compact only the two homepage galleries, keeping their 3D movement and full copy. */
.equipment-card .service-photo {
  background: #f0f4f6;
}
.equipment-card .equipment-portrait img {
  object-fit: contain;
}
#products,
#services {
  padding-block: 60px;
}
#products .section-head,
#services .section-head {
  margin-bottom: 20px;
}
#products .carousel-toolbar,
#services .carousel-toolbar {
  margin-bottom: 18px;
}
#products .product-card img,
#services .service-photo img {
  height: 200px;
}
#products .card-copy,
#services .service-content {
  padding: 20px;
}
#products .card-copy .text-link,
#services .service-content .text-link {
  margin-top: 16px;
}
@media (max-width: 1000px) {
  #products,
  #services {
    padding-block: 48px;
  }
  #products .product-card img,
  #services .service-photo img {
    height: 190px;
  }
  #products .card-copy,
  #services .service-content {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  #products,
  #services {
    padding-block: 40px;
  }
  #products .product-card img,
  #services .service-photo img {
    height: 175px;
  }
  #products .carousel-toolbar,
  #services .carousel-toolbar {
    margin-bottom: 12px;
  }
  #products .card-copy p,
  #services .service-content > p {
    line-height: 1.65;
  }
}
