.works-grid-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
}

body.page--works .site-header {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: auto;
}

body.page--works .site-header__shell {
    width: 100vw;
    max-width: none;
    min-height: 78px;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none !important;
}

body.page--works .brand {
    align-self: stretch;
    min-width: 198px;
    padding: 0 26px;
    margin-right: 26px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

body.page--works .brand__img--dark {
    display: block;
}

body.page--works .brand__img--light {
    display: none;
}

body.page--works .site-nav {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 28px;
    padding: 0;
}

body.page--works .site-nav a,
body.page--works .site-header__utility,
body.page--works .menu-toggle {
    font-family: "Outfit", "Noto Sans KR", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

body.page--works .site-nav a {
    opacity: 1;
}

body.page--works .site-nav a::after {
    bottom: -23px;
    height: 2px;
}

body.page--works .menu-toggle {
    margin-left: auto;
}

.works-grid-section {
    padding: 0 0 110px;
}

.works-grid-shell {
    width: min(1480px, calc(100vw - 36px));
    margin: 0 auto;
}

.works-hero-media {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 0 0 52px calc(50% - 50vw);
    aspect-ratio: 16 / 9;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.works-hero-media__video,
.works-hero-media__veil {
    position: absolute;
    inset: 0;
}

.works-hero-media__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.works-hero-media__veil {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.12) 100%);
}

.works-marquee {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 0 0 34px calc(50% - 50vw);
    padding: 26px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.works-marquee__track {
    display: flex;
    width: max-content;
    gap: 64px;
    animation: works-marquee-scroll 40s linear infinite;
    will-change: transform;
}

.works-marquee__track span {
    font-family: "Inter", "Noto Sans KR", sans-serif;
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.94);
}

.works-grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.works-filter-toggle,
.works-channel-link--minimal,
.works-filter-chip {
    font-family: "Inter", "Noto Sans KR", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}

.works-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.works-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.works-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.works-filter-chip.is-active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.works-channel-link--minimal {
    opacity: 0.72;
    transition: opacity var(--transition);
}

.works-channel-link--minimal:hover {
    opacity: 1;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 54px 28px;
}

.works-card {
    display: grid;
    gap: 14px;
}

.works-card.is-hidden {
    display: none;
}

.works-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.works-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.works-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--thumb-position, 50% 50%);
    transform: scale(var(--thumb-scale, 1.22));
    transition: transform var(--transition), filter var(--transition);
}

.works-card:hover .works-card__thumb img {
    transform: scale(calc(var(--thumb-scale, 1.22) + 0.04));
}

.works-card__caption {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.works-card__title,
.works-card__meta {
    font-family: "Inter", "Noto Sans KR", sans-serif;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.works-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.works-card__meta {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.36);
}

.works-grid-footer.site-footer {
    background: #000;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.works-grid-footer .site-footer__slogan {
    color: #fff;
}

.works-grid-footer .site-footer__meta {
    color: rgba(255, 255, 255, 0.58);
}

@keyframes works-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 22px));
    }
}

@media (max-width: 1080px) {
    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 22px;
    }
}

@media (max-width: 900px) {
    body.page--works .site-header__shell {
        justify-content: space-between;
    }

    body.page--works .brand {
        min-width: 164px;
        margin-right: 0;
    }

    .works-grid-section {
        padding: 0 0 84px;
    }

    .works-grid-shell {
        width: min(1480px, calc(100vw - 28px));
    }

    .works-hero-media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    body.page--works .brand {
        padding: 0 18px;
    }

    .works-hero-media {
        margin-bottom: 36px;
        aspect-ratio: 16 / 9;
    }

    .works-marquee {
        margin-bottom: 24px;
        padding: 20px 0 18px;
    }

    .works-marquee__track {
        gap: 28px;
    }

    .works-grid-toolbar {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .works-card__title,
    .works-card__meta {
        font-size: 14px;
    }
}
