/* ─────────────────────────────────────────────────────────────────────────────
   CUTIB 2026 — Sub pages (섹션 페이지 · 목록 페이지)
   Flexible sections reuse components.css; this file adds the pieces that
   only sub pages need and aligns lists to the description column.
───────────────────────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════════════════
   DESCRIPTION COLUMN — lists start where the header description starts
══════════════════════════════════════════════════════════════════════════ */

.col-right {
    width: calc(50% - var(--gap-sm));
    margin-left: auto;
}

/* Number list without an image: list on the description column */
.services-inner--no-media .services-decoration {
    display: none;
}

.services-inner--no-media .num-list {
    margin-left: auto;
}

/* Image keeps its natural ratio next to the list */
.media-frame--natural {
    aspect-ratio: auto;
}

.media-frame--natural img {
    position: static;
    height: auto;
}

/* Section header directly followed by nothing (header layout) */
.section-header:only-child {
    margin-bottom: 0;
}

.section--key .section-line {
    background-color: currentColor;
}

/* Full-bleed section without an image: no full-screen height */
.bg-section--no-image {
    min-height: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   TIMELINE — 연혁 · 제작 노트
══════════════════════════════════════════════════════════════════════════ */

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    width: calc(50% - var(--gap-sm));   /* half width, right-aligned = description column */
    margin-left: auto;
}

.timeline__item {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.timeline__row {
    display: flex;
    gap: var(--gap-sm);
    align-items: baseline;
}

.timeline__date {
    width: 50%;
    flex-shrink: 0;
    font-family: var(--font-ui);
    font-size: var(--text-nav);
    line-height: var(--lh-normal);
    text-transform: uppercase;
}

.timeline__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline__title {
    font-family: var(--font-body);
    font-size: var(--text-item-title);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
}

.timeline__desc {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-normal);
}


/* ══════════════════════════════════════════════════════════════════════════
   LOGO LIST — 투자사
══════════════════════════════════════════════════════════════════════════ */

.logo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
}

.logo-list__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: var(--gap-md);
    background-color: var(--color-cream);
    border-radius: var(--radius-nav);
    color: var(--color-black);
}

.section--cream .logo-list__item {
    background-color: var(--color-white);
}

.logo-list__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-list__item img {
    max-width: 200px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-list__name {
    font-family: var(--font-body);
    font-size: var(--text-section-head);
    line-height: var(--lh-normal);
}


/* ══════════════════════════════════════════════════════════════════════════
   JOBS — news-list rows
══════════════════════════════════════════════════════════════════════════ */

.job-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.list-empty {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-normal);
    opacity: 0.7;
}


/* ══════════════════════════════════════════════════════════════════════════
   LIST PAGE — featured item + grid (LOCOMOTION Works archive)
══════════════════════════════════════════════════════════════════════════ */

.list-section {
    gap: var(--gap-lg);
}

.list-featured {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.list-featured__media {
    display: block;
    margin-top: var(--gap-sm);
}

.list-featured__media img {
    transition: transform 0.6s ease;
}

.list-featured__media:hover img {
    transform: scale(1.03);
}

.list-featured__title {
    font-family: var(--font-body);
    font-size: var(--text-section-head);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    text-transform: uppercase;
}

.section--charcoal .list-featured .section-line {
    background-color: var(--color-light-gray);
}

.section--charcoal .works-item__cats {
    color: var(--color-light-gray);
}

.list-page--news .list-section .news-list {
    width: 100%;
}


/* ── Filter nav (LOCOMOTION works.css) — fixed cream panel, top right ──── */

.works-filter-nav {
    position: fixed;
    top: var(--nav-pad-top);
    right: var(--nav-pad-left);
    z-index: var(--z-nav);
    width: min(440px, calc(100vw - var(--nav-width) - var(--nav-pad-left) * 3));
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--gap-sm);
    background-color: var(--color-cream);
    border-radius: var(--radius-nav);
    overflow: hidden;
    opacity: 0; /* GSAP autoAlpha (initNavReveal) */
}

.works-filter-nav .section-line {
    background-color: var(--color-black);
}

.filter-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-nav__label {
    font-family: var(--font-body);
    font-size: var(--text-label);
    line-height: var(--lh-label);
    color: var(--color-black);
}

.filter-nav__all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 32px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: var(--text-small);
    line-height: var(--lh-tight);
    white-space: nowrap;
    transition: background-color var(--ease-default);
}

.filter-nav__all:hover {
    background-color: var(--color-key);
    color: var(--color-on-key);
}

.filter-nav__cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.filter-nav__cat-link {
    text-transform: uppercase;   /* LOCOMOTION: category names in capitals */
    font-family: var(--font-ui);
    font-size: var(--text-small);
    line-height: 1;
    color: var(--color-black);
    white-space: nowrap;
    transition: color var(--ease-default);
}

.filter-nav__cat-link.is-inactive,
.filter-nav__cats:hover .filter-nav__cat-link {
    color: rgba(0, 0, 0, 0.4);
}

.filter-nav__cats:hover .filter-nav__cat-link:hover,
.filter-nav__cats:hover .filter-nav__cat-link.is-active {
    color: var(--color-black);
}


/* ── Pagination (news) ─────────────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--gap-md);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-btn);
    font-family: var(--font-ui);
    font-size: var(--text-small);
    line-height: 1;
    color: inherit;
    transition: background-color var(--ease-default), color var(--ease-default);
}

.pagination a.page-numbers:hover {
    background-color: var(--color-cream);
}

.pagination .page-numbers.current {
    background-color: var(--color-black);
    color: var(--color-white);
}

.pagination .page-numbers.dots {
    min-width: 24px;
    padding: 0;
}

.pagination__arrow {
    width: 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow) no-repeat center / contain;
            mask: var(--icon-arrow) no-repeat center / contain;
}

.pagination__arrow {
    transform: rotate(45deg);     /* ↗ icon → → */
}

.pagination__arrow--prev {
    transform: rotate(-135deg);   /* → ← */
}

.pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.section--charcoal .pagination a.page-numbers:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section--charcoal .pagination .page-numbers.current {
    background-color: var(--color-cream);
    color: var(--color-black);
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 1024px) {

    /* Filter nav flows in the document under the hero */
    /* Full-bleed, in the list section's colour, so it reads as part of the section */
    .works-filter-nav {
        position: static;
        width: auto;
        margin: 0;
        padding: var(--gap-md) var(--section-px) 0;
        border-radius: 0;
        opacity: 1;
    }

    .works-filter-nav--white {
        background-color: var(--color-white);
    }

    .works-filter-nav--cream {
        background-color: var(--color-cream-light);
    }

    .works-filter-nav--key {
        background-color: var(--color-key);
    }

    .works-filter-nav--charcoal {
        background-color: var(--color-charcoal);
    }

    .works-filter-nav--charcoal .section-line {
        background-color: var(--color-light-gray);
    }

    .works-filter-nav--charcoal .filter-nav__label,
    .works-filter-nav--charcoal .filter-nav__cat-link,
    .works-filter-nav--charcoal .filter-nav__cats:hover .filter-nav__cat-link:hover,
    .works-filter-nav--charcoal .filter-nav__cats:hover .filter-nav__cat-link.is-active {
        color: var(--color-light-gray);
    }

    .works-filter-nav--charcoal .filter-nav__cat-link.is-inactive,
    .works-filter-nav--charcoal .filter-nav__cats:hover .filter-nav__cat-link {
        color: rgba(255, 255, 255, 0.35);
    }

    .works-filter-nav--charcoal .filter-nav__all {
        background-color: var(--color-cream);
        color: var(--color-black);
    }
}

@media screen and (max-width: 980px) {

    .col-right,
    .faq-list.col-right {
        width: 100%;
    }

    .services-inner {
        flex-direction: column;
    }

    .timeline {
        width: 100%;
    }

    .timeline__row {
        flex-direction: column;
        gap: 6px;
    }

    .timeline__date {
        width: 100%;
    }

    .logo-list__item {
        min-height: 100px;
        padding: var(--gap-sm);
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   POST FEATURE — Studio CUTIB ORIGINALS / CUTIB WORKS
   image (left 60%) | badges · title · desc · info · button (right)
══════════════════════════════════════════════════════════════════════════ */

.post-features {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.post-feature {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: var(--gap-md);
    align-items: center;
}

.post-feature__img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-cream);
}

.post-feature__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-feature:hover .post-feature__img img {
    transform: scale(1.03);
}

.post-feature__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
}

.post-feature__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.post-feature__badge {
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: var(--text-small);
    line-height: 1.2;
}

.post-feature__meta {
    font-family: var(--font-ui);
    font-size: var(--text-small);
    text-transform: uppercase;
}

.post-feature__title {
    font-size: var(--text-section-head);
    font-weight: var(--fw-medium);
    line-height: 1.25;
}

.post-feature__title a {
    transition: color 0.3s ease;
}

.post-feature__title a:hover {
    color: var(--color-key);
}

.post-feature__desc {
    font-size: var(--text-body);
    line-height: 1.6;
}

.post-feature__rows {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    width: 100%;
}

.post-feature__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: var(--gap-sm);
    border-top: 1px solid var(--color-light-gray);
}

.post-feature__row dt {
    font-size: var(--text-body);
    font-weight: var(--fw-medium);
}

.post-feature__row dd {
    font-size: var(--text-body);
    line-height: 1.6;
}

.post-feature .btn-group {
    margin-top: 10px;
}

@media screen and (max-width: 980px) {
    .post-feature {
        grid-template-columns: 1fr;
        gap: var(--gap-sm);
    }
}
