@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Zen+Old+Mincho&display=swap');

/* ==============================
  WORKS PAGE BASE
============================== */
html {
    background-color: #050505;
    max-width: none;
    font-family: "Montserrat", "Zen Old Mincho", sans-serif;

}

body {
    background: #050505;
    color: #fff;
    cursor: none;
}

.works-page {
    width: min(1720px, calc(100% - 80px));
    margin: 40px auto 90px;
    background: #050505;
    overflow: hidden;
    border-radius: 0;
}

.cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    background: rgba(185, 31, 13, .95);

    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translate(-50%, -50%);
}

/* ==============================
  HEADER
============================== */

.works-header {
    position: fixed;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    z-index: 100;

    width: min(1600px, calc(100% - 140px));

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #fff;
}

.works-header h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.works-header nav {
    display: flex;
    align-items: center;
    gap: 28px;

    font-size: 13px;
    font-weight: 500;
}

.works-header a {
    color: inherit;
}

/* ==============================
  HERO - FLOWING GALLERY
============================== */

.works-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.works-hero__text {
    position: absolute;
    left: 50%;
    top: 53%;
    z-index: 5;

    transform: translate(-50%, -50%);

    width: min(760px, 88%);
    text-align: center;
    pointer-events: none;
}

.works-hero__text p {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    letter-spacing: .14em;
    margin-bottom: 22px;
}

.works-hero__text h2 {
    display: none;
}

.works-hero__text span {
    display: block;
    color: rgba(255, 255, 255, .86);
    font-family: "Zen Old Mincho", serif;
    font-size: clamp(20px, 2vw, 34px);
    line-height: 1.55;
}

.works-floating {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.float-card {
    position: absolute;
    overflow: hidden;
    background: #222;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.float-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 이미지 배치 */

.float-card:nth-child(1) {
    width: 190px;
    height: 260px;
    left: -40px;
    top: 19%;
}

.float-card:nth-child(2) {
    width: 150px;
    height: 190px;
    left: 11%;
    top: 14%;
}

.float-card:nth-child(3) {
    width: 260px;
    height: 320px;
    left: 37%;
    top: 18%;
}

.float-card:nth-child(4) {
    width: 160px;
    height: 200px;
    right: 17%;
    top: 14%;
}

.float-card:nth-child(5) {
    width: 170px;
    height: 210px;
    right: 6%;
    top: 31%;
}

.float-card:nth-child(6) {
    width: 210px;
    height: 270px;
    left: -30px;
    bottom: 11%;
}

.float-card:nth-child(7) {
    width: 230px;
    height: 300px;
    left: 18%;
    bottom: 6%;
}

.float-card:nth-child(8) {
    width: 260px;
    height: 260px;
    left: 43%;
    bottom: 1%;
    border-radius: 50%;
}

.float-card:nth-child(9) {
    width: 230px;
    height: 280px;
    right: 22%;
    bottom: 7%;
}

.float-card:nth-child(10) {
    width: 210px;
    height: 260px;
    right: -40px;
    bottom: 11%;
}

/* ==============================
  WORKS LIST
============================== */

.works-list {
    padding: 120px 24px 170px;
    background: #050505;
}

.works-list__top {
    max-width: 1580px;
    margin: 0 auto 70px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.works-list__top h2 {
    font-size: clamp(58px, 6vw, 112px);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: .9;
}

.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.works-filter button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .72);

    padding: 10px 20px;

    font-family: inherit;
    font-size: 13px;
    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}

.works-filter button:hover,
.works-filter button.is-active {
    background: #b91f0d;
    border-color: #b91f0d;
    color: #fff;
}

.works-filter button:hover {
    transform: translateY(-2px);
}

/* GRID */

.works-grid {
    max-width: 1580px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.works-empty,
.floating-empty {
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.works-item {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #151515;
}

.works-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.works-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.works-thumb::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, .08));
    transition: background .55s ease;
}

.works-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1);
    transition:
        transform 1s cubic-bezier(.22, 1, .36, 1),
        filter 1s cubic-bezier(.22, 1, .36, 1);
}

.works-item:hover .works-thumb img {
    transform: scale(1.08);
    filter: brightness(.78);
}

.works-item:hover .works-thumb::after {
    background:
        linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .34) 55%, rgba(0, 0, 0, .16));
}

/* CARD INFO */

.works-info {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(300px, 1fr) auto;
    gap: 34px;
    align-items: end;
}

.works-info>* {
    min-width: 0;
}

.works-info h3 {
    color: #fff;
    font-size: clamp(26px, 2.3vw, 32px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.works-info em {
    display: block;
    margin-top: 14px;

    color: rgba(255, 255, 255, .76);
    font-style: normal;
    font-size: 16px;
}

.works-info p {
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 1.55;
    text-transform: uppercase;
    letter-spacing: .03em;
    max-width: 100%;

    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

}

.works-info span {
    color: #fff;
    font-size: 48px;
    line-height: 1;
    transition: transform .35s ease;
}

.works-item:hover .works-info span {
    transform: translate(8px, -8px);
}

.works-item.is-hide {
    display: none;
}

/* ==============================
  CURSOR
============================== */

.cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    background: #b91f0d;

    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translate(-50%, -50%);
}

.cursor span {
    opacity: 0;
    visibility: hidden;

    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* ==============================
  RESPONSIVE
============================== */

@media (max-width: 1280px) {
    .works-page {
        width: min(100%, calc(100% - 48px));
    }

    .works-header {
        width: min(100%, calc(100% - 96px));
    }

    .float-card:nth-child(1) {
        width: 210px;
        height: 280px;
    }

    .float-card:nth-child(2) {
        width: 200px;
        height: 190px;
    }

    .float-card:nth-child(3),
    .float-card.is-featured {
        width: 360px;
        height: 290px;
    }

    .float-card:nth-child(4) {
        width: 200px;
        height: 245px;
    }

    .float-card:nth-child(5) {
        width: 230px;
        height: 200px;
    }

    .float-card:nth-child(6),
    .float-card:nth-child(8) {
        width: 230px;
        height: 300px;
    }

    .float-card:nth-child(7) {
        width: 260px;
        height: 260px;
    }

    .works-item {
        min-height: 580px;
    }
}

@media (max-width: 1024px) {
    .works-page {
        width: min(100%, calc(100% - 32px));
        margin: 70px auto;
    }

    .works-header {
        top: 38px;
        width: min(100%, calc(100% - 64px));
    }

    .works-hero {
        min-height: 850px;
    }

    .works-list__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .works-item {
        min-height: 560px;
    }

    .float-card:nth-child(n+6) {
        display: none;
    }

    .works-info {
        grid-template-columns: 1fr 1fr auto;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .works-page {
        width: calc(100% - 24px);
        margin: 56px auto;
    }

    .works-header {
        top: 26px;
        width: calc(100% - 48px);
    }

    .works-header nav {
        gap: 14px;
        font-size: 11px;
    }

    .works-hero {
        min-height: 720px;
    }

    .works-hero__text {
        top: 53%;
    }

    .works-hero__text h2 {
        font-size: 76px;
    }

    .works-hero__text span {
        margin-top: 28px;
        font-size: 14px;
    }

    .float-card:nth-child(1) {
        width: 135px;
        height: 180px;
        left: -45px;
        top: 17%;
    }

    .float-card:nth-child(2) {
        width: 165px;
        height: 140px;
        left: 6%;
        top: 65%;
    }

    .float-card:nth-child(3),
    .float-card.is-featured {
        width: 230px;
        height: 210px;
        top: 22%;
    }

    .float-card:nth-child(4) {
        width: 145px;
        height: 170px;
        right: 5%;
        top: 15%;
    }

    .float-card:nth-child(5) {
        width: 160px;
        height: 135px;
        right: -48px;
        top: 52%;
    }

    .works-list {
        padding: 80px 16px 120px;
    }

    .works-list__top {
        margin-bottom: 44px;
    }

    .works-item {
        min-height: 460px;
    }

    .works-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .works-info p {
        display: none;
    }

    .works-info span {
        font-size: 36px;
    }
}

@media (max-width: 480px) {

    .works-header nav a:nth-child(3),
    .works-header nav a:nth-child(4) {
        display: none;
    }

    .works-hero {
        min-height: 640px;
    }

    .works-hero__text h2 {
        font-size: 58px;
    }

    .works-filter {
        gap: 8px;
    }

    .works-filter button {
        padding: 8px 14px;
        font-size: 12px;
    }

    .works-item {
        min-height: 390px;
    }
}

@media (max-width: 768px) {

    .works-hero {
        min-height: 620px;
    }

    .works-hero__text {
        width: 88%;
        top: 50%;
        z-index: 10;
    }

    .works-hero__text span {
        font-size: 15px;
        line-height: 1.8;
    }

    .float-card:nth-child(1) {
        width: 90px;
        height: 120px;
        left: -25px;
        top: 12%;
    }

    .float-card:nth-child(2) {
        width: 110px;
        height: 90px;
        left: 8%;
        top: 72%;
    }

    .float-card:nth-child(3) {
        width: 180px;
        height: 150px;
        left: 50%;
        top: 15%;
        transform: translateX(-50%);
    }

    .float-card:nth-child(4) {
        width: 100px;
        height: 120px;
        right: 3%;
        top: 12%;
    }

    .float-card:nth-child(5) {
        width: 120px;
        height: 100px;
        right: -30px;
        top: 70%;
    }

    .works-list {
        padding: 80px 16px 120px;
    }

    .works-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .works-info p {
        display: none;
    }
}