

main {
    overflow-x: hidden;
}
.top__slider {
  width:100%;
  height:100vh;
}

.slider__item {
  position:relative;
  height:100vh;
  display:flex !important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

/* 배경 */
.slider__item > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform 5s ease-out; /* 슬라이드 노출 시간과 동일 */
  will-change:transform;
}

/* 오버레이 */
.slider__item::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:1;
}

/* 콘텐츠 */
.slider__item__content{
  position:relative;
  z-index:2;
  width:100%;
  padding:50px;
  color:#fff;
  text-align:left;
  box-sizing: border-box;
}

/* 1번 슬라이드 기본 상태 */
.slider__item:first-child .slider__item__content{
  opacity:0;
  transform:translateY(40px);
}

/* 가운데 정렬 */
.center .slider__item__content{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}

.center .slider__item__content img{
  display:inline-block;
  transform:scale(1.35);
  opacity:0;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.28));
  transform-origin:center;
  transition:
    transform 2s cubic-bezier(.22,.61,.36,1),
    opacity 1.2s ease;
  will-change:transform,opacity;
}

/* 타이포 */
.slider__item__content h2{
  color:#fff;
  font-size:160px;
  font-weight:500;
  line-height:.5;
  letter-spacing:-8px;
}

.slider__item__content p{
  margin-top:63px;
  color:#fff;
  font-size:32px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:-1.6px;
}

/* 버튼 */
.slider__item__content a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  height:56px;
  padding:0 28px;
  border:1px solid #fff;
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  backdrop-filter:blur(4px);
  transition:.3s;
}

.slider__item__content a:hover{
  background:#fff;
  color:#000;
}

/* =========================
   1번 슬라이드
========================= */
.slider__item.type1-active > img{
  transform:scale(1.08);
}

.slider__item.type1-active .slider__item__content{
  animation:textUp 1.5s ease forwards;
}

@keyframes textUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================
   2번 슬라이드
========================= */
.slider__item.type2-active > img{
  transform:scale(1.08);
}

.slider__item.type2-active .slider__item__content{
  opacity:1;
  transform:none;
  animation:none;
}

/* =========================
   3번 슬라이드 (입체 효과)
========================= */
.slider__item.type3-active > img{
  transform:scale(1.12); /* 뒤 레이어 줌인 */
}

.slider__item.type3-active .slider__item__content img{
  transform:scale(1);    /* 앞 레이어 줌아웃 */
  opacity:1;
}

.slider__item.center > .mobile {
    display: none;
}

section.rect {
    margin-top: 245px;
}

section.rect .inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
}

.rect__item {
    display: flex;
    justify-content: space-between;
    padding-left: 150px;
    box-sizing: border-box;
}

.rect__item1 .imgbox {
    border-top-right-radius: 250px;
    overflow: hidden;
}

.rect__item1 .imgbox img {
    width: 100%;
}


.rect__item .textbox h3 {
    color: #000;
    font-family: "Pretendard";
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: -2.1px;
}

.rect__item1 .textbox p {
    text-align: right;
    margin-top: 200px;
}

.rect__item .textbox p {
    color: rgba(0, 0, 0, 0.70);    
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.72px;
}

.rect__item .textbox p span {
    text-align: left;
    display: inline-block;
}

.rect__item2 {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: 350px;
}

.rect__item2 .imgbox {
    margin-top: 165px;
    border-radius: 250px 0 0 0;
    overflow: hidden;
}

.rect__item2 .textbox p {
    margin-top: 75px;
    max-width: 285px;    
}

section.flow {
    margin-top: 245px;
    position: relative;
    overflow: hidden;
}

section.flow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 1px;
    max-width: calc( 100% - 100px );
    transform: translateX(-50%);    
    background: rgba(0, 0, 0, 0.50);
}

section.flow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 1px;
    max-width: calc( 100% - 100px );
    transform: translateX(-50%);    
    background: rgba(0, 0, 0, 0.50);
}

.flow__rolling {
    width: 100%;
    overflow: hidden;
}

.flow__track {
    display: flex;
    width: max-content;
    animation: flowRolling 18s linear infinite;
}

.flow__rolling__text {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 120px; /* 세트 간 간격 */
}

.flow__rolling__text span {
    color: #000;
    font-size: 220px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -6.6px;
    white-space: nowrap;
}

.flow__rolling__text div {
    margin-left: 50px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.flow__rolling__text img {
    width: 180px;
    height: auto;
    display: block;
}

@keyframes flowRolling {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 마우스 올리면 정지 */
/* .flow__rolling:hover .flow__track {
    animation-play-state: paused;
} */

section.works {
    margin-top: 130px;
}

section.works h3 {
    margin-top: 130px;
    text-align: center;
    color: #000;
    font-family: "Cormorant Garamond";
    font-size: 50px;
    font-style: normal;
    font-weight: 500;
    line-height: 60px; /* 120% */
    letter-spacing: -1.5px;
}

section.works ul {    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
    margin-top: 70px;
    padding: 0 100px;
    box-sizing: border-box;
}

section.works ul li {
    font-size: 0;
}

section.works ul li a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 0;
}

section.works ul li img {
    max-width: 100%;
    transition: transform 0.5s ease;
    transform: scale(1);
}

section.works ul li a:hover img  {
    transform: scale(1.05);
}

.works__btn {
    margin-top: 70px;
    margin-bottom: 110px;
    text-align: center;
}

.works__btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.works__btn a p {
    color: #000;
    font-family: "Cormorant Garamond";
    font-size: 18px;    
    font-weight: 500;
    line-height: 1.3;
}

.works__btn a span {
    border-radius: 300px;
    background: #000;
    width: 45px;
    height: 45px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.works__btn a span img {
    position: relative;
    width: auto;
    height: auto;
    transition: all 0.5s ease;
    right: 0;
}

.works__btn a:hover span img {
    right: -5px;
}

.portfolio__grid {
    max-width: 1920px;
}




@media only screen and (max-width: 1900px) {

    .rect__item {
        padding-left: 50px;
    }

}


@media only screen and (max-width: 1800px) {

    .rect__item {
        padding-left: 0px;
    }

    .rect__item .textbox h3 { 
        font-size: 55px;        
        line-height: 1.5;
        letter-spacing: -0.025em;
    }

    .rect__item .textbox p { 
        font-size: 22px;        
        line-height: 1.5;
        letter-spacing: -0.025em;
    }
}

@media only screen and (max-width: 1600px) {

    section.rect .inner {    
        padding: 0 80px;
    }

    .rect__item .textbox h3 {
        font-size: 50px;        
    }

    .rect__item2 {    
        margin-top: 250px;
    }

    .rect__item2 .imgbox {
        margin-top: 125px;        
        width: 50%;
    }

    .slider__item__content h2 {    
        font-size: 130px;        
    }

    .slider__item__content p {
        font-size: 27px;
    }

    .center .slider__item__content img {
        max-width: 428px;
    }

    .flow__rolling__text span {    
        font-size: 170px;
    }

    .flow__rolling__text img {
        width: 130px;
    }

    section.flow::before,
    section.flow::after {
        max-width: calc( 100% - 80px);
    }

    section.works ul {
        padding: 0 40px;
    }

}

@media only screen and (max-width: 1400px) {

    .rect__item .textbox h3 {
        font-size: 45px;
    }

    .rect__item .textbox p {
        font-size: 20px;
    }

}

@media only screen and (max-width: 1280px) {

    .slider__item.center > .web {
        display: none;
    }

    .slider__item.center > .mobile {
        display: block;
    }

    .center .slider__item__content img {
        max-width: 350px;
    }

    .slider__item__content h2 {
        font-size: 100px;
    }

    .slider__item__content p {
        font-size: 23px;
    }

    section.rect .inner {    
        padding: 0 40px;
    }

    section.rect {
        margin-top: 245px;
    }

    section.flow {
        margin-top: 245px;
    }

    section.works {
        margin-top: 130px;
    }

    .rect__item1 .imgbox {
        border-top-right-radius: 250px;
        overflow: hidden;
        width: 45%;
    }
    
    .rect__item2 {
        margin-top: 150px;
    }

    .rect__item .textbox h3 {
        font-size: 40px;
    }

    .rect__item1 .textbox p {
        text-align: right;
        margin-top: 150px;
    }

    .flow__rolling__text span {    
        font-size: 150px;
    }

    .flow__rolling__text img {
        width: 110px;
    }

    .works__btn {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

@media only screen and (max-width: 1024px) {

    .slider__item__content {
        padding: 20px;
        text-align: center;
    }

    .slider__item__content h2 {
        font-size: 80px;
        letter-spacing: -0.025em;
    }

    .slider__item__content p {
        font-size: 21px;
    }

    section.rect .inner {    
        padding: 0 20px;
    }


    section.rect {
        margin-top: 145px;
    }

    section.flow {
        margin-top: 145px;
    }

    section.works {
        margin-top: 70px;
    }

    .rect__item {
        display: flex;
        justify-content: space-between;        
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
    }
    
    .rect__item1 .imgbox {        
        width: 100%;
    }


    .rect__item1 .imgbox {
        width: 100%;
        aspect-ratio: 1 / 1.2;
        max-width: 80%;
        max-height: 60vw;
    }

    .rect__item2 .imgbox {
        margin-top: 0;        
        width: 100%;
        aspect-ratio: 1.8 / 1;
        max-width: 80%;
    }

    .rect__item1 .imgbox img,
    .rect__item2 .imgbox img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rect__item .textbox h3,
    .rect__item2 .textbox h3 {
        font-size: 40px;
        text-align: center;
        margin-top: 50px;
    }

    .rect__item1 .textbox p,
    .rect__item2 .textbox p {
        text-align: center;
        margin-top: 50px;
        max-width: 100%;
    }

    .rect__item .textbox p span {
        text-align: center;
        display: inline-block;
    }

    .rect__item2 {
        margin-top: 100px;
    }

    .rect__item2 .imgbox {
        margin-top: 0;
        width: 100%;
        aspect-ratio: 1.8 / 1;
        max-width: 100%;
        border-radius: 150px 0 0 0;
    }

    .flow__rolling__text span {    
        font-size: 120px;
    }

    .flow__rolling__text img {
        width: 90px;
    }
    
    section.flow::before,
    section.flow::after {
        max-width: calc( 100% - 40px);
    }

    section.works ul {
        padding: 0 20px;
    }

    section.works h3 {
        margin-top: 100px;    
        font-size: 45px;        
        line-height: 1.5;
        letter-spacing: -0.025em;
    }

    section.works ul {
        margin-top: 50px;
    }

}

@media only screen and (max-width: 870px) {

    .center .slider__item__content img {
        max-width: 300px;
    }

    .slider__item__content h2 {
        font-size: 70px;        
    }

    .slider__item__content p {
        font-size: 19px;
        margin-top: 50px;
    }

    .flow__rolling__text span {    
        font-size: 100px;
        letter-spacing: -0.025em;
    }

    .flow__rolling__text img {
        width: 70px;
    }

    section.works ul {        
        grid-template-columns: repeat(2, 1fr);
    }

    section.works h3 {
        margin-top: 80px;
        font-size: 40px;
    }

    section.works ul {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 780px) {



}


@media only screen and (max-width: 640px) {

    .center .slider__item__content img {
        max-width: 250px;
    }

    .slider__item__content h2 {
        font-size: 50px;
    }

    .slider__item__content p {
        font-size: 17px;
        margin-top: 40px;
    }


    section.rect {
        margin-top: 70px;
    }

    section.flow {
        margin-top: 70px;
    }

    section.works {
        margin-top: 50px;
    }

    .rect__item1 .imgbox {        
        max-width: 100%;        
        border-top-right-radius: 150px;
    }

    .rect__item .textbox h3, .rect__item2 .textbox h3 {
        font-size: 23px;
        text-align: center;
        margin-top: 30px;
    }


    .rect__item1 .textbox p, .rect__item2 .textbox p {
        text-align: center;
        margin-top: 20px;
        max-width: 100%;
        font-size: 15px;
    }

    .flow__rolling__text {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        padding-right: 80px;
    }

    .flow__rolling__text div {
        margin-left: 30px;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }

    .flow__rolling__text span {
        font-size: 50px;
        letter-spacing: -0.025em;
    }

    .flow__rolling__text img {
        width: 40px;
    }

    section.works h3 {
        margin-top: 60px;
        font-size: 35px;
    }

    
    .works__btn {
        margin-top: 40px;
        margin-bottom: 0;        
    }

}