/* ============================================
   index.html 전용 스타일
   ============================================ */

/* 히어로 섹션: PC는 일반 높이, 모바일만 스크롤 구간 확대 */
.hero-section {
  width: 100%;
  height: 95vh;
  position: relative;
  overflow: hidden;
  --hero-scale: 1;
}

/* PC: 배경·오버레이·텍스트 absolute (비주얼 영역 안) */
.hero-section__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

/* PC에서 숨김 (모바일에서만 노출) */
.hero-section__image--mo,
.hero-section__overlay,
.hero-section__copy-wrap {
  display: none;
}

/* 비주얼 래퍼: PC에선 인디케이터만, 모바일에선 비주얼 전체(텍스트+인디케이터) */
.hero-section__visual-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* 스크롤 인디케이터 */
.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 3;
  color: #fff;
}

.hero-scroll-indicator__chevron {
  display: block;
  width: 20px;
  height: auto;
  opacity: 1;
  animation: hero-scroll-opacity 1.8s ease-in-out infinite;
}

.hero-scroll-indicator__chevron--2 {
  animation-delay: 0.9s;
}

@keyframes hero-scroll-opacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 2번째 섹션: 서비스 소개 (PC) */
.section-services {
  width: 100%;
  margin: 80px auto;
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* 서비스 섹션: 좌우 100% 사용, 내부만 container 1280px */
.section-services__box {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 0 120px 0;
  border-radius: 16px;
  isolation: isolate;
  background-color: #EFF5F8;
}

/* 서비스 섹션 컨테이너는 기본 container 여백 사용 */

.section-services__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  min-width: 0;
}

.section-services__text {
  flex: 0 0 calc(40% - 20px);
  position: sticky;
  top: 120px;
  align-self: flex-start;
  min-width: 0;
}

.section-services__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.section-services__highlight {
  color: #1579EB; /* 진한 파란색 (밝은 시안 대신) */
}

.section-services__grid {
  flex: 0 0 calc(60% - 20px);
  min-width: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Swiper 기본 ::after 제거 (stats, works 캐러셀용) */
.stats-nav-btn::after,
.works-nav-btn::after {
  display: none !important;
}

/* stats와 works nav 스타일은 common.css에서 정의됨 */

.section-services__column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 2열만 사용: 첫 번째 열만 살짝 아래로 (균형 맞춤) */
.section-services__column--1 { margin-top: 0px; }
.section-services__column--2 { margin-top: 80px; }

.service-card {
  position: relative;
  aspect-ratio: 1 / 1.12;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 8px;
  cursor: default;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, backdrop-filter 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hover-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.service-card[data-hover-image]:hover::after,
.service-card[data-hover-image].is-active::after {
  opacity: 1;
}

.service-card__title,
.service-card__desc {
  position: relative;
  z-index: 3;
  color: #fff;
}

.service-card__title {
  font-size: 20px;
  font-weight: 600;
  padding: 0;
  margin: 0;
  align-self: flex-start;
}

.service-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  margin: 0;
  align-self: flex-end;
  text-align: right;
}

/* 3번째 섹션: 통계 케러셀 */
.section-stats {
  position: relative;
  width: 100%;
  padding: 120px 0;
  margin: 120px 0 0 0;  /* 아래 마진 제거 → Works와 간격은 Works padding 120px만 적용 */
  overflow: hidden;
}

/* 스탯·워크스 컨테이너는 기본 container 여백 사용 */

.section-stats__carousel-wrap {
  width: 100%;
  margin-top: 32px;
  padding-left: max(clamp(20px, 5vw, 60px), calc((100vw - var(--max-width)) / 2 + clamp(20px, 5vw, 60px)));
  overflow: visible;
}

.section-stats__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.section-stats__header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-stats__title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.section-stats__title-highlight {
  color: var(--color-point-dark);
}

/* 스크롤 인터랙션: 진입 시 헤더·카드 순차 노출 */
.section-stats .section-stats__header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.section-stats.is-inview .section-stats__header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.section-stats .stats-carousel .stats-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: var(--stats-card-delay, 0s);
}

.section-stats.is-inview .stats-carousel .stats-card {
  opacity: 1;
  transform: translateY(0);
}

/* stats nav 스타일은 common.css에서 정의됨 */

.stats-nav-btn {
  position: relative !important;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  color: #fff;
  opacity: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}


.stats-nav-btn:hover {
  opacity: 0.7;
}

.stats-carousel {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: visible !important;
}

.stats-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.stats-carousel .swiper-slide {
  width: 680px;
  flex-shrink: 0;
  height: auto;
  display: flex;
}

.stats-card {
  position: relative;
  width: 680px;
  height: 480px;
  flex-shrink: 0;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.60) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  outline: 1px solid #5B6776;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stats-card__title {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: #F2F2F2;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  margin: 0;
}

.stats-card__number {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  align-self: flex-end;
  margin: 0;
}

.stats-card__number-value {
  color: #fff;
  font-size: 100px;
  font-weight: 700;
  line-height: 150px;
}

.stats-card__number-plus {
  color: #56DAFF;
  font-size: 100px;
  font-weight: 700;
  line-height: 150px;
}

/* stats nav 화살표 아이콘 (works와 동일 12px, 중앙 정렬) */
.stats-nav-btn.swiper-button-prev::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border-left: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  display: block !important;
}

.stats-nav-btn.swiper-button-next::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border-right: 2px solid #fff !important;
  border-top: 2px solid #fff !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  display: block !important;
}

/* 4번째 섹션: Works 케러셀 */
.section-works {
  padding: 120px 0;
  margin: 0;
  background: #fff;
  overflow: hidden;
}

.section-works__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-works__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-section-title);
  margin: 0;
}

.section-works__title a {
  color: inherit;
  text-decoration: none;
}

.section-works__title-point {
  color: #1579EB;
}

.section-works__carousel-wrap {
  width: 100%;
  margin-top: 32px;
  padding-left: max(clamp(20px, 5vw, 60px), calc((100vw - var(--max-width)) / 2 + clamp(20px, 5vw, 60px)));
  overflow: visible;
}

/* 스크롤 인터랙션: 진입 시 헤더·카드 순차 노출 */
.section-works .section-works__header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.section-works.is-inview .section-works__header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.section-works .works-carousel .swiper-slide {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: var(--works-slide-delay, 0s);
}

.section-works.is-inview .works-carousel .swiper-slide {
  opacity: 1;
  transform: translateY(0);
}

/* works nav 스타일은 common.css에서 정의됨 */

.works-carousel {
  overflow: visible !important;
}

.works-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.works-carousel .swiper-slide {
  width: 420px;
  flex-shrink: 0;
  height: auto;
}

.works-card {
  display: flex;
  flex-direction: column;
  width: 420px;
  height: 520px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.works-card__image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #E5E7EB;
  flex-shrink: 0;
  border-radius: 8px;
}

.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.works-card:hover .works-card__image img {
  transform: scale(1.06);
}

.works-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 0 0;
  min-height: 0;
}

.works-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px;
  line-height: 1.4;
}

.works-card__desc {
  font-size: 15px;
  font-weight: 400;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* Works 더 보러가기 카드 */
.works-card--more {
  height: 420px;
}

.works-card--more .works-card__image--more {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #ffffff;
}

.works-card__more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  text-align: center;
}

.works-card__more-works {
  display: block;
  overflow: hidden;
  height: 2em;
  line-height: 1.4;
  position: relative;
}

.works-card__more-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.4s ease;
  position: relative;
  top: 0;
}

.works-card--more:hover .works-card__more-track {
  transform: translateY(-50%);
}

.works-card__more-slide {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 1.6em;
  min-height: 1.6em;
  line-height: 1.6em;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  box-sizing: border-box;
}

.works-card__more-slide--point {
  color: var(--color-point-light);
}

.works-card__more-fixed {
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.works-card--more:hover .works-card__image img {
  transform: none;
}

.works-nav-btn {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  color: #222;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.works-nav-btn:hover {
  opacity: 0.8;
}

.works-nav-btn.swiper-button-prev::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border-left: 2px solid #222 !important;
  border-bottom: 2px solid #222 !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  display: block !important;
}

.works-nav-btn.swiper-button-next::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border-right: 2px solid #222 !important;
  border-top: 2px solid #222 !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  display: block !important;
}

/* Works 모달 (index Works 카드 클릭 시) */
.works-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.works-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.works-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.works-modal__container {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.works-modal.is-open .works-modal__container {
  transform: scale(1);
}

.works-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.works-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.works-modal__content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
  padding-top: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.works-modal__content::-webkit-scrollbar {
  width: 8px;
}

.works-modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.works-modal__content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.works-modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.works-modal__image {
  width: 100%;
  background: #ffffff;
  flex-shrink: 0;
}

.works-modal__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: top;
}

.works-modal__info {
  padding: 32px;
  flex-shrink: 0;
}

.works-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
}

.works-modal__category {
  font-size: 14px;
  font-weight: 500;
  color: #0469DD;
  margin: 0 0 16px;
}

.works-modal__desc {
  font-size: 15px;
  font-weight: 400;
  color: #6B7280;
  margin: 0;
  line-height: 1.7;
}

.works-modal__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 32px 60px;
  flex-shrink: 0;
  background: #f2f4f7;
}

.works-modal__gallery-item {
  flex: 1 1 calc((100% - 24px) / 3);
  min-width: calc((100% - 24px) / 3);
}

.works-modal__gallery-item.is-wide {
  flex: 1 1 100%;
  max-width: 100%;
}

.works-modal__gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 더 보기 링크 (모바일에서만 표시) */
.section-works__more-wrap { display: none; }

/* ============================================
   미디어 쿼리 (디바이스별 반응형 스타일)
   ============================================ */

/* 태블릿/데스크탑: 769px 이상 */
@media screen and (min-width: 769px) {
  .section-services {
    margin: 0;
    margin-bottom: 0;
  }
  .section-services__box {
    width: 100%;
    padding: 80px 0 120px 0;
    border-radius: 0;
    background-color: #EFF5F8;
    background-image: url('../../img/index-service-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
  .section-services__title {
    color: #222;
  }
  .section-services__highlight {
    color: #1579EB;
  }

  /* 서비스 카드: 스크롤 순차 노출 + 비주얼(오버레이/호버) */
  .section-services__grid .service-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease-out;
    transition-delay: var(--card-delay, 0s);
    backdrop-filter: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    justify-content: center;
    gap: 0.5em;
    --card-default-bg: #000;
    --card-hover-bg: #fff;
  }
  .section-services__grid.is-inview .service-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--card-delay, 0s);
  }
  .section-services__grid.is-inview.reveal-done .service-card {
    backdrop-filter: blur(10px);
    transition-delay: 0s;
  }
  .section-services__grid .service-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
  }
  .section-services__grid .service-card.service-card--hover-green {
    --card-default-bg: #4984f1;
    --card-hover-bg: #fff;
  }
  .section-services__grid .service-card.service-card--hover-blue {
    --card-default-bg: #0047b3;
    --card-hover-bg: #fff;
  }
  .section-services__grid .service-card.service-card--hover-navy,
  .section-services__grid .service-card.service-card--hover-purple,
  .section-services__grid .service-card.service-card--hover-teal,
  .section-services__grid .service-card.service-card--hover-brown {
    --card-default-bg: #000;
    --card-hover-bg: #fff;
  }
  .section-services__grid .service-card.service-card--hover-slate {
    --card-default-bg: #1682a3;
    --card-hover-bg: #fff;
  }
  .section-services__grid .service-card.service-card--hover-visual {
    --card-default-bg: #15a1a1;
    --card-hover-bg: #fff;
  }
  /* 오버레이: 디폴트 검정/어두운색 0.4, 호버 시 흰색 100% */
  .section-services__grid .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-default-bg);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease-out, background 0.35s ease-out;
    border-radius: 8px;
    backface-visibility: hidden;
  }
  .section-services__grid .service-card:hover::before {
    background: var(--card-hover-bg);
    opacity: 1;
  }
  /* SNS 콘텐츠, 이벤트 기획, 온라인채널, Visuals & Graphics: 이미지 제거 + 단색 배경, 흰색 텍스트 가독 */
  .section-services__grid .service-card.service-card--hover-blue::after,
  .section-services__grid .service-card.service-card--hover-green::after,
  .section-services__grid .service-card.service-card--hover-slate::after,
  .section-services__grid .service-card.service-card--hover-visual::after {
    opacity: 0;
    pointer-events: none;
  }
  .section-services__grid .service-card.service-card--hover-blue::before,
  .section-services__grid .service-card.service-card--hover-green::before,
  .section-services__grid .service-card.service-card--hover-slate::before,
  .section-services__grid .service-card.service-card--hover-visual::before {
    opacity: 1;
    background: var(--card-default-bg);
  }
  .section-services__grid .service-card.service-card--hover-blue:hover::before,
  .section-services__grid .service-card.service-card--hover-green:hover::before,
  .section-services__grid .service-card.service-card--hover-slate:hover::before,
  .section-services__grid .service-card.service-card--hover-visual:hover::before {
    background: var(--card-hover-bg);
    opacity: 1;
  }
  /* 이미지: 항상 노출 (SNS·이벤트 제외) */
  .section-services__grid .service-card::after {
    opacity: 1;
    z-index: 0;
    border-radius: 8px;
    backface-visibility: hidden;
  }
  .section-services__grid .service-card__title-en {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 12px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    z-index: 3;
    margin: 0;
    transition: opacity 0.35s ease-out;
    backface-visibility: hidden;
  }
  .section-services__grid .service-card__title,
  .section-services__grid .service-card__desc {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    text-align: center;
    align-self: center;
    margin: 0;
    transition: opacity 0.35s ease-out 0.1s, visibility 0s linear 0.5s;
    color: #222;
  }
  .section-services__grid .service-card:hover .service-card__title,
  .section-services__grid .service-card:hover .service-card__desc {
    opacity: 1;
    visibility: visible;
    color: #222;
    pointer-events: auto;
    transition: opacity 0.35s ease-out 0.06s, visibility 0s linear 0s;
  }
  .section-services__grid .service-card:hover {
    justify-content: center;
  }
  .section-services__grid .service-card:hover .service-card__title-en {
    opacity: 0;
  }
  .section-services__grid .service-card:hover .service-card__title {
    margin: 0;
  }
  .section-services__grid .service-card:hover .service-card__desc {
    color: #333;
    margin: 0;
  }
  /* 서비스 섹션 하단 여백 제거 (스탯 섹션과 붙임) */
  .section-services + .section-stats {
    margin-top: 0;
  }
}

/* 태블릿: 1024px 이하 */
@media screen and (max-width: 1024px) {
  /* 태블릿에서 container 여백은 common.css에서 처리 */

  /* 태블릿: 비디오 원본 비율 유지(세로 짧아짐), 100vh 대신 mp4 비율 */
  .hero-section {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .hero-section__video {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    vertical-align: top;
  }

  .section-services {
    margin: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .section-services__box {
    width: 100%;
    min-width: 100%;
    margin-left: 0;
    margin-right: 0;
    flex: none;
    padding: 80px 0 80px 0;
  }

  .section-services__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .section-services__text {
    flex: none;
    width: 100%;
    text-align: left;
    position: static;
  }

  .section-services__title {
    font-size: 36px;
    text-align: left;
    color: #222;
  }

  /* 테블릿: 모바일처럼 한 줄에 카드 1개 */
  .section-services__grid {
    flex: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: stretch;
  }

  .section-services__column,
  .section-services__column--1,
  .section-services__column--2 {
    flex: none;
    width: 100%;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .section-services__grid .service-card {
    width: 100%;
    max-width: none;
  }

  /* 테블릿: 모바일처럼 카드별 스크롤 노출 */
  .section-services .section-services__text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .section-services.is-inview .section-services__text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }
  .section-services__grid .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .section-services__grid .service-card.is-inview {
    opacity: 1;
    transform: translateY(0);
  }

  .section-services__grid .service-card__title-en,
  .section-services__grid .service-card__title,
  .section-services__grid .service-card__desc {
    text-align: left;
    align-self: flex-start;
  }

  .section-services__grid .service-card__title-en {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
  }

  /* 테블릿: 호버 없음 — 키워드·제목·설명 항상 노출, 오버레이 0.5 고정 */
  .section-services__grid .service-card__title-en {
    opacity: 1 !important;
  }
  .section-services__grid .service-card:hover .service-card__title-en {
    opacity: 1 !important;
  }
  .section-services__grid .service-card__title,
  .section-services__grid .service-card__desc {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
  }
  .section-services__grid .service-card__desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .section-services__grid .service-card__desc br {
    display: none;
  }
  .section-services__grid .service-card:hover .service-card__title,
  .section-services__grid .service-card:hover .service-card__desc {
    opacity: 1;
    visibility: visible;
    color: #fff !important;
  }
  .section-services__grid .service-card:hover .service-card__desc {
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .section-services__grid .service-card::before {
    opacity: 0.5;
    background: var(--card-hover-bg, #000);
  }
  .section-services__grid .service-card:hover::before {
    opacity: 0.5;
    background: var(--card-hover-bg, #000);
  }

  /* 테블릿: 카드별 오버레이/단색 변수 (모바일과 동일) */
  .section-services__grid .service-card {
    --card-hover-bg: linear-gradient(160deg, #0d0d0d 0%, #1a1a35 50%, #0d0d0d 100%);
  }
  .section-services__grid .service-card.service-card--hover-navy { --card-hover-bg: linear-gradient(45deg, #452a12 0%, #664419 55%, #452a12 100%); }
  .section-services__grid .service-card.service-card--hover-green { --card-hover-bg: #5c2d45; }
  .section-services__grid .service-card.service-card--hover-purple { --card-hover-bg: #3d4d75; }
  .section-services__grid .service-card.service-card--hover-teal { --card-hover-bg: linear-gradient(270deg, #0d4242 0%, #1a5058 60%, #0d4242 100%); }
  .section-services__grid .service-card.service-card--hover-blue { --card-hover-bg: linear-gradient(315deg, #643d15 0%, #664a1a 50%, #643d15 100%); }
  .section-services__grid .service-card.service-card--hover-brown { --card-hover-bg: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%); }
  .section-services__grid .service-card.service-card--hover-slate { --card-hover-bg: linear-gradient(200deg, #1e2d42 0%, #2d3d55 50%, #1e2d42 100%); }
  .section-services__grid .service-card.service-card--hover-visual { --card-hover-bg: #1a5f5f; }
  .section-services__grid .service-card.service-card--hover-green { --card-default-bg: #4984f1; }
  .section-services__grid .service-card.service-card--hover-blue { --card-default-bg: #0047b3; }
  .section-services__grid .service-card.service-card--hover-slate { --card-default-bg: #1682a3; }
  .section-services__grid .service-card.service-card--hover-visual { --card-default-bg: #15a1a1; }
  .section-services__grid .service-card.service-card--hover-blue::after,
  .section-services__grid .service-card.service-card--hover-green::after,
  .section-services__grid .service-card.service-card--hover-slate::after,
  .section-services__grid .service-card.service-card--hover-visual::after {
    opacity: 0;
    pointer-events: none;
  }
  .section-services__grid .service-card.service-card--hover-blue::before,
  .section-services__grid .service-card.service-card--hover-green::before,
  .section-services__grid .service-card.service-card--hover-slate::before,
  .section-services__grid .service-card.service-card--hover-visual::before {
    opacity: 1;
    background: var(--card-default-bg);
  }
  .section-services__grid .service-card.service-card--hover-blue:hover::before,
  .section-services__grid .service-card.service-card--hover-green:hover::before,
  .section-services__grid .service-card.service-card--hover-slate:hover::before,
  .section-services__grid .service-card.service-card--hover-visual:hover::before {
    opacity: 1;
    background: var(--card-default-bg);
  }

  /* 테블릿: 한 줄에 하나라 카드 높이 축소, 하단 여백 확대 */
  .service-card {
    aspect-ratio: auto;
    min-height: 88px;
    padding: 36px 36px 36px 36px;
  }

  .section-services + .section-stats {
    margin-top: 0;
  }

  .section-stats__header {
    max-width: 100%;
    margin: 0;
  }

  .section-stats__title {
    font-size: 36px;
  }

  .section-stats__carousel-wrap {
    padding-left: clamp(16px, 4vw, 80px);
  }

  .section-works {
    padding: 80px 0;
  }

  .section-works__header {
    max-width: 100%;
    margin: 0;
  }

  .section-works__title {
    font-size: 36px;
  }

  .section-works__carousel-wrap {
    padding-left: clamp(16px, 4vw, 80px);
  }

  /* Works 모달 */
  .works-modal__container {
    width: 95%;
    max-width: 700px;
  }

  .works-modal__info {
    padding: 24px;
  }

  .works-modal__title {
    font-size: 20px;
  }

  .works-modal__desc {
    font-size: 14px;
  }

  .works-modal__gallery {
    padding: 24px 24px 60px;
  }

  .works-modal__gallery-item {
    flex: 1 1 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
  }
}

/* 모바일: 768px 이하 */
@media screen and (max-width: 768px) {
  /* 모바일에서 container 여백은 common.css에서 처리 */

  .hero-section {
    height: calc(180vh + 700px); /* AIWEB 전환 후 스크롤 약 700px 더 */
    height: calc(180dvh + 700px);
  }

  .hero-section__video {
    display: none;
  }

  .hero-section__image--mo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.35s ease;
  }

  .hero-section__overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    transition: opacity 0.35s ease;
  }

  /* 모바일: 비주얼 블록(텍스트+인디케이터)을 한 덩어리로 fixed → is-past 시 함께 스크롤 */
  .hero-section__visual-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 2;
    transition: opacity 0.35s ease;
  }

  /* 모바일: 텍스트를 비주얼(100dvh/100vh) 안에서만 표시 */
  .hero-section__copy-wrap {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    transition: opacity 0.35s ease;
  }

  .hero-section__copy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 720px;
    margin: 0;
    padding: 0 24px;
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%) scale(var(--hero-scale));
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .hero-section__copy-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-section__copy-line--1 {
    transition-delay: 0s;
  }

  .hero-section__copy-line--2 {
    transition-delay: 0.7s;
  }

  .hero-section__copy-line--3 {
    transition-delay: 0.9s;
  }

  .hero-section.is-visible .hero-section__copy-line {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-section.is-visible .hero-section__copy-line--1 {
    transition-delay: 0.3s;
  }

  .hero-section.is-visible .hero-section__copy-line--2 {
    transition-delay: 0.8s;
  }

  .hero-section.is-visible .hero-section__copy-line--3 {
    transition-delay: 1.25s;
  }

  .hero-section__copy-point {
    color: var(--color-point-dark);
  }

  /* 스크롤 끝나면 이 문구로 전환 (AIWEB) */
  .hero-section__copy-end {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    margin: 0;
    padding: 0 24px;
    font-size: clamp(56px, 8vw, 76px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.65s ease 0.2s;
    pointer-events: none;
  }

  .hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity 0.35s ease;
  }

  /* 모바일: AIWEB으로 바뀐 뒤 700px 더 스크롤 후 fixed 해제 (is-past는 fixed 해제만) */
  .hero-section.is-aiweb .hero-section__copy {
    opacity: 0;
    pointer-events: none;
  }

  .hero-section.is-aiweb .hero-section__copy-end {
    opacity: 1;
  }

  /* AIWEB 구간 700px 스크롤 끝난 뒤 fixed 해제 → 비주얼이 위로 스크롤 (인디케이터 포함) */
  .hero-section.is-past .hero-section__image--mo,
  .hero-section.is-past .hero-section__overlay,
  .hero-section.is-past .hero-section__visual-wrap {
    position: absolute;
    top: calc(80vh + 700px);
    top: calc(80dvh + 700px);
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }

  /* 다음 섹션이 스크롤 시 비주얼 위로 올라오도록 */
  .section.section-services {
    position: relative;
    z-index: 10;
    margin: 0;
    min-height: auto;
    padding: 0;
  }

  .section-services__box {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    padding: 80px 0;
  }

  .section-services__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
  }

  .section-services__text {
    width: 100%;
    text-align: center;
  }

  .section-services__title {
    font-size: 28px;
    text-align: center;
    color: #222;
  }

  /* 모바일: 그리드 표시, 하단 일렬 카드형 (PC와 동일 콘텐츠 반응형) */
  .section-services__grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: stretch;
  }

  .section-services__column,
  .section-services__column--1,
  .section-services__column--2 {
    flex: none;
    width: 100%;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* 모바일 서비스 카드: 레이아웃 + 오버레이 + 스크롤 노출 */
  .section-services__grid .service-card {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    min-height: 120px;
    padding: 40px 24px;
    border-radius: 16px;
    text-align: center;
    justify-content: center;
    --card-hover-bg: linear-gradient(160deg, #0d0d0d 0%, #1a1a35 50%, #0d0d0d 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .section-services__grid .service-card.service-card--hover-navy { --card-hover-bg: linear-gradient(45deg, #452a12 0%, #664419 55%, #452a12 100%); }
  .section-services__grid .service-card.service-card--hover-green { --card-hover-bg: #5c2d45; }
  .section-services__grid .service-card.service-card--hover-purple { --card-hover-bg: #3d4d75; }
  .section-services__grid .service-card.service-card--hover-teal { --card-hover-bg: linear-gradient(270deg, #0d4242 0%, #1a5058 60%, #0d4242 100%); }
  .section-services__grid .service-card.service-card--hover-blue { --card-hover-bg: linear-gradient(315deg, #643d15 0%, #664a1a 50%, #643d15 100%); }
  .section-services__grid .service-card.service-card--hover-brown { --card-hover-bg: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%); }
  .section-services__grid .service-card.service-card--hover-slate { --card-hover-bg: linear-gradient(200deg, #1e2d42 0%, #2d3d55 50%, #1e2d42 100%); }
  .section-services__grid .service-card.service-card--hover-visual { --card-hover-bg: #1a5f5f; }

  /* 단색 카드(녹·블루·슬레이트·비주얼): PC와 동일하게 이미지 제거, 단색 배경 */
  .section-services__grid .service-card.service-card--hover-green { --card-default-bg: #4984f1; }
  .section-services__grid .service-card.service-card--hover-blue { --card-default-bg: #0047b3; }
  .section-services__grid .service-card.service-card--hover-slate { --card-default-bg: #1682a3; }
  .section-services__grid .service-card.service-card--hover-visual { --card-default-bg: #15a1a1; }
  .section-services__grid .service-card.service-card--hover-blue::after,
  .section-services__grid .service-card.service-card--hover-green::after,
  .section-services__grid .service-card.service-card--hover-slate::after,
  .section-services__grid .service-card.service-card--hover-visual::after {
    opacity: 0;
    pointer-events: none;
  }

  .section-services__grid .service-card::after {
    opacity: 1;
    z-index: 0;
  }
  .section-services__grid .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-hover-bg, #000);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
  }
  .section-services__grid .service-card:active::before,
  .section-services__grid .service-card:hover::before {
    opacity: 0.5;
  }
  .section-services__grid .service-card.service-card--hover-blue::before,
  .section-services__grid .service-card.service-card--hover-green::before,
  .section-services__grid .service-card.service-card--hover-slate::before,
  .section-services__grid .service-card.service-card--hover-visual::before {
    opacity: 1;
    background: var(--card-default-bg);
  }
  .section-services__grid .service-card.is-inview {
    opacity: 1;
    transform: translateY(0);
  }

  .section-services__grid .service-card__title-en {
    display: block;
    position: relative;
    transform: none;
    margin-bottom: 12px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    visibility: visible;
    opacity: 1;
    z-index: 3;
    text-align: center !important;
    align-self: center;
  }

  .section-services__grid .service-card__title,
  .section-services__grid .service-card__desc {
    text-align: center;
    align-self: center;
  }
  .section-services__grid .service-card__title {
    margin-bottom: 4px;
  }
  .section-services__grid .service-card__desc {
    margin-top: 0;
  }

  /* 모바일 서비스: 타이틀 섹션 진입 시, 카드는 스크롤 개별 노출 */
  .section-services .section-services__text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .section-services.is-inview .section-services__text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .section-services + .section-stats {
    margin-top: 0;
  }

  .section-stats {
    padding: 80px 0;
    margin: 80px 0;
  }

  .section-stats__header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
  }

  .section-stats__nav {
    display: none;
  }

  .section-stats__title {
    font-size: 28px;
    text-align: center;
    order: 1;
  }

  .section-stats__carousel-wrap {
    padding-left: 24px;
  }

  .stats-nav-btn {
    width: 35px;
    height: 35px;
  }

  .stats-carousel {
    padding: 0;
  }

  .stats-carousel .swiper-slide {
    width: min(680px, calc(100vw - 40px));
  }

  .stats-card {
    width: 100%;
    height: auto;
    aspect-ratio: 680 / 480;
    padding: 24px;
  }

  .stats-card__title {
    font-size: 18px;
    line-height: 27px;
  }

  .stats-card__number-value,
  .stats-card__number-plus {
    font-size: 60px;
    line-height: 90px;
  }

  .stats-nav-btn.swiper-button-prev::before,
  .stats-nav-btn.swiper-button-next::before {
    width: 12px;
    height: 12px;
  }

  .section-works {
    padding: 0;
    margin: 80px 0;
  }

  .section-works__more-wrap {
    display: block;
    text-align: center;
  }

  .section-works__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-section-title);
    text-decoration: none;
    border: 1px solid var(--color-section-title);
    border-radius: 8px;
  }

  .section-works__more-icon {
    flex-shrink: 0;
  }

  .section-works__header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .section-works__nav {
    display: none;
  }

  .section-works__title {
    font-size: 34px;
    text-align: center;
    order: 1;
  }

  .section-works__carousel-wrap {
    margin-top: 32px;
    padding-left: 24px;
  }

  .works-carousel .swiper-slide {
    width: min(420px, calc(100vw - 40px));
  }

  .works-card {
    width: 100%;
    height: auto;
  }

  .works-card__image {
    height: auto;
    aspect-ratio: 420 / 420;
  }

  .works-card__content {
    flex: 0 0 auto;
    padding: 24px 0;
  }

  /* Works 모달 */
  .works-modal__container {
    width: calc(100% - 48px);
    max-width: none;
    max-height: 100vh;
    border-radius: 12px;
    margin: 0 24px;
    box-sizing: border-box;
  }

  .works-modal__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .works-modal__info {
    padding: 20px;
  }

  .works-modal__title {
    font-size: 18px;
  }

  .works-modal__desc {
    font-size: 14px;
  }

  .works-modal__gallery {
    padding: 20px 20px 60px;
    gap: 8px;
  }

  .works-modal__gallery-item {
    flex: 1 1 100%;
    min-width: 0;
  }
}