/* ============================================================
   CASE STUDIES — work.css
   Layered on top of the base /styles.css design system.
   ============================================================ */

/* ───── HUB PAGE ───── */

.cs-hub-hero {
    padding: 180px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.cs-hub-hero__title {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mist-glass, #CAD8D9);
    line-height: 0.95;
    margin: 0 0 20px;
}

.cs-hub-hero__subtitle {
    font-family: 'Palace', serif;
    font-size: 1.25rem;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.5;
    max-width: 480px;
    line-height: 1.65;
    margin: 0;
}

.cs-hub-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Card */
.cs-card {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-card:hover { transform: scale(0.98); }

.cs-card__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.cs-card__media img,
.cs-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-card:hover .cs-card__media img,
.cs-card:hover .cs-card__media video { transform: scale(1.03); }

.cs-card__content { padding: 8px 0 0; }

.cs-card__client {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.7;
    margin: 0 0 2px;
}

.cs-card__title {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    text-transform: none;
    letter-spacing: 0.08em;
    color: var(--mist-glass, #CAD8D9);
    margin: 0;
}

.cs-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Featured card — full width */
.cs-card--featured { grid-column: 1 / -1; }
.cs-card--featured .cs-card__media { aspect-ratio: 21 / 9; }


/* ───── SHARED TAG ───── */

.cs-tag {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border: 1px solid rgba(202, 216, 217, 0.25);
    border-radius: 2px;
    color: var(--mist-glass, #CAD8D9);
}


/* ───── CASE STUDY PAGE — HERO ───── */

.cs-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 0 0 60px;
    overflow: hidden;
}

.cs-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cs-hero__media img,
.cs-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(19, 19, 19, 0.95) 0%,
        rgba(19, 19, 19, 0.4) 40%,
        transparent 100%);
    z-index: 1;
}

.cs-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.cs-hero__client {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.6;
    margin: 0 0 12px;
}

.cs-hero__title {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 0.92;
    color: var(--mist-glass, #CAD8D9);
    margin: 0 0 20px;
}

.cs-hero--text-only {
    height: auto;
    min-height: 0;
    padding: 120px 0 40px;
    align-items: flex-start;
}

.cs-hero__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* ───── PROJECT INFO BAR ───── */

.cs-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    border-bottom: 1px solid rgba(202, 216, 217, 0.08);
}

.cs-info__label {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.4;
    margin: 0 0 6px;
}

.cs-info__value {
    font-family: 'Palace', serif;
    font-size: 1.15rem;
    color: var(--mist-glass, #CAD8D9);
    line-height: 1.5;
    opacity: 0.7;
    margin: 0;
}


/* ───── CONTENT CONTAINER ───── */

.cs-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ───── CONTENT BLOCKS ───── */

.cs-block { padding: 80px 0; }

/* Text */
.cs-block--text { max-width: 720px; }

.cs-block--text h2 {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--mist-glass, #CAD8D9);
    letter-spacing: 0.12em;
    margin: 0 0 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(202, 216, 217, 0.1);
}

.cs-block:first-child .cs-block--text h2,
.cs-block--text:first-child h2 {
    border-top: none;
    padding-top: 0;
}

.cs-block--text p {
    font-family: 'Palace', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.7;
    margin: 0 0 28px;
}

.cs-block--text p:last-child { margin-bottom: 0; }

/* Annotation — small caption-style text below media */
.cs-block--annotation {
    padding: 0 0 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cs-block--annotation p {
    font-family: 'Palace', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.4;
    margin: 12px 0 0;
    text-align: center;
}

/* Full-width media */
.cs-block--media { padding: 40px 0; }

.cs-block--media-full {
    margin-left: -24px;
    margin-right: -24px;
    padding: 40px 0;
}

.cs-block--media img,
.cs-block--media video,
.cs-block--media-full img,
.cs-block--media-full video {
    width: 100%;
    display: block;
}

/* Gallery */
.cs-block--gallery { padding: 40px 0; }

.cs-gallery {
    display: grid;
    gap: 16px;
}

.cs-gallery--2 { grid-template-columns: 1fr 1fr; }
.cs-gallery--3 { grid-template-columns: 1fr 1fr 1fr; }
.cs-gallery--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.cs-gallery img,
.cs-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-gallery--natural img,
.cs-gallery--natural video {
    height: auto;
    object-fit: contain;
}

.cs-gallery--phone img,
.cs-gallery--phone video {
    height: auto;
    object-fit: contain;
}

/* Stats */
.cs-block--stats {
    padding: 60px 0;
    border-top: 1px solid rgba(202, 216, 217, 0.08);
    border-bottom: 1px solid rgba(202, 216, 217, 0.08);
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    text-align: center;
}

.cs-stat__number {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 6rem);
    color: #fff;
    line-height: 1;
    margin: 0 0 8px;
}

.cs-stat__label {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.4;
    margin: 0;
}

/* Quote */
.cs-block--quote {
    padding: 80px 0;
    max-width: 800px;
}

.cs-quote {
    font-family: 'Palace', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.4;
    color: #fff;
    font-style: italic;
    margin: 0;
}

.cs-quote__attr {
    margin: 20px 0 0;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.4;
    font-style: normal;
}


/* ───── IMAGE PLACEHOLDERS ───── */

.cs-placeholder {
    background: var(--nocturne, #282425);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(202, 216, 217, 0.15);
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cs-placeholder--hero   { width: 100%; height: 100%; }
.cs-placeholder--wide   { width: 100%; aspect-ratio: 16 / 9; }
.cs-placeholder--cinema { width: 100%; aspect-ratio: 21 / 9; }
.cs-placeholder--square { width: 100%; aspect-ratio: 1; }
.cs-placeholder--tall   { width: 100%; aspect-ratio: 3 / 4; }
.cs-placeholder--card   { width: 100%; aspect-ratio: 16 / 10; }


/* ───── NEXT PROJECT ───── */

.cs-next {
    padding: 120px 24px;
    text-align: center;
    border-top: 1px solid rgba(202, 216, 217, 0.08);
}

.cs-next__label {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.4;
    margin: 0 0 16px;
}

.cs-next__title {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.cs-next__title:hover { opacity: 0.6; }


/* ───── BACK LINK ───── */

.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 24px;
    max-width: 1200px;
    margin: 100px auto 0;
    display: flex;
}

.cs-back:hover { opacity: 1; }

.cs-back svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ───── EMBEDS ───── */

.cs-embeds-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(202, 216, 217, 0.15) transparent;
}

.cs-embeds-row::-webkit-scrollbar { height: 4px; }
.cs-embeds-row::-webkit-scrollbar-track { background: transparent; }
.cs-embeds-row::-webkit-scrollbar-thumb { background: rgba(202, 216, 217, 0.15); border-radius: 2px; }

.cs-embed-tiktok {
    flex: 0 0 auto;
    min-width: 325px;
    max-width: 605px;
}

.cs-embeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    justify-items: center;
}

.cs-embed-ig {
    width: 100%;
    max-width: 540px;
}

.cs-embed-ig .instagram-media {
    margin: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

.cs-featured-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-block--featured-label {
    padding: 40px 0 16px;
}

.cs-block--featured-label h3 {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mist-glass, #CAD8D9);
    opacity: 0.4;
    margin: 0;
}


/* ───── PRESS QUOTE CARDS ───── */

.cs-press-quotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cs-press-card {
    text-align: center;
    padding: 48px 32px;
    border: 1px solid rgba(202, 216, 217, 0.08);
}

.cs-press-card__quote {
    font-family: 'Owners Narrow', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: var(--mist-glass, #CAD8D9);
    margin: 0 0 32px;
}

.cs-press-card__quote--lg {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.cs-press-card__logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}


/* ───── RESPONSIVE ───── */

@media (max-width: 768px) {
    .cs-hub-hero { padding: 140px 24px 40px; }

    .cs-hub-grid { grid-template-columns: 1fr; }

    .cs-card--featured .cs-card__media { aspect-ratio: 16 / 10; }

    .cs-hero {
        height: 60vh;
        min-height: 380px;
        padding-bottom: 40px;
    }

    .cs-hero--text-only {
        height: auto;
        min-height: 0;
        padding: 100px 0 24px;
    }

    .cs-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 32px 24px;
    }

    .cs-block { padding: 60px 0; }
    .cs-block--gallery { padding: 24px 0; }

    .cs-gallery--2,
    .cs-gallery--3 { grid-template-columns: 1fr; }

    .cs-block--media-full {
        margin-left: -24px;
        margin-right: -24px;
    }

    .cs-press-quotes { grid-template-columns: 1fr; }

    .cs-next { padding: 80px 24px; }

    .cs-back { margin-top: 80px; }
}
