.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  touch-action: pan-y;
}

/* Background slides — stacked, only active fades in */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.05s ease 1s;
}
.hero-slide-bg.active {
  opacity: 1;
  z-index: 1;
  transition: opacity 0.05s ease;
}

.hero-slide-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-slide-bg:nth-child(1)::before {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-slide-bg:nth-child(2)::before {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 100%);
}

.hero-slide-bg:nth-child(3)::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #1a1e26;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
  z-index: 2;
}

.hero-slide-bg.active::after {
  clip-path: inset(0 100% 0 0);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Slide-specific framing tweaks for text legibility */
.hero-bg-img--slide-1 {
  transform: scale(1.39);
  object-position: 56% 34%;
}
.hero-bg-img--slide-2 {
  object-position: 50% 44%;
}
.hero-bg-img--slide-3 {
  object-position: 50% 40%;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.05);
  z-index: 8;
}

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #fcb040;
  z-index: 12;
  animation: heroProgress linear forwards;
}

@keyframes heroProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Text content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
}
.hero-align-center { align-items: center; text-align: center; }
.hero-align-left   { align-items: flex-start; text-align: left; padding-left: 305px; }

/* Text animation — slide up + fade in */
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim-in {
  opacity: 0;
  animation: heroTextIn 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* Subtitle */
.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 200;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Title */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 77px;
  font-weight: 900;
  line-height: 85px;
  letter-spacing: -3px;
  margin: 0 0 30px 0;
}

/* Button */
.hero-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 56px;
  padding: 0 40px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Dark theme (slides 1 & 2) */
.hero-theme-dark .hero-subtitle { color: #2d323c; text-shadow: 0 0 20px rgba(255,255,255,0.8); }
.hero-theme-dark .hero-title    { color: #2d323c; text-shadow: 0 0 30px rgba(255,255,255,0.6); }
.hero-theme-dark .hero-btn      { background: #2d323c; color: #fff; }
.hero-theme-dark .hero-btn:hover { background: #fcb040; color: #2d323c; transform: translateY(-2px); }

/* Gold theme (slide 3) */
.hero-theme-gold .hero-subtitle { color: #fcb040; text-shadow: 0 0 20px rgba(0,0,0,0.5); }
.hero-theme-gold .hero-title    { color: #fcb040; text-shadow: 0 0 30px rgba(0,0,0,0.4); }
.hero-theme-gold .hero-btn      { background: #2d323c; color: #fff; }
.hero-theme-gold .hero-btn:hover { background: #fcb040; color: #2d323c; transform: translateY(-2px); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-scroll__mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 12px;
  position: relative;
  animation: heroScrollBob 2s ease-in-out infinite;
}

.hero-scroll__dot {
  display: block;
  width: 4px;
  height: 8px;
  background: #fcb040;
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroScrollDot 2s ease-in-out infinite;
}

@keyframes heroScrollBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

@keyframes heroScrollDot {
  0%    { opacity: 1; transform: translateX(-50%) translateY(0); }
  60%   { opacity: 0; transform: translateX(-50%) translateY(12px); }
  61%   { opacity: 0; transform: translateX(-50%) translateY(0); }
  100%  { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Dots */
.hero-dots {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-dot {
  width: 20px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  padding: 0;
}
.hero-dot.active {
  color: #fff;
  border-bottom-color: #fcb040;
}
.hero-dot:hover {
  color: #fff;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  padding: 0;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover {
  background: #fcb040;
  color: #2d323c;
  border-color: #fcb040;
  transform: translateY(-50%) scale(1.07);
}
.hero-arrow svg { display: block; }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 100px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 56px; line-height: 65px; letter-spacing: -2px; }
  .hero-align-left { padding-left: 120px; }
  .hero-bg-img--slide-1 {
    transform: scale(1.3);
    object-position: 54% 34%;
  }
  .hero-bg-img--slide-2 {
    object-position: 50% 42%;
  }
  .hero-bg-img--slide-3 {
    object-position: 50% 36%;
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 46px;
    line-height: 54px;
    letter-spacing: -1.5px;
  }
  .hero-content {
    padding: 0 24px;
  }
  .hero-align-left {
    padding-left: 44px;
  }
  .hero-dots {
    right: 20px;
    gap: 8px;
  }
}
@media (max-width: 767px) {
  .hero-title    { font-size: 36px; line-height: 45px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 11px; letter-spacing: 4px; }
  .hero-content  { padding: 0 30px; }
  .hero-align-left { padding-left: 30px; align-items: center; text-align: center; }
  .hero-dots { right: 15px; }
  .hero-dot {
    width: 16px;
    height: 22px;
    font-size: 13px;
    letter-spacing: 1px;
  }
  .hero-arrow-next { right: 60px; }
  .hero-arrow { display: none; }
  .hero-bg-img--slide-1 {
    transform: scale(1.21);
    object-position: 52% 34%;
  }
  .hero-bg-img--slide-2 {
    object-position: 52% 42%;
  }
  .hero-bg-img--slide-3 {
    object-position: 52% 35%;
  }
}

@media (max-width: 430px) {
  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 31px;
    line-height: 38px;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
  }
  .hero-btn {
    line-height: 50px;
    padding: 0 24px;
    font-size: 13px;
  }
  .hero-scroll {
    bottom: 34px;
  }
  .hero-dots {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-bg,
  .hero-anim-in,
  .hero-scroll,
  .hero-scroll__mouse,
  .hero-scroll__dot,
  .hero-progress {
    transition: none !important;
    animation: none !important;
  }
  .hero-scroll__dot { opacity: 1; }
  .hero-progress { display: none; }
}
