
.caro-design .hero-carousel{position:relative;min-width:0;min-height:600px;overflow:hidden;background:#132b3c;}
.caro-design .hero-carousel .hero-slide{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover;opacity:0;transition:opacity 1s ease;}
.caro-design .hero-carousel .hero-slide.active{opacity:1;}
.hero-carousel-controls{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:48px 24px 22px;background:linear-gradient(transparent,rgba(8,22,35,.8));color:white;}
.hero-slide-caption{display:block;font-size:16px;font-weight:700;margin-bottom:12px;}
.hero-carousel-buttons{display:flex;align-items:center;gap:10px;}
.hero-dot{width:10px;height:10px;padding:0;border:1px solid white;border-radius:50%;background:transparent;cursor:pointer;}
.hero-dot[aria-pressed="true"]{background:white;}
.hero-pause{margin-left:8px;padding:6px 10px;border:1px solid #ffffff99;border-radius:4px;color:white;background:#102b3dcc;font:inherit;font-size:12px;cursor:pointer;}
.hero-carousel button:focus-visible{outline:3px solid #89c9ef;outline-offset:4px;}
@media(max-width:1000px){.caro-design .hero-carousel{min-height:520px;}}
@media(max-width:700px){.caro-design .hero-carousel{min-height:320px;height:320px;}.hero-carousel-controls{padding:36px 18px 16px;}}
@media(prefers-reduced-motion:reduce){.caro-design .hero-carousel .hero-slide{transition:none;}}

.caro-design .hero-carousel .hero-slide{transition:opacity 3s ease;transform:scale(1.12);}
.caro-design .hero-carousel .hero-slide.active{animation:hero-pan-right 8s ease-out both;}
.caro-design .hero-carousel .hero-slide.active[data-motion="1"]{animation-name:hero-pan-up;}
.caro-design .hero-carousel .hero-slide.active[data-motion="2"]{animation-name:hero-pan-left;}
.caro-design .hero-carousel .hero-slide.active[data-motion="3"]{animation-name:hero-pan-down;}
@keyframes hero-pan-right{from{transform:scale(1.12) translateX(-3%)}to{transform:scale(1.12) translateX(3%)}}
@keyframes hero-pan-left{from{transform:scale(1.12) translateX(3%)}to{transform:scale(1.12) translateX(-3%)}}
@keyframes hero-pan-up{from{transform:scale(1.12) translateY(3%)}to{transform:scale(1.12) translateY(-3%)}}
@keyframes hero-pan-down{from{transform:scale(1.12) translateY(-3%)}to{transform:scale(1.12) translateY(3%)}}
@media(prefers-reduced-motion:reduce){.caro-design .hero-carousel .hero-slide,.caro-design .hero-carousel .hero-slide.active{animation:none;transition:none;transform:none;}}

/* Keep the entire buoy visible with a 5% inset on each side. */
.caro-design .hero-carousel .hero-slide[src$="buoy-home-certified.png"] {
  box-sizing: border-box;
  padding: 5%;
  background: #fff;
  object-fit: contain;
  object-position: center;
  animation: none;
  transform: none;
}

/* Blend the rotating photos into the adjoining dark copy panel. */
.caro-design.design-home .hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #15272e, #15272eb3 13%, #15272e26 39%, transparent 65%);
}
@media (max-width: 700px) {
  .caro-design.design-home .hero-carousel::after {
    background: linear-gradient(180deg, #15272e, #15272e66 20%, transparent 55%);
  }
}
