/* ============================================================
   Work — case-study cards (App Development, Performance, Signage)
   Swiss editorial rows: a rule on top, a narrow text column, the live demo on a flat stage.
   Loaded after the inline <style> in index.html, so equal-specificity rules here win.
   ============================================================ */

.hybrid-work-grid {
    gap: clamp(72px, 9vw, 140px);
    counter-reset: cs;
}

.case-study-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--text-primary);
    border-radius: 0;
    overflow: visible;
    padding-top: 14px;
    counter-increment: cs;
    transition: none;
}

.case-study-card:hover {
    border-color: var(--text-primary);
    transform: none;
}

.case-study-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    min-height: 0;
}

.case-study-info {
    grid-column: 1 / 5;
    padding: 0;
    justify-content: flex-start;
    gap: 14px;
}

.case-study-demo {
    grid-column: 5 / -1;
    padding: clamp(28px, 4vw, 64px);
    border-left: 0;
    background: var(--bg-elevated);
    min-height: 460px;
    position: relative;
}

/* Index + category: "01  Banking" */
.cs-category {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0;
    border: 0;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: lowercase;   /* markup is uppercase; Swiss labels are lowercase */
    color: var(--text-tertiary);
}

.cs-category::before {
    content: counter(cs, decimal-leading-zero);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.cs-category-dot { display: none; }

.cs-title {
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.95;
    margin-top: 18px;
}

.cs-subtitle {
    font-size: var(--fs-body);
    color: var(--text-primary);
    line-height: 1.4;
}

/* Role: a plain labelled line, not a badge */
.cs-role {
    display: flex;
    gap: 10px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-primary);
    width: 100%;
}

.cs-role::before {
    content: 'Role';
    font-weight: 500;
    color: var(--text-tertiary);
    min-width: 4.5em;
}

.cs-coming-badge {
    padding: 0;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}

.cs-coming-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: var(--fill-art);
}

.cs-description {
    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--text-secondary);
}

.cs-collab {
    font-size: var(--fs-small);
    border-left: 2px solid var(--text-primary);
    color: var(--text-secondary);
}

.cs-collab strong { color: var(--text-primary); font-weight: 600; }

/* Tech: one quiet line, separated by slashes */
.cs-tech-tags {
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.cs-tech-tags::before {
    content: 'Stack';
    min-width: 4.5em;
    margin-right: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.cs-tech-tags span,
.cs-tech-tags span.tag-terracotta {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    letter-spacing: 0;
    color: var(--text-primary);
}

.cs-tech-tags span + span::before {
    content: '/';
    margin: 0 0.45em;
    color: var(--text-tertiary);
}

@media (max-width: 1024px) {
    .case-study-info,
    .case-study-demo { grid-column: 1 / -1; }
    .case-study-demo { margin-top: 32px; border-top: 0; min-height: 0; }
}

@media (max-width: 768px) {
    .case-study-info { padding: 0; }
    .cs-title { font-size: 2rem; }
    .case-study-demo { padding: 20px; }
}
