/* V9.6 — polished slideshow that preserves the current homepage layout */
.home-hero-shell-slider {
  padding-bottom: 12px;
}
.home-classic-slider {
  position: relative;
  min-height: 0 !important;
  height: var(--slider-height-desktop, 620px);
  overflow: hidden;
  isolation: isolate;
  background: #24332d;
}
.home-slider-stage,
.home-slider-slide {
  position: absolute;
  inset: 0;
}
.home-slider-slide {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s ease, visibility .85s ease;
}
.home-slider-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}
.home-slider-backdrop {
  position: absolute;
  inset: -28px;
  background-image: var(--slider-image);
  background-size: cover;
  background-position: var(--slider-image-position, center center);
  filter: blur(24px) saturate(.9);
  transform: scale(1.08);
  opacity: .42;
}
.home-slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--slider-image-fit, cover);
  object-position: var(--slider-image-position, center center);
}
.home-slider-overlay {
  z-index: 2;
  background: linear-gradient(90deg, rgba(20,31,28,.82) 0%, rgba(24,35,31,.60) 34%, rgba(31,42,37,.15) 68%, rgba(255,255,255,.02) 100%) !important;
}
.home-slider-content {
  z-index: 3;
  width: min(630px, 54%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(50px, 7vh, 92px) 0 clamp(76px, 8vh, 104px) clamp(30px, 4vw, 62px) !important;
}
.home-slider-content h1 {
  max-width: 11.5ch;
  font-size: clamp(46px, 5.6vw, 80px) !important;
  line-height: 1.01 !important;
  text-wrap: balance;
}
.home-slider-content p {
  max-width: 520px;
  margin: 23px 0 28px !important;
  font-size: clamp(13px, 1.15vw, 15px) !important;
  line-height: 1.75 !important;
}
.home-slider-content .home-hero-actions {
  gap: 10px;
}
.home-slider-ui {
  position: absolute;
  z-index: 6;
  right: clamp(18px, 2.5vw, 34px);
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.home-slider-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}
.home-slider-counter i {
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.55);
}
.home-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: transparent;
  transition: .25s ease;
}
.home-slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}
.home-slider-arrows {
  display: flex;
  gap: 7px;
}
.home-slider-arrow {
  width: 35px;
  height: 35px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 50%;
  background: rgba(18,28,24,.20);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(8px);
  transition: .2s ease;
}
.home-slider-arrow:hover,
.home-slider-arrow:focus-visible {
  background: rgba(255,255,255,.92);
  color: #304b3e;
  outline: none;
}
.home-slider-progress {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}
.home-slider-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: #c4dfce;
}
.home-classic-slider.is-running .home-slider-progress span {
  animation: homeSliderProgress var(--slider-delay, 6s) linear forwards;
}
@keyframes homeSliderProgress { to { transform: scaleX(1); } }
@keyframes homeSliderFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes homeSliderFadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes homeSliderZoom {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.home-classic-slider[data-text-animation="fade-up"] .is-active .home-slider-content.is-animating > * { animation: homeSliderFadeUp .72s both; }
.home-classic-slider[data-text-animation="fade-left"] .is-active .home-slider-content.is-animating > * { animation: homeSliderFadeLeft .72s both; }
.home-classic-slider[data-text-animation="zoom"] .is-active .home-slider-content.is-animating > * { animation: homeSliderZoom .72s both; }
.home-classic-slider .home-slider-content.is-animating > *:nth-child(2) { animation-delay: .08s !important; }
.home-classic-slider .home-slider-content.is-animating > *:nth-child(3) { animation-delay: .16s !important; }
.home-classic-slider .home-slider-content.is-animating > *:nth-child(4) { animation-delay: .24s !important; }

@media (max-width: 980px) {
  .home-classic-slider { height: min(var(--slider-height-desktop, 620px), calc(100svh - 80px)); min-height: 540px; }
  .home-slider-content { width: min(68%, 560px); }
  .home-slider-content h1 { font-size: clamp(42px, 6.5vw, 64px) !important; }
}
@media (max-width: 820px) {
  .home-classic-slider { height: var(--slider-height-mobile, 540px); min-height: 500px; }
  .home-slider-overlay { background: linear-gradient(90deg, rgba(18,28,24,.86), rgba(18,28,24,.59) 66%, rgba(18,28,24,.14)) !important; }
  .home-slider-content { width: min(78%, 530px); padding-left: 28px !important; padding-right: 20px !important; }
  .home-slider-ui { right: 18px; bottom: 20px; }
  .home-slider-counter { display: none; }
}
@media (max-width: 560px) {
  .home-hero-shell-slider .container { width: min(100% - 20px, 680px); }
  .home-classic-slider { height: var(--slider-height-mobile, 540px); min-height: 480px; }
  .home-slider-image { object-fit: cover; }
  .home-slider-overlay { background: linear-gradient(180deg, rgba(18,28,24,.10) 0%, rgba(18,28,24,.42) 38%, rgba(18,28,24,.90) 100%) !important; }
  .home-slider-content {
    width: 100%;
    justify-content: flex-end;
    padding: 60px 18px 72px !important;
  }
  .home-slider-content h1 {
    max-width: 10.5ch;
    font-size: clamp(36px, 11vw, 48px) !important;
  }
  .home-slider-content p {
    max-width: 36ch;
    margin: 15px 0 19px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  .home-slider-content .home-button {
    min-height: 36px;
    padding: 0 13px;
    font-size: 8px;
  }
  .home-slider-ui { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .home-slider-dots { order: 1; }
  .home-slider-arrows { order: 2; }
  .home-slider-arrow { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-slider-slide { transition: none; }
  .home-slider-content > * { animation: none !important; }
  .home-slider-progress span { animation: none !important; }
}
