/* =========================================================================
   NIK — Work / portfolio pages (reference visual system)
   Loaded on top of app.css. Project cards (world plates), filter pills and
   the invite band are shared; this file adds page layout + case study.
   ========================================================================= */

/* ----------------------------------------------------------------------
   Work index
   ---------------------------------------------------------------------- */

.work-shell {
    padding-block-end: var(--space-7);
}

.work-header {
    max-width: 720px;
    margin-bottom: 60px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-grid [data-project-card].is-filtered-out {
    display: none;
}

.work-empty {
    padding: var(--space-7) 0;
    text-align: center;
    font-family: var(--font-serif);
    font-style: var(--serif-style);
    font-size: 1.3rem;
    color: var(--w-56);
}

/* ----------------------------------------------------------------------
   Case study (real detail page — modal surfaces used as inspiration)
   ---------------------------------------------------------------------- */

.case-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 72vh;
    padding-block: calc(var(--header-height) + var(--space-6)) var(--space-6);
    overflow: hidden;
}

.case-hero-visual {
    position: absolute;
    inset: 0;
}

.case-hero-visual .world-plate {
    position: absolute;
    inset: 0;
    border: none;
    border-radius: 0;
}

.case-hero-visual--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.45) 0%, transparent 40%, rgba(11, 11, 13, 0.9) 100%);
}

.case-hero-inner {
    position: relative;
    z-index: 2;
}

.case-title {
    max-width: 16ch;
    margin-bottom: var(--space-3);
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 400;
    font-style: var(--serif-style);
}

html[lang="fa"] .case-title {
    font-weight: 600;
}

.case-lead {
    max-width: 52ch;
    margin-bottom: 0;
}

/* Case blocks (reference .case-block): label + paragraph, thin dividers */
.case-body {
    max-width: 760px;
}

.case-block {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.case-block:last-child {
    border-bottom: none;
}

.case-block .k {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--champagne);
    font-weight: 600;
    margin-bottom: 10px;
}

html[lang="fa"] .case-block .k {
    letter-spacing: 0.04em;
}

.case-block p {
    color: var(--w-72);
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    font-weight: 300;
    margin: 0;
}

html[lang="fa"] .case-block p {
    font-weight: 400;
}

/* Gallery */
.case-gallery {
    background: var(--obsidian-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: var(--space-5);
}

.case-media {
    margin: 0;
}

.case-media img,
.case-media video {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.case-media figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--w-56);
}

/* ----------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 980px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-hero {
        min-height: 60vh;
    }

    .case-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Back link and category eyebrow stack in the case hero. */
.case-hero-inner .back-link {
    display: flex;
    width: max-content;
}

.case-hero-inner .eyebrow {
    display: flex;
    width: max-content;
}
