/* === Hero Styles === */
.hero{
  position: relative; 
  isolation: isolate; 
  color: #fff;
  width: 100%;
  height: 920px;
  max-height: 100vh;
  background: #000000;
  overflow: hidden;
}

.hero-bg{
  position: absolute; 
  inset: 0; 
  z-index: 0;
  overflow:hidden;
}

/* Slide container */
.slide-container{
  position: relative;
  width: 100%;
  height: 100%;
}

/* Main skeleton for initial load */
.slide-skeleton{ 
  position:absolute; inset:0; background:#E5E7EB;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index:1;
}

/* Slides */
.hero-bg .slide{
  position:absolute; inset:0;
  transform: scale(1.05);
  opacity: 0; transition: opacity 1s ease, transform 6s ease;
}
.hero-bg .slide.is-active{ opacity:1; transform: scale(1); }

/* Image containers within slides */
.image-container{ 
  position:relative; width:100%; height:100%; overflow:hidden; 
}
.image-skeleton{ 
  position:absolute; inset:0; background:#E5E7EB;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index:1;
}
.image-container img{ 
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; 
  opacity:0; transition: opacity 0.3s ease;
  z-index:2;
}
.image-container.loaded img{ opacity:1; }
.image-container.loaded .image-skeleton{ opacity:0; transition: opacity 0.3s ease; }

/* Main skeleton will be hidden via JavaScript when first slide loads */

@keyframes shimmer{
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Dark gradient overlay at bottom */
.hero-bg::after{
  content: "";
  position: absolute;
  width: 100%;
  height: 880px;
  left: 0;
  bottom: 0;
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%); */
  z-index: 1;
}

/* Blue fade gradient 1 */
.hero::before{
  content: "";
  position: absolute;
  width: 1920px;
  height: 624px;
  right: -812px;
  bottom: -530px;
  /* background: linear-gradient(180deg, rgba(166, 192, 226, 0.24) 0%, rgba(173, 196, 227, 0) 100%); */
  transform: matrix(-0.64, -0.77, -0.77, 0.64, 0, 0);
  z-index: 1;
  pointer-events: none;
}

/* Blue fade gradient 2 */
.hero::after{
  content: "";
  position: absolute;
  width: 1920px;
  height: 960px;
  left: calc(50% - 1920px/2 - 536px);
  bottom: -150px;
  /* background: linear-gradient(180deg, rgba(166, 192, 226, 0.32) 0%, rgba(173, 196, 227, 0) 100%); */
  transform: rotate(-38deg);
  z-index: 1;
  pointer-events: none;
}
.hero-container{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 172px;
  padding-bottom: 120px;
  z-index: 2;
  max-width: 1444px; margin: 0 auto; padding-inline: 24px;
}

.hero-copy{
  max-width: 770px;
}

.hero-title{
  margin: 0 0 53px;
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 112px;
  line-height: 120px;
  color: #FFFFFF;
  text-transform: none;
  white-space: nowrap;
}

.hero-subtitle{
  margin: 0;
  max-width: 468px;
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  color: #FFFFFF;
}

/* Bottom links across hero */
.hero-links{
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between;
  margin-top: auto;
}

.hero-links .btn{
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: #FFFFFF;
}

.hero-links .btn::after{
  content: "";
  position: absolute;
  left: 2px;
  bottom: -8px;
  width: calc(100% - 4px);
  height: 2px;
  background: #FFFFFF;
}

.hero-links .btn:hover{
  opacity: 0.85;
  background: transparent;
  transform: none;
}

.hero-links .btn:active{
  transform: none;
}

.link-underline{
  position: relative;
  padding: 0;
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: #FFFFFF;
  text-decoration: none;
}

.link-underline::after{
  content: ""; 
  position: absolute; 
  left: 2px; 
  bottom: -8px; 
  height: 2px; 
  width: calc(100% - 4px);
  background: #FFFFFF;
}

.link-underline:hover{ 
  opacity: 0.85;
}

/* === Hero Responsive === */
/* @media (max-width: 1400px){
  .hero-container{ 
    padding-top: 80px; 
    padding-bottom: 60px;
  }
  .hero-title{
    font-size: clamp(55px, 8vw, 112px);
    line-height: clamp(60px, 8.5vw, 120px);
  }
  .hero-subtitle{
    font-size: clamp(28px, 4vw, 56px);
    line-height: clamp(32px, 4.5vw, 64px);
  }
  .hero-links .btn,
  .link-underline{
    font-size: clamp(18px, 2vw, 24px);
    line-height: clamp(22px, 2.5vw, 29px);
  }
} */

@media (max-width: 1000px){
  .hero{
    /* Fill the visible screen on mobile below the fixed header */
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    max-height: none;
  }
  .hero-container{ 
    padding-top: 80px; 
    padding-bottom: 60px;
  }
  .hero-title{
    margin-bottom: 20px;
    margin-left: -6px;
    margin-top: 120px
  }

  .hero-links{ 
    flex-direction: column; 
    gap: 24px; 
    align-items: flex-start; 
  }

  .hero-title{ font-size:76px; line-height:32px; }
  .hero-subtitle{ font-size:35px; line-height:32px; }
}





@media (max-width: 600px){
  .hero-title{ font-size:50px; line-height:32px; }
  .hero-subtitle{ font-size:30px; line-height:29px; }
  .hero-links .btn,
  .link-underline{ font-size:15px; line-height:20px; }
}