/* 1. UTILITIES & ANIMATIONS(공통 애니메이션 및 유틸리티) */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 2;
  object-fit: cover;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll[data-delay='200'] {
  transition-delay: 0.2s;
}

.reveal-on-scroll[data-delay='400'] {
  transition-delay: 0.4s;
}

/* 2. MAIN VISUAL(상단 메인 비주얼 영역) */
.main-visual {
  position: relative;
  height: 100vh;
  /* background: url('../images/main-pc-01.png') center/cover no-repeat; */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  overflow: hidden;
  background-color: #fff;
}

.main-text-wrapper {
  position: absolute;
  padding: 0 60px;
  left: 0;
  bottom: 64px;
  z-index: 2;
  text-align: left;
}

.main-text {
  font-size: 88px;
  line-height: 123%;
  /* color: #ffffff; */
  color: #333;
  transition: none;
}

/* 3. SECTION INNOVATION */
.section-innovation {
  font-size: 88px;
  line-height: 123%;
  padding: 128px 0;
}

/* 4. PARALLAX SECTION(스크롤 인터랙션 영역) */
.fade-pin-wrapper {
  position: relative;
  height: 100vh;
  place-items: center;
}

.parallax-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.parallax-section .parallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  z-index: 1;
  overflow: hidden;
}

.parallax-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.parallax-content-wrapper {
  position: relative;
  width: 100%;
  height: 0; /* 원본의 두 번째 선언 값(0) 적용 */
}

.parallax-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  will-change: transform;
  transform: translateY(0%); /* 위 이미지들은 여기서 0 → -100%로 이동 */
  overflow: hidden;
  backface-visibility: hidden;
}

/* .parallax-content.main-pc-02 { background: url('../images/main-pc-02.jpg') center/cover no-repeat; } */
/* .parallax-content.main-pc-03 { background: url('../images/main-pc-03.jpg') center/cover no-repeat; } */
/* .parallax-content.main-pc-04 { background: url('../images/main-pc-04.jpg') center/cover no-repeat; } */
/* .parallax-content.main-pc-05 { background: url('../images/main-pc-05.jpg') center/cover no-repeat; } */
/* .parallax-content.main-pc-06 { background: url('../images/main-pc-06.jpg') center/cover no-repeat; } */

.parallax-content:nth-child(1) { z-index: 5; }
.parallax-content:nth-child(2) { z-index: 4; }
.parallax-content:nth-child(3) { z-index: 3; }
.parallax-content:nth-child(4) { z-index: 2; }
.parallax-content:nth-child(5) { z-index: 1; }

.parallax-font-wrapper {
  position: relative;
  z-index: 10;
  mix-blend-mode: difference;
  filter: invert(1);
  height: 100vh;
  width: 100%;
  /* 3D 애니메이션을 위한 속성 추가 */
  perspective: 1000px;

  .parallax-font {
    background: inherit;
    position: absolute;
    z-index: 10;
    opacity: 0;
    height: 100%;
    width: 100%;
    padding: 80px 60px 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    will-change: opacity, transform;
    /* 3D 애니메이션을 위한 속성 추가 */
    transform-style: preserve-3d;
    transform-origin: 50% 100%;

    .sub-text,
    .title {
      color: white;
      filter: invert(1);
    }
    .sub-text {
      margin-top: auto;
    }
  }
  .parallax-font:first-child {
    opacity: 1;
  }
}

.parallax-font .title {
  display: flex;
}

.parallax-font .title h2 {
  font-size: 64px;
  font-weight: 500;
  line-height: 130%;
  text-align: right;
}

.parallax-font .sub-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: auto;
  text-align: right;
}

.parallax-font .sub-text p {
  font-size: 22px;
  line-height: 145%;
}

.high-speed-font {
  mix-blend-mode: difference;
  color: #000;
  filter: invert(1);
  font-size: 18px;
  line-height: 140%;
  position: absolute;
  top: 96px;
  left: 60px;
  z-index: 10;
}

.parallax-font .sub-text .main-btn {
  background-color: transparent;
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  border: 0;
  position: relative;
  padding: 4px;
  cursor: pointer;
}

.parallax-font .sub-text .main-btn:after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 100%;
  bottom: 0;
  background: white;
  height: 1px;
  -webkit-transition-property: right;
  transition-property: right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.parallax-font .sub-text .main-btn:hover:after,
.parallax-font .sub-text .main-btn:focus:after,
.parallax-font .sub-text .main-btn:active:after {
  right: 0;
}

/* 5. SECTION APPLICATION */
.section-application {
  height: 100vh;
  background-color: #000;
  padding: 64px 0 20px 0;
}

.section-application .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-application .title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
  /* margin-bottom: auto; */
}

.section-application .title h2 {
  font-size: 64px;
  color: #fff;
  font-weight: 500;
  line-height: 130%;
}

.section-application .title p {
  font-size: 22px;
  line-height: 145%;
  font-weight: 500;
  color: #ffffff;
}

.section-application .img-content {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  gap: 128px;
  margin-bottom: 64px;
  min-height: 0;
}

.section-application .img-content .img-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  min-width: 300px;
  flex-shrink: 0;
}

.section-application .img-content .img-links a {
  font-size: 32px;
  line-height: 140%;
  color: #fff;
  font-weight: 500;
}

.section-application .img-content .img-links a:hover {
  text-decoration: underline;
}

.section-application .img-content .img-area {
  width: 1192px;
  height: 500px;
  object-fit: cover;
  overflow: hidden;
  right: 0;
  height: 100%;
  aspect-ratio: 444 / 250;
  position: relative;
  height: inherit;
  max-height: 100%;
  position: relative;
}

.section-application .img-content .img-area video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-application .img-content .img-area video:nth-child(1) { z-index: 3; }
.section-application .img-content .img-area video:nth-child(2) { z-index: 2; }
.section-application .img-content .img-area video:nth-child(3) { z-index: 1; }

/* 6. SECTION NEWS & CARD */
.section-news {
  padding: 128px 0 100px; /* 두 번째 선언값 적용 */
  background-color: #fff; /* 첫 번째 선언값 병합 */
  height: 100%; /* 두 번째 선언값 병합 */
}

.section-news .title {
  flex-direction: column;
  font-size: 64px;
  line-height: 130%;
  color: #000;
  font-weight: 500;
}

.section-news .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
}

.section-news .news-link {
  display: flex;
  align-items: center;
  gap: 36px;
}

.section-news .view-all {
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

.section-news .swiper-navigation {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}

.section-news .swiper-navigation .swiper-nav {
  position: relative;
  width: 56px;
  height: 56px;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background-color: transparent;
  top: unset;
  margin-top: unset;
  left: unset;
  right: unset;
}

.section-news .swiper-navigation .swiper-nav:after {
  font-size: 18px;
}

.section-news .news-link .swiper-nav svg {
  width: 18px;
  height: 18px;
}

.news-swiper .swiper-wrapper {
  align-items: stretch;
}

.news-card.swiper-slide {
  height: 100%;
}

.news-card {
  border: 1px solid #e2e2e2;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.news-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 65px;
}

.news-card .card-header .logo {
  width: 56px;
  height: 56px;
  /* object-fit: contain; */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  /* padding: 7px; */
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card .card-header .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.news-card .card-header .title p {
  font-size: 14px;
  color: #000;
  font-weight: 500;
  line-height: 145%;
  /* display: block; */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 2줄로 제한 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card .card-header .title time {
  color: #000;
  font-size: 14px;
  line-height: 150%;
  font-weight: 400;
  display: block;
}

.news-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.news-card .card-body .image {
  height: auto;
  width: 100%;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-card .card-body .image img {
  /* object-fit: contain; */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .card-body .image img.no-image {
  position: relative;
  /* height: 40px; */
}

.news-card .card-body .card-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 4줄 제한 */
  text-overflow: ellipsis;
  min-height: 84px;
  margin: 0;
}

.news-card .card-body p {
  font-size: 14px;
  color: #000;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}

.news-card .card-body p span {
  font-size: 14px !important;
  color: #000 !important;
  font-weight: 400 !important;
  line-height: 150% !important;
  display: inline !important;
  margin: 0 !important;
}

.news-card .card-body p img {
  display: none;
}

.news-card .read-more {
  text-decoration: none;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-top: 24px;
  flex-shrink: 0;
}

.news-card .read-more .bi {
  font-size: 18px;
  color: #000;
}

/* 7. MEDIA QUERIES (TABLET & MOBILE) */
@media screen and (max-width: 1280px) {
  /* Main Visual */
  /* .main-visual { background-image: url('../images/main-tb-01.png'); } */
  .main-text-wrapper {
    max-width: 100%;
    padding: 0 24px;
  }
  .main-text {
    font-size: 64px;
    font-weight: 500;
    line-height: 140%;
  }

  /* Innovation */
  .section-innovation {
    font-size: 64px;
    padding: 64px 0;
  }

  /* Parallax Section */
  .parallax-font {
    padding: 80px 24px 64px !important;    
  }
  .parallax-content {
    padding: 64px 24px;
  }
  .parallax-section .title h2 {
    font-size: 40px;
    line-height: 140%;
  }
  .parallax-section .title span {
    font-size: 14px;
    line-height: 145%;
  }
  .parallax-section .sub-text {
    right: 16px;
    bottom: 64px;
    gap: 16px;
  }
  .parallax-section .sub-text p {
    font-size: 18px;
    line-height: 140%;
  }
  .parallax-section .sub-text .main-btn .text {
    font-size: 14px;
  }
  .high-speed-font {
    left: 24px;
    font-size: 16px;
  }
  .parallax-font .title h2 {
    font-size: 40px;
  }
  .parallax-font .sub-text {
    gap: 16px;
  }
  .parallax-font .sub-text p {
    font-size: 18px;
  }

  /* Application */
  .section-application .title {
    gap: 16px;
  }
  .section-application .title h2 {
    font-size: 40px;
    line-height: 140%;
  }
  .section-application .title p {
    font-size: 18px;
    line-height: 140%;
  }
  .section-application .img-content .img-links a {
    font-size: 22px;
    line-height: 145%;
  }

  /* News */
  .section-news {
    padding: 64px 0;
  }
  .section-news .title {
    font-size: 40px;
    line-height: 140%;
  }
  .section-news .view-all {
    font-size: 14px;
  }
  .section-news .swiper-navigation .swiper-nav {
    width: 48px;
    height: 48px;
  }
  .section-news .section-header {
    margin-bottom: 36px;
  }
  .news-card {
    padding: 16px;
  }
  .news-card .card-header .logo {
    width: 48px;
    height: 48px;
  }
  .news-card .card-header {
    gap: 12px;
    margin-bottom: 16px;
  }
  .news-card .read-more {
    margin-top: 16px;
    width: 48px;
    height: 48px;
  }
}
@media screen and (max-width: 1024px) {
    .main-text-wrapper {
    max-width: 100%;
    left: 24px;
    bottom: 36px;
    padding: 0 24px 36px;
  }
}

@media screen and (max-width: 768px) {
  /* Main Visual */
  /* .main-visual { background-image: url('../images/main-mb-01.png'); } */
  .main-text-wrapper {
    left: 16px;
    bottom: 24px;
    padding: 0 16px 24px;
  }
  .main-text {
    font-size: 32px;
    font-weight: 500;
    line-height: 140%;
  }

  /* Innovation */
  .section-innovation {
    font-size: 32px;
    line-height: 140%;
    padding: 36px 0;
  }

  /* Parallax Section */
  .parallax-section .title {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }
  .parallax-section .title h2 {
    font-size: 28px;
    text-align: left;
  }
  .parallax-section .title span {
    font-size: 13px;
  }
  .parallax-section .sub-text {
    left: 16px;
    bottom: 36px;
    gap: 12px;
    right: unset;
    align-items: flex-start;
  }
  .parallax-section .sub-text p {
    font-size: 15px;
    line-height: 145%;
  }
  .parallax-section .sub-text .main-btn .text {
    font-size: 13px;
  }
  .high-speed-font {
    top: 48px;
    font-size: 14px;
  }
  .parallax-font .title h2 {
    font-size: 28px;
  }
  .parallax-font-wrapper .parallax-font {
    /* padding-top: 22%; */
    padding: 124px 24px 48px;
    align-items: flex-start;
    .sub-text p {
      font-size: 15px;
    }
    .title h2,
    .sub-text {
      align-items: flex-start;
      text-align: left;
    }
  }

  /* Application */
  .section-application {
    padding: 36px 0;
  }
  .section-application .title {
    gap: 12px;
  }
  .section-application .title h2 {
    font-size: 28px; /* px단위는 원본(28)에 없었으나 28로 유지 */
  }
  .section-application .title p {
    font-size: 15px;
    line-height: 145%;
  }
  .section-application .img-content {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
  }
  .section-application .img-content > * {
    flex: 1;
  }
  .section-application .img-content .img-area {
    width: 100%;
    height: 100%;
  }
  .section-application .img-content .img-links a {
    font-size: 18px;
    line-height: 140%;
  }

  /* News */
  .section-news {
    padding: 36px 0 36px;
  }
  .section-news .title {
    font-size: 28px;
    line-height: 140%;
  }
  .section-news .swiper-navigation .swiper-nav {
    display: none;
  }
  .section-news .section-header {
    margin-bottom: 12px;
  }
  .news-card {
    padding: 12px;
  }
  .news-card .card-header .logo {
    width: 40px;
    height: 40px;
  }
  .news-card .card-header {
    gap: 8px;
    margin-bottom: 12px;
  }
  .news-card .read-more {
    margin-top: 12px;
    width: 40px;
    height: 40px;
  }
  .news-card .card-body p {
    font-size: 13px;
  }
}