* { box-sizing: border-box; }
.hero-slider {
  position: relative; width: 100%; height: min(780px, 88vh); min-height: 520px;
  overflow: hidden; isolation: isolate; background: #dff6ff; color: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

/* Bright premium atmosphere: soft cyan bloom and gentle glass highlights */
.hero-slider::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 22%, rgba(125, 235, 255, .24), transparent 34%),
    radial-gradient(ellipse at 95% 75%, rgba(255, 218, 125, .13), transparent 28%);
  mix-blend-mode: screen;
}

.hero-slider .slide {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  visibility: hidden; opacity: 0; pointer-events: none;
}
.hero-slider .slide.active {
  visibility: visible; opacity: 1; pointer-events: auto; z-index: 1;
}
.hero-slider .slide img {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover;
  transform: scale(1.08); transition: transform 6.5s cubic-bezier(.2,.7,.2,1);
}
.hero-slider .slide.active img { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,rgba(7,28,53,.74) 0%,rgba(10,43,69,.48) 43%,rgba(15,73,105,.10) 100%),
    linear-gradient(0deg,rgba(6,29,51,.38),rgba(221,247,255,.05) 58%),
    linear-gradient(135deg,rgba(105,225,255,.14),transparent 52%);
}
.slide-content {
  position: relative; z-index: 2; width: min(1100px,calc(100% - 48px)); height: 100%;
  margin: auto; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; padding-bottom: 70px;
}
.eyebrow { margin-bottom: 22px; color: #d8f7ff; font-size: 11px; font-weight: 800; letter-spacing: 3px; }
.slide-content h1, .slide-content h2 {
  margin: 0; font-size: clamp(42px,6vw,82px); line-height: 1.04; letter-spacing: -2px;
}
.slide-content h1 span, .slide-content h2 span { color: #7be7ff; }
.slide-content p { max-width: 560px; margin: 24px 0; color: #f5fbff; text-shadow: 0 1px 12px rgba(4,26,46,.32); font-size: 15px; line-height: 1.8; }
.slide-button {
  display: inline-flex; padding: 16px 22px; background: #ffd45a; color: #071a30;
  text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  transition: transform .25s, background .25s;
}
.slide-button:hover { transform: translateY(-3px); background: #ffe28a; }

/* Transition: the incoming slide is revealed with a moving organic edge. */
.hero-slider .slide.entering {
  z-index: 3; visibility: visible; opacity: 1; pointer-events: auto;
  clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%);
  animation: liquidReveal 1.35s cubic-bezier(.72,0,.22,1) both;
}
.hero-slider .slide.leaving { z-index: 2; visibility: visible; opacity: 1; }
@keyframes liquidReveal {
  0% { clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); }
  28% { clip-path: polygon(72% 0,100% 0,100% 100%,68% 100%,73% 70%,66% 42%); }
  62% { clip-path: polygon(30% 0,100% 0,100% 100%,25% 100%,30% 72%,23% 43%); }
  84% { clip-path: polygon(5% 0,100% 0,100% 100%,2% 100%,7% 72%,0 43%); }
  100% { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
}
/* Reveal content only on the new slide */
.slide.entering .slide-content > * { animation: contentIn .7s ease both; }
.slide.entering .slide-content > *:nth-child(1) { animation-delay: .12s; }
.slide.entering .slide-content > *:nth-child(2) { animation-delay: .22s; }
.slide.entering .slide-content > *:nth-child(3) { animation-delay: .34s; }
.slide.entering .slide-content > *:nth-child(4) { animation-delay: .46s; }
@keyframes contentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.slider-bottom { position: absolute; z-index: 10; bottom: 0; left: 0; width: 100%; padding: 0 5%; }
.slider-progress { height: 2px; background: rgba(255,255,255,.42); }
.slider-progress span { display: block; height: 100%; width: 0; background: #7be7ff; }
.slider-progress span.running { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }
.slider-navigation { display: flex; min-height: 76px; justify-content: space-between; align-items: center; }
#slideCounter { color: #dce8f6; font-size: 11px; letter-spacing: 2px; }
.slider-controls { display: flex; gap: 8px; }
.slider-controls button {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35);
  color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); cursor: pointer;
}
.slider-controls button:hover { color: #06152c; background: #7be7ff; }
.slider-controls button:focus-visible { outline: 2px solid #ffc400; outline-offset: 3px; }
@media(max-width:768px) {
  .hero-slider { height: 76vh; min-height: 540px; }
  .slide-content { width: calc(100% - 40px); }
  .slide-content h1,.slide-content h2 { font-size: clamp(38px,10vw,58px); letter-spacing: -1px; }
  .slide-content p { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-slider .slide.entering { animation: none; clip-path: none; }
  .slide.entering .slide-content > * { animation: none; }
}
