/* ★ 공통요소 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'pretendard';
  background-color: #f8faff;
}

body {
  margin: 0;
  color: #222;
  font-family: 'Pretendard', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

#wrap {
  min-height: 100vh;
}

/* 공통 inner */
.inner {
  max-width: 1540px;
  width: 90%;
  margin: 0 auto;
}

/* 공통 섹션 타이틀 */
.section_title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  font-family: 'Alatsi';
  z-index: 999;
}

.section_title.center {
  text-align: center;
}

.section_desc {
  font-size: 14px;
  line-height: 1.7;
  color: #8d8d8d;
  margin: 0 0 40px;
}

.section_desc.center {
  text-align: center;
}

/* ★ 최상단 히어로 */
#hero {
  padding: 40px 0 140px;
}

.hero_inner {
  position: relative;
  text-align: center;
}

.hero_inner a {
  transition: 1.3s;
  z-index: 999;
}

/* mouse-follower 스타일 */
.mf-cursor:before {
  background-color: #ff5e00;
  opacity: 1 !important;
  width: 10px;
  height: 10px;
  top: -20px;
  left: -20px;
  text-align: center;
  z-index: 10;
}

.mf-cursor-text {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  z-index: 999;
}

/* 상단 이름/이메일 */
.hero_meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
}

.hero_name {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #222;
}

.hero_email {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #b3b3b3;
}

/* 큰 단어 3개 */
#hero .hero_word {
  font-weight: 500;
  font-size: 130px;
  letter-spacing: -0.08em;
  line-height: 1.2;
  font-family: "Alatsi";
  color: #e1e1e4;
  z-index: 999;
}

#hero .hero_word:hover {
  color: #646464;
}

.word-resume {
  font-size: 96px;
  margin-bottom: 40px;
}

.word-work {
  font-size: 72px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.word-contact {
  font-size: 80px;
  margin-top: 10px;
}

/* 가운데 콜라주 이미지 */
.hero_collage {
  display: flex;
  align-items: center;
  justify-content: center;

}

/* 카드 컨테이너 */
.collage_item {
  width: 17%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: visible;
}

/* 실제 드래그 요소 */
.collage_inner {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(68, 68, 68, 0.4);
  cursor: grab;
  transform-origin: center center;
  will-change: transform;
}

/* 레이아웃용 기울기/위치 */
.collage_item:nth-child(1) {
  width: 14%;
  aspect-ratio: 1 / 1;
  transform: translateY(4px) rotate(-10deg);
}

.collage_item:nth-child(2) {
  transform: translateY(-5px) rotate(0deg);
}

.collage_item:nth-child(3) {
  width: 14%;
  aspect-ratio: 1 / 1;
  transform: translateY(-10px) rotate(10deg);
}

.collage_item:nth-child(4) {
  transform: translateY(-14px) rotate(-14deg);
}

.collage_inner video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* hero 반응형 */
@media (max-width:960px) {
  #hero .hero_word {
    font-size: 100px;
  }
}

@media (max-width:520px) {
  #hero {
    padding: 40px 0;
  }

  #hero .hero_word {
    font-size: 70px;
  }

  .collage_item {
    width: 30%;
  }

  .collage_item:nth-child(1) {
    width: 22%;
  }

  .collage_item:nth-child(3) {
    width: 22%;
  }
}

/* ★ 이력서 */
#resume {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  font-family: 'pretendard';
}

.resume_inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* 왼쪽 Profile */
.resume_profile {
  flex: 0 0 34%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resume_title {
  font-size: 60px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #222;
}

.resume_intro {
  margin: 0 0 40px;
}

/* 메인 선언 문장 */
.intro_main {
  font-size: 30px;
  line-height: 1.7;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  color: #222;
}

/* 이름 강조 */
.intro_main strong {
  font-weight: 700;
  font-size: 30px;
  color: #ff5e00;
}

.intro_label {
  margin-top: 30px;
  margin-bottom: 6px;
  font-size: 18px;
  color: #4e4e4e;
  font-weight: 600;
  letter-spacing: -1px;
}

/* 보조 철학 문장 */
.intro_sub {
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.6;
  color: #505050;
  font-weight: 300;
}

.resume_profile_bottom {
  gap: 32px;
}

.resume_photo_wrap {
  display: flex;
  gap: 16px;
}

.resume_photo {
  width: 160px;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f2f2f2;
}

.resume_profile video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.resume_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume_qr_wrap {
  display: flex;
  gap: 10px;
}

.resume_qr_wrap img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.resume_profile_info {
  font-size: 16px;
  line-height: 1.7;
}

.profile_name {
  font-size: 18px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 5px;
  color: #222;
}

.profile_line {
  margin: 0;
  color: #444;
}

/* 오른쪽 이력 */
.resume_info {
  flex: 0 0 66%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-around;
  color: #222;
}

.resume_row {
  display: flex;
  gap: 40px;
}

.resume_block {
  flex: 1;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0px 0px 4px 2px #e2e6eb;
  transition: 0.6s ease;
}

.resume_block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(158, 158, 158, 0.3);
  background: linear-gradient(135deg,
      #f6fbff 0%,
      #f0f0f0 100%);
}

.resume_block_title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 10px;
}

.resume_block_title span {
  font-size: 16px;
  font-weight: 300;
  color: #707070;
}

.resume_block_item {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
  margin: 0;
  color: #222;
}

.logo_img_wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.logo_img_wrap img {
  width: 60px;
  height: 60px;
}


/* resume 반응형 */
@media (max-width:1080px) {
  #resume {
    width: 100%;
  }

  .resume_inner {
    gap: 20px;
  }

  .resume_profile {
    flex: 0 0 auto;
  }

  .resume_intro {
    margin: 0 0 20px;
    font-size: 18px;
    margin-bottom: 50px;
  }
}

@media (max-width:960px) {
  .resume_inner {
    flex-direction: column;
  }

  .resume_profile {
    align-items: center;
    margin-bottom: 50px;
  }

  .resume_intro {
    width: 100%;
    font-size: clamp(16px, 5vw, 24px);
    text-align: center;
    margin-top: 50px;
  }

  .resume_title {
    text-align: center;
    font-size: clamp(24px, 10vw, 50px);
  }

  .resume_intro br {
    display: none;
  }

  .resume_photo {
    width: 50%;
    margin: auto;
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .intro_label,
  .intro_sub {
    text-align: center;
  }
}

@media (max-width:560px) {
  #resume {
    height: auto;
  }

  .resume_row {
    flex-direction: column;
  }

  .resume_intro {
    width: 90%;
    font-size: clamp(16px, 4vw, 24px);
    text-align: center;
    margin: 20px auto 50px;
  }

  .resume_block {
    text-align: center;
  }

  .resume_block_title {
    width: 80%;
    margin: auto;
  }
}

/* ★ 슬라이드  */
#slide {
  padding: 80px 0 40px;
  margin-bottom: 200px;
  background: url(../img/slide_bg.png) no-repeat center/cover;
}

#slide .slide_wrap {
  height: 80vh;
  margin: 0 auto;
  text-align: center;
}

.sec_title {
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -0.06em;
  line-height: 1.2;
  color: #222;
  text-align: center;
  margin: 20px;
  font-weight: 700;
}

#slide .sec_sub {
  font-size: 22px;
  color: #636363;
  margin-bottom: 40px;
  line-height: 1.6em;
}

.sec_sub {
  font-size: 22px;
  color: #636363;
  margin-bottom: 100px;
  line-height: 1.6em; 
}

.sec_sub span {
  color: #ff4800;
  font-weight: 600;
}

/* 슬라이더 */
.studio_slider {
  width: 100%;
  height: 100%;
}

.studio_slider .swiper-wrapper {
  align-items: center;
}

/* 슬라이드 카드 */
.studio_slider .swiper-slide {
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center center;
  opacity: 0.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  transition:
    transform 0.6s ease,
    opacity 0.4s ease,
    box-shadow 0.4s ease;
}

/* 슬라이드 이미지 */
.studio_slider .swiper-slide img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* 슬라이드 설명 텍스트 */
.studio_slider .desc {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -2px;
  margin-top: 10px;
  transition: opacity 0.4s ease;
}

.studio_slider .desc_2 p {
  font-size: 18px;
  letter-spacing: 0px;
  margin-top: 10px;
  line-height: 1.4em;
}

/* 슬라이드 텍스트 반응형 */
@media (max-width:560px) {
  #slide .slide_wrap {
    height: auto;
  }

  .sec_title {
    font-size: 34px;
  }

  .sec_sub {
    width: 90%;
    margin: auto;
    text-align: center;
  }
}

/* ★ 전체 작업물  */
#total-work {
  margin-bottom: 80px;
}

.work_inner {
  text-align: center;
}

.work_title {
  text-align: start;
  font-weight: 700;
  font-size: 30px;
  color: #222;
  margin-top: 100px;
}

.title_desc {
  text-align: start;
  font-size: 18px;
}


/* GRID 구조는 그대로 유지 */
.work_grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 140px;
  font-family: 'pretendard';
}

.banner_grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 100px;
  font-family: 'pretendard';
}

.banner_item {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
}

.banner_item .thum {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.banner_item .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 전체 카드 */
.work_item {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

/* 이미지 영역(기존 aspect-ratio 유지) */
.work_item .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #e5e5e5;
}

.work_item .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 텍스트 영역 */
.work_text {
  padding: 14px 20px;
  text-align: left;
  background-color: rgba(193, 194, 197, 0.1);
}

.work_text h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #4b4b4b;
  letter-spacing: -0.5px;
}

.work_text p {
  margin: 0;
  font-size: 16px;
  color: #747474;
  letter-spacing: -1.1px;
  line-height: 1.4em;
}

/* 호버 효과(선택 옵션) */
.work_item:hover .thumb img {
  transform: scale(1.04);
  transition: 0.4s ease;
}

.work_item:hover {
  box-shadow: 0 0 10px 3px #e9e9e9;
}

.video_wrap {
  display: flex;
  gap: 50px;
}

.ai_video {
  width: 300px;
  height: 600px;
  margin-top: 20px;
  margin-bottom: 80px;
  position: relative;
}

.ai_video video {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
  border: 8px solid #6d6d6d;
  filter: brightness(0.3);
  transition: 0.8s;
}

.ai_video video:hover {
  scale: 1.04;
  filter: brightness(1); 
}

.ai_video .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.ai_video .play span {
  font-size: 50px;
  color: #cfcfcf;
}

.ai_video:hover .play {
  opacity: 0;
  pointer-events: none;
}

.pop_grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 100px;
  font-family: 'pretendard';
}

/* 전체 카드 */
.pop_item {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.pop_item .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e5e5e5;
}

.pop_item .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store_wrap{
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.store_wrap .store{
  width: 400px;
  transition: 0.8s;
}

.store_wrap .store:hover{
  scale: 1.1;
}


/* total-work 반응형 */
@media (max-width:860px) {
  .work_title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
  }

  .work_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pop_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.video_wrap{
  display: block;
}
}

@media (max-width:460px) {
  .work_grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .pop_grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* ★ CONTACT  */
#contact {
  background: url(../img/con_bg.png);
  padding: 100px 0 80px;
  height: 100vh;
}

.contact_inner {
  margin: 0 auto;
  text-align: center;
}

.contact_title {
  font-size: 360px;
  font-weight: 800;
  letter-spacing: -20px;
  color: #ffffff;
  margin: 0 0 40px;
}

.con_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  color: rgb(255, 230, 0);
}

.con_wrap img {
  width: 150px;
  height: 150px;
}

.contact_info {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
}

.con_info {
  margin-top: 70px;
  color: #cfcfcf;
  line-height: 1.4em;
}


/* CONTACT반응형 */
@media (max-width:1400px) {
  .contact_title {
    font-size: 250px;
  }
}

@media (max-width:1300px) {
  .contact_title {
    font-size: 200px;
  }
}

@media (max-width:1028px) {
  .contact_title {
    font-size: 160px;
  }
}

@media (max-width:780px) {
  .contact_title {
    font-size: 120px;
  }
}

@media (max-width:560px) {
  .contact_title {
    font-size: 80px;
    letter-spacing: -10px;
  }
}

@media (max-width:380px) {
  .contact_title {
    font-size: 70px;
    letter-spacing: -10px;
  }
}

/* 모달디자인 */
.modal_wrap {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(100px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1000;
}

.modal {
  width: 90%;
  margin: auto;
  max-width: 1600px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal_wrap.open {
  opacity: 1;
  visibility: visible;
}

.modal_wrap.open .modal {
  transform: scale(1);
}

body.modal_open {
  overflow: hidden;
}


/* 모달 닫기버튼 */
.modal .close {
  position: absolute;
  top: 2%;
  right: 2%;
  z-index: 1000;
  cursor: pointer;
}

.modal .close span {
  color: #fff;
  font-size: 70px;
  font-weight: 100;
  opacity: 0.3;
  transition: 0.3s;
}

.modal .close span:hover {
  opacity: 0.8;
}

/* ★ (1) 배너 디자인 모달 */
.m_slide {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
}

.m_container {
  display: flex;
  align-items: center;
}

.m_item {
  height: 500px;
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  object-fit: cover;
}

/* 배너디자인 반응형 */
@media(max-width:768px) {
  .m_slide {
    height: 50vh;
  }

  .m_slide .swiper-button-prev {
    top: 90%;
  }

  .m_slide .swiper-button-next {
    top: 90%;
  }
}

/* (2) 팝업 디자인 모달 */
.p_modalWrap {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1000;
}

.p_modalWrap.open {
  opacity: 1;
  visibility: visible;
}

.p_slide {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
}

.p_container {
  display: flex;
  align-items: center;
}

.p_item {
  width: 600px;
  height: 600px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  object-fit: cover;
}

.p_item img {
  width: 600px;
  height: 600px;
}



/* 버튼 스타일 */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.25s ease;
  color: #ffffff;
}

/* hover */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.06);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  line-height: 1;
}

/* 위치 조정 */
.m_slide .swiper-button-prev {
  left: 100px;
}

.m_slide .swiper-button-next {
  right: 100px;
}

.p_slide .swiper-button-prev {
  left: 30px;
}

.p_slide .swiper-button-next {
  right: 30px;
}

/* modal 닫기버튼 */
.modal {
  position: relative;
}

.modal .close {
  position: absolute;
  top: 5%;
  right: 5%;
}

.modal .close span {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

/* 팝업창 반응형 */
@media (max-width:768px) {
  .p_slide {
    width: 100%;
  }

  .p_modalWrap {
    width: 100%;
    height: 80vh;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  .p_slide {
    width: 100%;
    height: 100%;
  }

  .p_item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p_slide .swiper-button-prev {
    top: 95%;
    left: 50px;
  }

  .p_slide .swiper-button-next {
    top: 95%;
    right: 50px;
  }
}