.hero {
  margin-top: calc(var(--iso-h, 48px) + var(--header-h, 64px));
  padding: 0;
}

.slider {
  position: relative;
  width: 100%;
  max-width: none;
  height: min(var(--slider-height-desktop), 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #071b33;
  margin: 0 auto;
}

.slider.slider--wide {
  width: min(var(--slider-max-width), calc(100% - 32px));
  border-radius: 28px;
}

.slider.slider--contained {
  width: min(1380px, calc(100% - 48px));
  border-radius: 28px;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(7, 27, 51, calc(var(--slider-overlay) + 0.08)) 0%, rgba(7, 27, 51, calc(var(--slider-overlay) - 0.08)) 46%, rgba(7, 27, 51, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 27, 51, 0.05) 0%, rgba(7, 27, 51, 0.22) 100%);
}

.slider[data-transition="flyin"] .slide.active { animation: heroFlyIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.slider[data-transition="fade"] .slide.active { animation: heroFade 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.slider[data-transition="zoom"] .slide.active { animation: heroZoom 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.slider[data-transition="slide-up"] .slide.active { animation: heroSlideUp 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.slider[data-transition="drift"] .slide.active { animation: heroDrift 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.slider[data-transition="reveal"] .slide.active { animation: heroReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }

.slide .content {
  position: relative;
  z-index: 2;
  padding: 28px 34px 52px 0;
  max-width: min(calc(var(--slider-content-width) + 300px), calc(100% - 150px));
  top: 50%;
  left: var(--slider-content-offset-x);
  transform: translateY(calc(-50% + var(--slider-content-offset-y)));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(11, 110, 253, 0.16);
  border: 1px solid rgba(11, 110, 253, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.05rem, 3.95vw, 4rem);
  line-height: 0.96;
  margin: 14px 0 10px;
  color: #fff;
  max-width: 17ch;
  opacity: 0;
  text-wrap: balance;
}

.slide p {
  font-size: 1.04rem;
  line-height: 1.8;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.96);
  max-width: 54ch;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  justify-content: flex-start;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-width: 142px;
}

.hero-button.primary {
  background: linear-gradient(135deg, #0b6efd, #38b6c7);
  color: #fff;
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-button:hover {
  transform: translateY(-2px);
}

.slide .tag.animate { animation: fadeInUp 0.8s forwards; }
.slide h1.animate { animation: fadeInLeft 0.95s forwards 0.12s; }
.slide p.animate { animation: fadeInRight 0.95s forwards 0.28s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroFlyIn { from { opacity: 0; transform: scale(1.02) translateX(28px); } to { opacity: 1; transform: scale(1) translateX(0); } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroZoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes heroSlideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroDrift { from { opacity: 0; transform: translateX(-22px) scale(1.01); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes heroReveal { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.controls {
  position: absolute;
  bottom: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.42;
  border: none;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background: #0b6efd;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 20px;
  z-index: 6;
  backdrop-filter: blur(10px);
}

.arrow:hover {
  background: rgba(11, 110, 253, 0.92);
  color: #fff;
  border-color: rgba(11, 110, 253, 0.75);
}

.arrow.left { left: 18px; }
.arrow.right { right: 18px; }

.social-bar {
  position: absolute;
  top: var(--slider-social-top);
  right: clamp(64px, 8vw, 120px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 7;
}

.social-bar .kennext-social-link {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .slider {
    height: min(var(--slider-height-tablet), 68vh);
    min-height: 480px;
  }

  .slide .content {
    left: clamp(28px, 5vw, 64px);
    max-width: min(calc(var(--slider-content-width) + 240px), calc(100% - 140px));
    padding-bottom: 40px;
  }

  .slide h1 {
    font-size: clamp(2.1rem, 4vw, 3.6rem);
  }

  .social-bar {
    right: clamp(28px, 5vw, 56px);
  }
}

@media (max-width: 768px) {
  .slider {
    height: var(--slider-height-mobile);
    min-height: 380px;
    border-radius: 0 !important;
    width: 100% !important;
  }

  .slide .content {
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
    padding: 20px 10px 24px 0;
  }

  .slide h1 {
    max-width: 12ch;
    font-size: clamp(1.8rem, 6.2vw, 2.45rem);
    line-height: 1.03;
  }

  .slide p {
    font-size: 15px;
  }

  .arrow {
    display: none;
  }

  .social-bar {
    display: none;
  }
}

@media (max-width: 480px) {
  .slide .content {
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }

  .slide h1 {
    font-size: 1.7rem;
    line-height: 1.08;
  }

  .slide p {
    font-size: 14px;
  }

  .tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  .hero-actions {
    gap: 10px;
    justify-content: flex-start;
  }

  .hero-button {
    min-height: 40px;
    padding: 9px 15px;
    font-size: 0.9rem;
    min-width: 0;
  }
}
