/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal (responsive + maintain design ratio) */
.modal {
  width: min(80vw, 900px); /* desktop friendly: larger size */
  max-width: 900px;
  max-height: min(80vh, 900px);
  aspect-ratio: 1 / 1; /* square 1:1 */
  background: #000;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  animation: popupIn 0.4s ease;
}

/* Tablet landscape and portrait */
@media (max-width: 1199px) {
  .modal {
    width: min(85vw, 700px);
    max-height: min(85vh, 700px);
  }
}

/* Mobile portrait */
@media (max-width: 767px) {
  .modal {
    width: 95vw;
    height: 95vw; /* enforce 1:1 for small screens */
    max-height: 95vw;
    max-width: 95vw;
  }
}

/* Mobile landscape */
@media (max-width: 767px) and (orientation: landscape) {
  .modal {
    width: 85vw;
    height: 85vw;
    max-height: 85vh;
    max-width: 85vh;
  }
}

/* Close button */
.close {
    position: absolute;
  top: 14px;
  right: 18px;
  font-size: 32px;
  font-weight: bold;
  color: red;
  background: black;
  border: 5px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}


/* Slider */
.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Slides container */
.slides {
  display: flex;
  width: 500%; /* 5 slides */
  height: 100%;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
  --slide-gap: 0;
  gap: var(--slide-gap);
}

.slide {
  flex: 0 0 20%;
  width: 20%;
  height: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media (max-width: 900px) {
  .slides {
    width: 100%;
  }
  .slide {
    flex: 0 0 100%;
    width: 100%;
  }
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Ensure slider wrapper has clipped area */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Navigation arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 36px;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 6;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 6;
}

.dots span {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.dots span.active {
  background: #fff;
}

/* Animation */
@keyframes popupIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 95vw;
    height: 95vw; /* Keep 1:1 ratio for mobile */
    max-height: 95vw;
  }

  .nav {
    font-size: 22px;
    padding: 6px 10px;
  }

  .close {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}


 
 .u-section-1 {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.u-section-1 .u-sheet-1 {
  min-height: 50vw;
}

.u-section-1 .u-image-1 {
  width: 835px;
  height: 236px;
  margin: 137px auto 0;
}

.u-section-1 .u-image-2 {
  width: 1032px;
  height: 194px;
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 0.3;
  margin: 57px auto 0;
}

.u-section-1 .u-image-3 {
  width: 1068px;
  height: 334px;
  --animation-custom_in-translate_x: -300px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 0.3;
  margin: -56px auto 58px;
}

@media (max-width: 1199px) {
  .u-section-1 .u-sheet-1 {
    min-height: 1866px;
  }

  .u-section-1 .u-image-2 {
    width: 940px;
    height: 177px;
    margin-left: 0;
    margin-right: 0;
  }

  .u-section-1 .u-image-3 {
    width: 940px;
    height: 294px;
    margin-top: -39px;
  }
}

@media (max-width: 991px) {
  .u-section-1 .u-sheet-1 {
    min-height: 360px;
  }

  .u-section-1 .u-image-1 {
    width: 720px;
    height: 203px;
    margin-bottom: 20px;
  }

  .u-section-1 .u-image-2 {
    width: 720px;
    height: 136px;
  }

  .u-section-1 .u-image-3 {
    width: 720px;
    height: 225px;
    margin-top: 2px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 {
    min-height: 1424px;
  }

  .u-section-1 .u-image-1 {
    width: 540px;
    height: 152px;
  }

  .u-section-1 .u-image-2 {
    width: 540px;
    height: 102px;
  }

  .u-section-1 .u-image-3 {
    width: 540px;
    height: 169px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 {
    min-height: 131px;
  }

  .u-section-1 .u-image-1 {
    height: 96px;
    margin-top: 26px;
    margin-bottom: 9px;
    margin-right: initial;
    margin-left: initial;
    width: auto;
  }

  .u-section-1 .u-image-2 {
    width: 340px;
    height: 64px;
  }

  .u-section-1 .u-image-3 {
    width: 340px;
    height: 106px;
  }
}.u-section-2 .u-sheet-1 {
  min-height: 50vw;
}

.u-section-2 .u-group-1 {
  width: 568px;
  min-height: 932px;
  height: auto;
  margin: 0 auto 28px;
}

.u-section-2 .u-container-layout-1 {
  padding-bottom: 0;
  padding-top: 0;
}

.u-section-2 .u-image-1 {
  width: 567px;
  height: 612px;
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  margin: 23px auto 0;
}

.u-section-2 .u-text-1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 0.92;
  width: 444px;
  margin: 0 auto;
}

.u-section-2 .u-image-2 {
  width: 335px;
  height: 100px;
  --animation-custom_in-translate_x: -200px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  margin: 22px auto 0;
}

@media (max-width: 1199px) {
  .u-section-2 .u-group-1 {
    height: auto;
  }
}

@media (max-width: 991px) {
  .u-section-2 .u-group-1 {
    min-height: 890px;
    margin-bottom: 43px;
  }
}

@media (max-width: 767px) {
  .u-section-2 .u-group-1 {
    width: 540px;
  }

  .u-section-2 .u-image-1 {
    width: 540px;
    height: 583px;
  }
}

@media (max-width: 575px) {
  .u-section-2 .u-sheet-1 {
    min-height: 560px;
  }

  .u-section-2 .u-group-1 {
    margin-top: 26px;
    margin-bottom: 0;
    min-height: 535px;
    margin-right: initial;
    margin-left: initial;
    width: auto;
  }

  .u-section-2 .u-image-1 {
    width: 340px;
    height: 367px;
  }

  .u-section-2 .u-text-1 {
    width: 340px;
    font-size: 2.25rem;
  }

  .u-section-2 .u-image-2 {
    width: 151px;
    height: 45px;
    margin-top: 9px;
  }
}.u-section-3 .u-sheet-1 {
  min-height: 1094px;
}

.u-section-3 .u-group-1 {
  width: 785px;
  min-height: 984px;
  height: auto;
  margin: 0 auto 60px;
}

.u-section-3 .u-container-layout-1 {
  padding-bottom: 0;
}

.u-section-3 .u-image-1 {
  height: 679px;
  width: 595px;
  margin: 52px 95px 0;
}

.u-section-3 .u-text-1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 0.92;
  width: 501px;
  margin: 8px auto 0;
}

.u-section-3 .u-image-2 {
  width: 330px;
  height: 99px;
  margin: 23px auto 0;
}

@media (max-width: 1199px) {
  .u-section-3 .u-group-1 {
    height: auto;
  }
}

@media (max-width: 991px) {
  .u-section-3 .u-sheet-1 {
    min-height: 984px;
  }

  .u-section-3 .u-group-1 {
    width: 720px;
    margin-bottom: 0;
  }

  .u-section-3 .u-image-1 {
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .u-section-3 .u-group-1 {
    width: 540px;
  }

  .u-section-3 .u-image-1 {
    height: 616px;
    width: 540px;
  }
}

@media (max-width: 575px) {
  .u-section-3 .u-sheet-1 {
    min-height: 569px;
  }

  .u-section-3 .u-group-1 {
    min-height: 539px;
    margin-bottom: 30px;
    margin-right: initial;
    margin-left: initial;
    width: auto;
  }

  .u-section-3 .u-container-layout-1 {
    padding-top: 0;
  }

  .u-section-3 .u-image-1 {
    height: 388px;
    width: 340px;
    margin-top: 7px;
  }

  .u-section-3 .u-text-1 {
    font-size: 2.25rem;
    width: 340px;
  }

  .u-section-3 .u-image-2 {
    width: 154px;
    height: 46px;
    margin-top: 8px;
  }
}