/* Image slider shared by the 3D hull + CFD page and the homepage offer.
   Dark frame on any page. Works as a swipe strip without slider.js. */
.hs {
  --hs-bg: #0b1018;
  --hs-ink: #f4f1ea;
  --hs-muted: #a8a29a;
  --hs-rule: #343a44;
  --hs-copper: var(--copper, #ea7a2e);
  --hs-accent: #fdba74;
  position: relative;
  background: var(--hs-bg);
  color: var(--hs-ink);
  border-radius: 4px;
  overflow: hidden;
}
.hs-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hs-frame {
  aspect-ratio: 2.37 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-bg);
}
.hs-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: scale(1);
  transform-origin: 50% 55%;
  transition: transform 7s ease-out, opacity 0.6s ease;
}
.hs-live .hs-slide .hs-frame img { opacity: 0.55; }
.hs-live .hs-slide.is-active .hs-frame img { opacity: 1; transform: scale(1.035); }
.hs-slide figcaption {
  padding: 12px 18px 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hs-muted);
  min-height: 4.6em;
}
.hs-slide figcaption b { color: #fff; font-weight: 600; }
.hs-tag {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-accent);
  margin-bottom: 3px;
}
.hs-ui { display: flex; align-items: center; gap: 10px; padding: 4px 18px 16px; }
.hs-ui[hidden] { display: none; }
.hs-ui button {
  appearance: none;
  font: inherit;
  color: var(--hs-ink);
  background: transparent;
  cursor: pointer;
}
.hs-prev, .hs-next, .hs-pause {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hs-rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
.hs-prev:hover, .hs-next:hover, .hs-pause:hover { border-color: var(--hs-copper); }
.hs-prev:focus-visible, .hs-next:focus-visible, .hs-pause:focus-visible, .hs-dot:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}
.hs-ui svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-pause .hs-play-icon { display: none; }
.hs-pause[aria-pressed="true"] .hs-play-icon { display: block; }
.hs-pause[aria-pressed="true"] .hs-pause-icon { display: none; }
.hs-dots { flex: 1; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.hs-dot {
  position: relative;
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
}
.hs-dot::before, .hs-dot::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  height: 4px;
  border-radius: 2px;
}
.hs-dot::before { right: 3px; background: var(--hs-rule); }
.hs-dot::after { width: 0; background: var(--hs-copper); }
.hs-dot[aria-current="true"]::before { background: #6b5a4c; }
.hs:not(.hs-run) .hs-dot[aria-current="true"]::after { width: calc(100% - 6px); }
.hs-run .hs-dot[aria-current="true"]::after { animation: hs-fill 5.2s linear forwards; }
@keyframes hs-fill { from { width: 0; } to { width: calc(100% - 6px); } }

@media (max-width: 640px) {
  .hs-slide figcaption { padding: 10px 14px 4px; font-size: 13.5px; min-height: 6.4em; }
  .hs-ui { padding: 2px 10px 12px; gap: 6px; }
  .hs-dot { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-frame img { transition: none; }
  .hs-live .hs-slide .hs-frame img, .hs-live .hs-slide.is-active .hs-frame img { opacity: 1; transform: none; }
  .hs-run .hs-dot[aria-current="true"]::after { animation: none; width: calc(100% - 6px); }
}
@media print {
  .hs { border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hs-track { display: block; overflow: visible; }
  .hs-slide { display: none; }
  .hs-slide:first-child { display: block; }
  .hs-frame img { transform: none !important; opacity: 1 !important; transition: none; }
  .hs-ui { display: none !important; }
  .hs-slide figcaption { min-height: 0; font-size: 9pt; padding: 2mm 4mm 3mm; }
}
