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

body{
  background:#090909;
  color:#FFF;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  overflow:hidden;
}

/* INTRO */

.intro{
  position:fixed;
  top:32px;
  left:32px;
  z-index:100;
  max-width:420px;
}

.intro-en{
  font-size:12px;
  line-height:1.7;
  color:rgba(255,255,255,.75);
  margin-bottom:12px;
}

.intro-kr{
  font-size:11px;
  line-height:1.8;
  color:rgba(255,255,255,.5);
  margin-bottom:16px;
}

.intro-links{
  display:flex;
  gap:16px;
}

.intro-links a{
  font-size:11px;
  color:rgba(255,255,255,.75);
  text-decoration:none;
  position:relative;
}

.intro-links a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:1px;
  background:#fff;
  transition:.3s ease;
}

.intro-links a:hover::after{
  width:100%;
}

/* PORTFOLIO CENTER FIX */

.portfolio{
  width:100%;
  height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  position:relative;
}

/* WORK SLIDE */

.work{
  position:absolute;
  inset:0;

  display:flex;
  justify-content:flex-end;
  padding-right:140px;
  opacity:0;
  visibility:hidden;

  transition:opacity .5s ease, transform .5s ease;
}

.work.active{
  opacity:1;
  visibility:visible;
}

/* INNER LAYOUT */

.work-inner{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:72px;
}

/* POSTER */

.poster{
  width:360px;
  flex-shrink:0;
  overflow:hidden;

  transition:transform .6s ease;
}

.poster img{
  width:100%;
  display:block;

  object-fit:cover;

  filter:grayscale(100%);
  transition:transform 1.2s ease, filter .8s ease;
}

.poster:hover{
  transform:translateY(-4px);
}

.poster:hover img{
  transform:scale(1.04);
  filter:grayscale(0%);
}

/* INFO RIGHT SIDE */

.overlay{
  width:420px;
  flex-shrink:0;

  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* TITLE */

.overlay h1{
  font-size:40px;
  line-height:1.05;
  font-weight:600;
  letter-spacing:-1.5px;
  margin-bottom:24px;
}

/* META */

.meta{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.meta-row{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.meta-row span{
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:rgba(255,255,255,.45);
}

.meta-row p{
  font-size:12px;
  line-height:1.7;
  color:rgba(255,255,255,.85);
}

.meta-row p a{
  color:#fff;
  text-decoration:none;
  position:relative;
}

.meta-row p a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-3px;
  width:0%;
  height:1px;
  background:#FFF;
  transition:.3s ease;
}

.meta-row p a:hover::after{
  width:100%;
}

.highlight{
  width: fit-content;
  background-color: #096C6C;
  padding: 2px 6px;
  border-radius: 2px;
}

/* LINKS */

.links{
  display:flex;
  gap:18px;
}

.links a{
  font-size:13px;
  color:#fff;
  text-decoration:none;
  position:relative;
}

.links a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:1px;
  background:#fff;
  transition:.3s ease;
}

.links a:hover::after{
  width:100%;
}

/* NAV */

.nav{
  position:fixed;
  top:50%;
  transform:translateY(-50%);

  width:58px;
  height:58px;
  border-radius:50%;

  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);

  color:#fff;
  font-size:26px;

  cursor:pointer;
  z-index:999;

  transition:.3s ease;
}

.nav:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.3);
  transform:translateY(-50%) scale(1.05);
}

.nav-left{
  left:24px;
}

.nav-right{
  right:24px;
}

/* MOBILE */

/* MOBILE */

@media(max-width:768px){

  body{
    overflow:auto;
    -webkit-font-smoothing:antialiased;
  }

  .portfolio{
    min-height:100vh;
    padding:96px 24px 120px;
    display:block;
  }

  .work{
    position:relative;
    inset:auto;

    opacity:0;
    visibility:hidden;
    display:none;

    padding:0;
    justify-content:center;

    transition:opacity .4s ease;
  }

  .work.active{
    opacity:1;
    visibility:visible;
    display:flex;
  }

  .work-inner{
    width:100%;
    max-width:520px;

    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;

    gap:0;
  }

  .poster{
    display:none;
  }

  /* 텍스트 영역 */
  .overlay{
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
  }

  .overlay h1{
    font-size:32px;
    line-height:1.05;
    letter-spacing:-1px;
    margin-bottom:28px;
  }

  .meta{
    gap:18px;
  }

  .meta-row{
    gap:6px;
  }

  .meta-row span{
    font-size:10px;
    letter-spacing:1.4px;
  }

  .meta-row p{
    font-size:13px;
    line-height:1.75;
  }

  .links{
    gap:16px;
    flex-wrap:wrap;
  }

  .links a{
    font-size:13px;
  }

  .highlight{
    font-size:12px;
    padding:4px 8px;
  }

  .nav{
    width:46px;
    height:46px;
    font-size:20px;

    background:rgba(255,255,255,.06);
    backdrop-filter:blur(10px);

    top:auto;
    bottom:24px;

    transform:none;
  }

  .nav:hover{
    transform:scale(1.04);
  }

  .nav-left{
    left:20px;
  }

  .nav-right{
    right:20px;
  }

  .intro{
    position:relative;
    top:auto;
    left:auto;

    max-width:100%;
    margin-bottom:48px;
    padding:0 24px;
  }

  .intro-en{
    font-size:11px;
    line-height:1.8;
  }

  .intro-kr{
    font-size:10px;
    line-height:1.9;
  }

  .home-btn{
    top:20px;
    right:20px;
    font-size:11px;
  }

  .last-update{
    display:none;
  }

}

.home-btn{
  position:fixed;
  top:24px;
  right:24px;

  z-index:9999;

  font-size:12px;
  color:rgba(255,255,255,.85);
  text-decoration:none;

  background:none;      
  border:none;          
  padding:0;          

  display:flex;
  align-items:center;
  gap:6px;

  transition:.3s ease;
}

/* hover */
.home-btn:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.3);
  transform:translateY(-2px);
}

.last-update{
  position: fixed;
  right: 24px;
  bottom: 24px;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;

  color: rgba(255,255,255,0.05);

  z-index: 100;
  pointer-events: none;
}