@import url(./module.css);

#wpadminbar{display: none;}
/*스크롤바 없애기*/
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


body {
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

html {
  scroll-behavior: smooth;
}

::selection {
    background: #000;
    color: #fff;
}

@font-face {
    font-family: 'neue-haas-grotesk-text';
    src: url('../fonts/NHaasGroteskTXPro-55Rg.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'neue-haas-grotesk-text';
    src: url('../fonts/NHaasGroteskTXPro-65Md.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'neue-haas-grotesk-text';
    src: url('../fonts/NHaasGroteskTXPro-75Bd.ttf');
    font-weight: 600;
}
@font-face {
    font-family: 'adobe-myungjo-std';
    src: url('../fonts/AdobeMyungjoStdM.otf');
    font-weight: 500;
}



.aos-item {
    width: 100%;
}

:root {
    --white: #fff;
    --black: #000;
    --red: #FF0000;
    --grey:#c6c6c6;
    --lightgrey:#E4E4E4;
    --darkgrey: rgba(69, 57, 57, 0.35);
    --background0: rgba(255, 255, 255, .9);
    --background1: rgba(255, 255, 255, .7);
    --lh: 10px;
    --btnPadding:3px 4px;
    --speed: 0.2s;

     /* Scale */
    --font-base: 12px;
    --font-m: 14px;
    --font-xm:16px;
    --font-l: 21px;
    --font-xl: 42px;
}


@media (max-width:768px) {
    :root{
    --font-base: 11px;
    --font-m: 14px;
    --font-xm:16px;
    --font-l: 18px;
    --font-xl: 32px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
    font-family: 'neue-haas-grotesk-text', "Noto Sans KR", "Noto Sans CJK KR", "Pretendard", sans-serif;
    letter-spacing: -0.005em;
}

html{
    margin-top:0 !important
}
body {
    background: var(--white);
    color: var(--black);
    width: 100%;
    font-size: var(--font-base);
    font-weight: 400;
    line-height: 1.3;
    word-break: keep-all;
    
}


/*----------HEADER----------*/

header {
    font-weight: 500;
}

#navContainer{
    width: 100%;
}


.floating-nav{
  
     position: -webkit-sticky;
    position: fixed;
      top: calc(var(--lh)*1.5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
      mix-blend-mode: difference;
}
.floating-nav.no-blend {
  mix-blend-mode: normal;
}
.menu-btn{
    position: fixed;
    right: var(--lh);
    top: calc(var(--lh)*1);
    z-index: 1000;
    mix-blend-mode: difference;
    width: 32px;
    height: 42px;
    display: none;
}


.menu-btn svg line{
    stroke: #fff;
    stroke-width: 1;
    fill: none;
    transition: .3s ease;
}

.menu-btn svg line {
    transition: .3s ease;
}
.menu-btn svg line {
    transform-box: fill-box;
    transform-origin: center;
}


/* 햄버거 기본 보임 */
.icon-hamburger {
    opacity: 1;
}

.icon-hamburger line {
    stroke: #fff;
    stroke-width: 1;
}

/* X 기본 숨김 */
.icon-close {
    opacity: 0;
}

.icon-close path {
    stroke: #fff;
    stroke-width:1;
}

/* active 되면 전환 */
.menu-btn.active .icon-hamburger {
    opacity: 0;
    
}

.menu-btn.active .icon-close {
    opacity: 1;
}

/* 아이콘 기본 스타일 */

.menu-btn svg {
    width: 30px;
    height: 30px;
    margin: auto;
    transition: opacity .25s ease;
}


#home{
    display: flex;
}

@media (max-width:760px) {
    .menu-btn{
        display: block;
    }
    #home{
        display: none;
    }
}


/* nav */
.nav-container {
    cursor: pointer;
    font-size: var(--font-base);
    display: flex;
     justify-content: center;
     align-items: center
}

.menu-label img {
    height:36px;
}
.floating-nav-black .nav-container{
    border: 2px solid var(--black);
}
.floating-nav-black .menu-label img{
    filter: contrast(0) brightness(0);
}

.floating-nav-black .logo-wrap{
    background-color: var(--black);
} 
#menu-main-menu {
    display: flex;
    flex-direction: row;
    text-align: center;
    opacity:0;
    justify-content: center;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    align-items: center;
    gap: 0;
    transition: transform var(--speed) ease;
    will-change: transform;
    
}
#menu-main-menu a{
    color: var(--red);
}

.nav-container.expanded #menu-main-menu {
    opacity: 1;
    transform: translateY(5px);
    pointer-events: auto;
    position: relative;
}

.nav-container.expanded .menu-label {
    opacity: 0;
    transform: translateY(-20px);
    display: none;
}

/* 하위 메뉴 */
.menu-item {
    text-decoration: none;
    padding: 6px 20px;     
    height: 30px;     
    line-height:30px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background0);
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow:var(--shadow);
    backdrop-filter: blur(10px);   
}
.menu-item:last-child{
    border-bottom: 0;
}
.menu-item:hover {
    background: var(--red);
   transition: color var(--speed) ease, background-color var(--speed) ease;
}

.menu-item:hover a {
    color: #fff !important;
}

/* 마지막 메뉴 */
#menu-item-176 {
    background: var(--red);
    padding: 6px 15px;    
    margin-left: calc(var(--lh)/2);
}
#menu-item-176 a{
    color: #fff;
}
#menu-item-176:hover{
    background: var(--black);
    color: var(--white);
    transition: color var(--speed) ease, background-color var(--speed) ease;

}

/* 글자만 왜곡 */
#menu-item-176 a {
    font-family: "adobe-myungjo-std", sans-serif;
    font-weight: 500;
    font-size:15px;
    transform: scaleX(1) scaleY(4.9) translateY(-0.7px);
    transform-origin: center;
    letter-spacing: 0.025em;
}


@media (max-width:768px) {
    #menu-item-172{
        display: none;
    }

    #menu-item-176 a {
        transform: scaleX(1) scaleY(4.4) translateY(-2px);
    }
}

/*----------Main----------*/

/*------BG-----*/
.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.third {
    flex: 1;
    position: relative;
    height: 100%;
}

canvas.glitch-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.canvas-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--btnPadding);
    color: var(--black);
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    background-color: var(--background1);
    backdrop-filter: blur(10px);
    transition: opacity var(--speed) ease;
}

@media (max-width:760px){


.menu-label img {
    height:46px;
}
    /* 🔥 여기 추가 */
    .container{
        flex-direction: column;
        height: 100vh;
    }

    .third{
        height: 33.333vh;
        width: 100%;
    }

    .canvas-title{
        bottom: 0;
        top: auto;
        transform: translate(-50%, 0%);
    }

}


/* ----section1---- */

.section{
    margin-top: 50px;
}
.filters {
    position: relative;
}
.filters ul{
    display: flex;
    flex-wrap: wrap;
    overflow: scroll;
    gap:4px;
    white-space: nowrap; /* 내부 텍스트 줄바꿈 방지 */
    width: 88%;
}

.filter li a{
    position: relative;
    padding-right:2px;
    color: var(--grey);
    font-size:var(--font-l)
}
.filter li a.active{
    color: var(--red);
}
.filter li a:hover{
    color: var(--red);
    transition: all var(--speed) ease;
}

.filter li a::after{
  content: ",";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width:3px;
  height: 100%;
  color: var(--grey);
  display: block;
}

.filter li:last-child a::after{
    display: none;
}


/* 토글 버튼 이미지 리스트 뷰 */

/* 토글 버튼 이미지 리스트 뷰 */

.switch-button {
  width: 64px;
  height: 32px;
  text-align: center;
  position: absolute;
  right: 10px;
  top: 0;
  transition: 0.3s ease all;
  border: 1px solid var(--red);
  
}


.switch-button-case{
    box-shadow:var(--shadow);
    
}

/* buttons */
.switch-button-case.left{
   position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  transition: 0.2s ease all;
   cursor: pointer;
}

.switch-button-case.right{
     position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    transition: 0.2s ease all;
     cursor: pointer;
}

/* sliding background */
.switch-button .active {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: var(--red);
  z-index: 0;
  transition: 0.2s ease all;
  
}


/* SVG 아이콘 */
.switch-button-case svg {
        position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  stroke:var(--red);
  stroke-width:1;
  fill: none;
  transition: 0.2s ease;
}


.active-case svg{
    stroke:var(--white)
}

.switch-button-case:hover {
  color: grey;
}

.switch-button-case:focus {
  outline: none;
}
.switch-button-case.left svg{
    width: 80% !important;
}

@media (max-width:760px) {
    .section{
    margin-top: 30px;
}

    .filters ul{
        width: 100%;
        justify-content: center;
    }
    .filter li a{
        line-height: 1.2;
    }
    .filters{
        padding-bottom: 70px;
    }
    .switch-button{
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

.filter li a:hover{
    
    transition: none;
}
}


/* -------- layout -------- */

.filters{
    margin-bottom: 10px;
}
.works {
  transition: all 0.3s ease;
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 gap: 20px 10px;
 width: 100%;
 padding:0 10px;
}

.work-item:nth-child(1),.work-item:nth-child(2),.work-item:nth-child(3){
    margin-top: 0;
}
.work-item{
   padding-top: 0;
   padding-bottom: 0;
}


/* 숨김 처리 */
.work-item.hidden {
    display: none !important;
}


.works .work-item:nth-child(3n) {
  border-right: 0;
}


.work-item a {
  position: relative;
  display: block;
}

.work-item a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  width: 100%;
  margin-bottom: var(--lh);
}

/* 첫 번째 이미지만 기본 표시 */
.work-item a img:first-child {
  position: relative;
  opacity: 1;
}

.work-title{
    font-size:var(--font-l);
    font-weight: 500;
    padding-bottom: var(--lh);
}
.tag{
    padding-bottom: var(--lh);
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--lh)/2);
}

.tag li a{
    background-color: var(--lightgrey);
    padding: var(--btnPadding);
    font-size:var(--font-base);
    white-space: nowrap;
}

.tag li a:hover{
    background-color:var(--red) !important;
    color: var(--white);
    transition: backgroundColor var(--speed) ease;
}

.work-item p{
    font-size: var(--font-m);
    padding-bottom: 50px;
}

/* view 모드 관련 */

.works.grid-view {
    
}

.works.list-view {
   grid-template-columns: 1fr 1fr ;
   padding-bottom: 50px;
}


.works.list-view .work-item img{
   max-width: 500px;
   padding-top: 3px;
}


.works.list-view .work-item{
    margin-top:0px;
    display: grid;
    grid-template-columns: 2fr 5fr;
    gap: 10px;
}

.works.list-view .work-item  h1{
    padding-top: 0;
}




/* top btn */


.top-btn{
    position: fixed;
    cursor: pointer;
    right:10px;
    bottom:10px;
    width: 32px;
    height: 32px; 
    z-index:1000;
    background-color: var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--speed) ease, transform var(--speed) ease;
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.top-btn svg{
 width: 18px;
  height: 18px;
  stroke:var(--white);
  stroke-width:1.5
}



.detail-back-btn{
    position: fixed;
    top: 10px;
    left: 10px;
  width: 32px;
    height: 32px; 
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
    z-index: 1200;
    box-shadow:var(--shadow);
        transform: rotate(-90deg);
}

.detail-back-btn svg{
    width: 18px;
    height: 18px;
    stroke: var(--white);
    stroke-width:1.5
}


.detail-back-btn:hover svg{
    stroke: var(--white);
}

@media (max-width:760px) {
    .detail-back-btn{
    background-color: transparent;
    top: calc(var(--lh)*1.4);
    
    }
}


/* footer */
footer {
position: relative;
min-height: 12vh;
padding-bottom:40px;
z-index: 900;
}

.footer-inner {
  width: 100%;
}

footer a {
  display: block;
  width: 100%;
  text-align: center;
  


}
footer img {
  width: 98%;
  display: inline-block;
  transform-origin: top;
  will-change: transform;
  
}


@media (max-width:760px){
    .works{
        grid-template-columns: 1fr;
    }

    .works.list-view {
    grid-template-columns: 1fr ;
          gap: 0;
    }

    .work-item{
        margin-top: 20px !important;
    }
    .work-item p{
        padding-bottom: 0;
    }

    .works.list-view .work-item p{
       display: none;
     }


     .works.list-view .works{
        border: 1px solid red;
  
     }

     .works.list-view .work-item {
        grid-template-columns: 2fr 26fr;
     }





}





/* -------------DETAIL PAGE------------- */

/* project-hero */
.project-hero{
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1;
}

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

/* project-overview */
.project-overview{
    position: relative;
    z-index: 2;
    background-color:var(--background1);
    backdrop-filter: blur(10px);
    padding: var(--lh);
}


.project-title{
    font-size: var(--font-xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    text-transform: uppercase;
    padding-bottom:var(--lh);
}


.project-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr); 
    width: 100%;
    margin-bottom:60px;
    align-items: start;
   
}

.project-content .tag li a{
    background-color: var(--white);
}

.info-left{
    font-size:var(--font-xm);
    grid-column: 1 / 7;
    line-height: 1.4;
}
.info-right{
font-size:var(--font-m);
grid-column: 10 / 13; 
}

.info-row{
    border-bottom: 1px solid var(--darkgrey);
    padding: 6px 0;
}

.info-row{
    display: grid;
    grid-template-columns: 1fr 2fr;
}
.info-row .label{
    color: var(--darkgrey);
}

/* project-media */


/* 영상 */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
   background-color:var(--background2); /* 로딩 중 회색 박스 */

}

.video-wrapper.half{
    padding-top: 125%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.project-media{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--lh);
  padding-bottom: 20px;
}

/* 이미지 */
.media-item img,
.project-media img,
.video-wrapper
{
  width: 100%;
  display: block;
  height: auto;
  grid-column: span 12;
}

.half{
      grid-column: span 6 !important;

}


@media (max-width:760px) {
    .project-content{
        display: block;
        margin-bottom: 40px;
    }
    .tag {
        padding-bottom: 10px;
    }

    .project-desc{
        margin-bottom: 20px;
    }
    .info-left{
        font-size: var(--font-m)
    }

    .half{
      grid-column: span 12 !important;

}

}




/* ------------ about page ------------ */

.about-container .project-title{
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.008em;
    padding-bottom:calc(var(--lh)*5);
}

.about-container .project-title a{
    position: relative;
    margin-right: -6px;
}

.about-container .project-title img{
    height:40px;
}

.about-container .project-title a::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-bottom: 2px solid var(--red);
  width:96%;
  height: 60%;
  color: var(--grey);
  display: block;
}

.about-content{
    width: 100%;
    margin: 0 auto;
    font-size: var(--font-xm);
    padding-bottom: 100px;
}

.client-section ul {
    column-count: 4;
    column-gap: 40px; /* 간격 조절 */
}
@media (max-width: 768px) {
    .client-section ul {
        column-count: 1;
    }
}
.client-section li {
    break-inside: avoid;
}

.about-content3{
    padding-bottom: 140px;
}

/* about-content1 */
.about-content1{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: calc(var(--lh)*2);
}


.about-content h3{
    color: var(--red);
    font-weight: 500;
    padding-bottom: calc(var(--lh));
    text-transform: uppercase;
}

.team-section {
  grid-column: 7 / span 3;
}

.contact-section {
  grid-column: 10 / -1;
}

.contact-section a{
    text-decoration: underline;
    text-underline-position: under;
    display: inline;
    text-decoration-thickness: 0.8px;
}

/* about-content2 */
.about-content2, .about-content3{
    border-top: 1px solid #b4b4b4;
    padding-top:var(--lh)
}
.about-content2 div{
    display: grid;
   gap: calc(var(--lh)*2);
}


.about-content2 div p, .about-content3 div p{
    line-height: 1.4;
}


/* about-content3 */
.about-content3 div{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: calc(var(--lh)*2);
}

.press-content li {
    display: flex;
    gap: 10px;
}

.press-content li::before {
    content: "–";
}

@media (max-width:760px) {
    
.about-container .project-title{
    font-size: 24px;
    padding-bottom:calc(var(--lh)*3);
}

.about-container .project-title img{
    height:21px;
    padding-right: 2px;
}
.about-container .project-title a::after{
    display: none;
}

.about-content{
    padding-bottom: calc(var(--lh)*5);
    font-size: var(--font-m);
}
.about-content1{
    display: flex;
    flex-direction: column;
}

.about-content2 div, .about-content3 div{
    display: flex;
    flex-direction: column;
}
.about-content2 div{
    gap: 0;
}
}
