/* =============================================================
   CASE STUDY DETAIL — single-case-study.php
   Meridian dark/neon theme adaptation of the PrimeWebCraft
   reference layout.
   ============================================================= */

/* ── Shared accent highlight ─────────────────────────────── */
.cs-accent {
    color: var(--accent);
    font-style: inherit;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.cs-detail {
    --cs-max: 900px;         /* unified content column width */
    --cs-col-pad: var(--sp-16) 0;
}

/* ── Shared section types ──────────────────────────────────── */
.cs-sec {
    padding-block: var(--sp-16);
}

.cs-sec--white {
    background: var(--surface-0);
}

.cs-sec--muted {
    background: var(--surface-1);
}

/* Prose column: centred, max-width */
.cs-col {
    max-width: var(--cs-max);
    margin-inline: auto;
}

/* Section headings */
.cs-sec__h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: var(--tracking-snug);
    color: var(--text-primary);
    margin-bottom: var(--sp-8);
    margin-top: 0;
    text-align: center;
}

.cs-sec__sub {
    text-align: center;
}

/* Section header with subtitle */
.cs-sec__header {
    margin-bottom: var(--sp-8);
    text-align: center;
}

.cs-sec__header .cs-sec__h2 {
    margin-bottom: var(--sp-3);
}

.cs-sec__sub {
    color: var(--text-secondary);
    font-size: var(--text-md);
    margin: 0;
}

/* ── 1. HERO ─────────────────────────────────────────────── */
.cs-hero {
    padding-top: calc(72px + var(--sp-16));
    padding-bottom: var(--sp-12);
    background: var(--surface-0);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.cs-hero__wrap {
    max-width: var(--cs-max);
    margin-inline: auto;
}

.cs-badge {
    margin-bottom: var(--sp-5);
}

.cs-badge .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    letter-spacing: var(--tracking-wide);
}

.cs-hero__h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0 0 var(--sp-6);
}

.cs-hero__sub {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--sp-8);
    line-height: var(--leading-relaxed);
}

/* ── Stat row (3 metric boxes) ──────────────────────────── */
.cs-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    text-align: left;
}

.cs-stat-box {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.cs-stat-box__val {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: var(--tracking-snug);
}

.cs-stat-box__metric {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.cs-stat-box__compare {
    font-size: var(--text-xs, 0.8rem);
    color: var(--text-muted, var(--text-secondary));
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: var(--sp-1);
}

.cs-stat-box__change--positive { color: var(--accent); font-weight: 600; }
.cs-stat-box__change--negative { color: #ff6b6b; font-weight: 600; }

.cs-hero__channel {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--sp-6);
    opacity: 0.7;
}

.cs-hero__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* ── 2. PROSE STYLES ────────────────────────────────────── */
.cs-prose {
    font-size: var(--text-md);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.cs-prose > * + * { margin-top: var(--sp-5); }
.cs-prose strong { color: var(--text-primary); }
.cs-prose a { color: var(--accent); }

/* ── 3. TIP CALLOUT ─────────────────────────────────────── */
.cs-tip {
    position: relative;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    padding: var(--sp-5) var(--sp-6);
    margin-top: var(--sp-6);
}

.cs-tip__lbl {
    display: inline-block;
    background: var(--accent);
    color: var(--surface-0);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px var(--sp-3);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-3);
}

.cs-tip p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
    line-height: var(--leading-relaxed);
}

/* ── 4. CHECKLIST (Goals) ───────────────────────────────── */
.cs-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: 0;
    margin: 0;
}

.cs-checklist__item {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--text-md);
    color: var(--text-primary);
    transition: border-color var(--dur-base) var(--ease-out);
}

.cs-checklist__item:hover {
    border-color: rgba(0,212,126,0.25);
}

.cs-checklist__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--accent);
    width: 20px;
    height: 20px;
}

/* ── 5. CHANGE LIST ─────────────────────────────────────── */
.cs-change-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.cs-change-list__item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: var(--sp-4);
    align-items: start;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
}

.cs-change-list__item:last-child {
    border-bottom: none;
}

.cs-change-list__icon {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--accent);
}

.cs-change-list__item > span:last-child {
    font-size: var(--text-md);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
}

/* ── 6. CREATIVES GRID ──────────────────────────────────── */
.cs-creatives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.cs-creative {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: border-color var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.cs-creative:hover {
    border-color: rgba(0,212,126,0.3);
    transform: translateY(-3px);
}

.cs-creative__img {
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
    width: 100%;
}

.cs-creative__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease-out);
}

.cs-creative:hover .cs-creative__img img {
    transform: scale(1.04);
}

.cs-creative__zoom {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.cs-creative__img:hover .cs-creative__zoom {
    opacity: 1;
}

.cs-creative__body {
    padding: var(--sp-4) var(--sp-5);
}

.cs-creative__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--sp-2);
}

.cs-creative__desc {
    font-size: var(--text-xs, 0.8rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ── 7. FUNNEL STATS ────────────────────────────────────── */
.cs-funnel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.cs-funnel-stat {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6) var(--sp-7);
    text-align: center;
}

.cs-funnel-stat__val {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: var(--tracking-snug);
    line-height: 1;
    margin-bottom: var(--sp-2);
}

.cs-funnel-stat__lbl {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.cs-funnel-desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-8);
}

.cs-funnel-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}

.cs-funnel-feat {
    text-align: center;
}

.cs-funnel-feat__icon {
    display: block;
    font-size: 1.75rem;
    margin-bottom: var(--sp-3);
    color: var(--accent);
    justify-items: center;
}

.cs-funnel-feat__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--sp-2);
}

.cs-funnel-feat__desc {
    font-size: var(--text-xs, 0.8rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ── 8. RESULTS TABLE ───────────────────────────────────── */
.cs-table-wrap {
    overflow-x: auto;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    margin-bottom: var(--sp-6);
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.cs-table thead tr {
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
}

.cs-table th {
    padding: var(--sp-4) var(--sp-5);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-align: left;
}

.cs-table td {
    padding: var(--sp-4) var(--sp-5);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.cs-table tbody tr:last-child td {
    border-bottom: none;
}

.cs-table tbody tr:hover {
    background: rgba(0,212,126,0.03);
}

.cs-table__change--positive {
    color: var(--accent);
    font-weight: 700;
}

.cs-table__change--negative {
    color: #ff6b6b;
    font-weight: 700;
}

/* ── 9. CONCLUSION CALLOUT ──────────────────────────────── */
.cs-conclusion {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    padding: var(--sp-5) var(--sp-6);
}

.cs-conclusion p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.cs-conclusion strong {
    color: var(--accent);
    font-weight: 700;
}

/* ── 10. TESTIMONIAL QUOTE ─────────────────────────────── */
.cs-quote {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6) var(--sp-7);
    margin: 0 0 var(--sp-6);
    position: relative;
}

.cs-quote__mark {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: var(--sp-3);
}

.cs-quote p {
    font-size: var(--text-md);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--sp-3);
    font-style: italic;
}

.cs-quote cite {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-style: normal;
}

/* ── 11. NEXT STEPS ─────────────────────────────────────── */
.cs-steps__label {
    margin-bottom: var(--sp-4);
    color: var(--text-primary);
}

.cs-steps__list {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.cs-steps__item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    counter-increment: steps;
}

.cs-steps__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--surface-0);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-steps__num::before {
    content: counter(steps);
}

.cs-steps__item > span:last-child {
    font-size: var(--text-md);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    padding-top: 4px;
}

/* ── 12. CTA STRIP ──────────────────────────────────────── */
.cs-strip {
    padding-block: var(--sp-12);
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cs-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
    flex-wrap: wrap;
}

.cs-strip__h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 var(--sp-2);
}

.cs-strip__copy p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.cs-strip__actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* ── 13. CONTACT FORM ─────────────────────────────────── */
.cs-contact {
    background: var(--surface-0);
}

.cs-contact__col {
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
}

.cs-contact__h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 var(--sp-3);
}

.cs-contact__sub {
    color: var(--text-secondary);
    margin-bottom: var(--sp-8);
}

.cs-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.cs-form__2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.cs-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.cs-form__field label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.cs-form__field input,
.cs-form__field textarea {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--dur-base) var(--ease-out);
}

.cs-form__field input::placeholder,
.cs-form__field textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.cs-form__field input:focus,
.cs-form__field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--c-neon-dim);
}

.cs-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.cs-form__msg {
    margin-top: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    text-align: center;
}
.cs-form__msg--ok {
    background: rgba(0, 200, 100, .12);
    color: #4ade80;
    border: 1px solid rgba(0, 200, 100, .25);
}
.cs-form__msg--err {
    background: rgba(255, 80, 80, .12);
    color: #f87171;
    border: 1px solid rgba(255, 80, 80, .25);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .cs-stat-row    { grid-template-columns: 1fr; gap: var(--sp-3); }
    .cs-creatives   { grid-template-columns: 1fr; }
    .cs-funnel-stats  { grid-template-columns: 1fr; }
    .cs-funnel-features { grid-template-columns: 1fr 1fr; }
    .cs-strip__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .cs-hero__h1    { font-size: 2rem; }
    .cs-stat-row    { grid-template-columns: 1fr; }
    .cs-funnel-features { grid-template-columns: 1fr; }
    .cs-form__2col  { grid-template-columns: 1fr; }
    .cs-hero__ctas  { flex-direction: column; }
    .cs-strip__actions { flex-direction: column; }
}

/* ================================================================
   NEW SECTIONS — appended to cs-detail.css
   Mockup (A) · Gallery + Lightbox (B) · O→K→D→L (C) ·
   Tools/Tech (D) · Video (E) · Archive type badges
   ================================================================ */

/* ── A. MOCKUP ─────────────────────────────────────────────────── */

.cs-mockup {
    padding: 0 0 var(--sp-4);
    background: var(--surface-0);
}

.cs-mockup .container {
    padding-inline: var(--gutter);
}

.cs-mockup__browser {
    border-radius: var(--r-2xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 2px 4px rgba(0,0,0,.08),
        0 8px 24px rgba(0,0,0,.18),
        0 32px 64px rgba(0,0,0,.22),
        0 0 0 1px rgba(255,255,255,.04);
    background: var(--surface-2);
}

/* Browser chrome bar */
.cs-mockup__bar {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    height: 40px;
    padding: 0 var(--sp-4);
    background: var(--surface-3);
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Traffic-light dots */
.cs-mockup__dots {
    display: inline-block;
    width: 48px;
    height: 12px;
    flex-shrink: 0;
    background:
        radial-gradient(circle 5px at 6px  6px, #ff5f57 100%) no-repeat 0 0,
        radial-gradient(circle 5px at 22px 6px, #febc2e 100%) no-repeat 0 0,
        radial-gradient(circle 5px at 38px 6px, #28c840 100%) no-repeat 0 0;
}

/* Fake address bar */
.cs-mockup__address {
    flex: 1;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: .01em;
}

.cs-mockup__img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── B. WEB GALLERY — 3-column grid, up to 12 items ───────────── */

.cs-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-top: var(--sp-8);
}

/* Every cell: fixed 4:3 aspect ratio, consistent look */
.cs-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    padding: 0;
    background: var(--surface-2);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, transform .22s, box-shadow .22s;
}
.cs-gallery__item:hover {
    border-color: rgba(0,212,126,.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0,0,0,.32), 0 0 0 1px rgba(0,212,126,.18);
}

/* Image fills the cell */
.cs-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.cs-gallery__item:hover .cs-gallery__img {
    transform: scale(1.06);
}

/* Overlay on hover */
.cs-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(5,14,18,.82) 0%,
        rgba(5,14,18,.35) 50%,
        rgba(5,14,18,0)   100%);
    display: flex;
    align-items: flex-end;
    padding: var(--sp-4);
    opacity: 0;
    transition: opacity .22s;
    border-radius: inherit;
}
.cs-gallery__item:hover .cs-gallery__overlay {
    opacity: 1;
}

/* Badge pill shown inside overlay */
.cs-gallery__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateY(6px);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}

/* Link items: green badge */
.cs-gallery__item--link .cs-gallery__badge {
    background: rgba(0,212,126,.18);
    border: 1px solid rgba(0,212,126,.35);
    color: var(--accent);
    backdrop-filter: blur(6px);
}

/* Zoom items: white badge */
.cs-gallery__item--zoom .cs-gallery__badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
}

.cs-gallery__item:hover .cs-gallery__badge {
    transform: translateY(0);
}

/* ── LIGHTBOX ──────────────────────────────────────────────────── */

.cs-lightbox {
    width: min(1320px, 96vw);
    max-height: 94vh;
    margin: auto;
    padding: 0;
    border: none;
    background: rgba(5,14,18,.97);
    border-radius: var(--r-2xl);
    outline: none;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0,0,0,.7),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 60px rgba(0,212,126,.08);
}
.cs-lightbox::backdrop {
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cs-lightbox__close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background .15s, color .15s, border-color .15s;
}
.cs-lightbox__close:hover {
    background: rgba(0,212,126,.15);
    border-color: rgba(0,212,126,.4);
    color: var(--accent);
}

.cs-lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 94vh;
    overflow-y: auto;
}

.cs-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(94vh - 56px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.cs-lightbox__cap {
    padding: var(--sp-3) var(--sp-8);
    font-size: var(--text-sm);
    color: rgba(255,255,255,.45);
    text-align: center;
    width: 100%;
}
.cs-lightbox__cap:empty {
    display: none;
}

/* ── C. O→K→D→L ───────────────────────────────────────────────── */

.cs-okdl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-8);
}

.cs-okdl__card {
    position: relative;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
    text-align: center;
}
.cs-okdl__card:hover {
    border-color: rgba(0,212,126,.35);
    box-shadow: 0 4px 24px rgba(0,212,126,.07);
}

.cs-okdl__letter {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
    opacity: .14;
    pointer-events: none;
    user-select: none;
}

.cs-okdl__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 var(--sp-3);
    letter-spacing: var(--tracking-snug);
}

.cs-okdl__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin: 0;
}

/* ── D. TOOLS / TECH STACK ─────────────────────────────────────── */

.cs-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.cs-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color .18s, color .18s, background .18s;
}
.cs-tool:hover {
    border-color: rgba(0,212,126,.45);
    color: var(--accent);
    background: rgba(0,212,126,.06);
}

/* ── E. VIDEO ──────────────────────────────────────────────────── */

.cs-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(0,0,0,.28);
    margin-bottom: var(--sp-4);
    background: var(--surface-2);
}
.cs-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}
.cs-video__caption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ── ARCHIVE — type badge + live indicator ──────────────────────── */

.cs-card__type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.cs-card__type-badge--case-study {
    background: rgba(0,212,126,.12);
    color: var(--accent);
    border-color: rgba(0,212,126,.25);
}
.cs-card__type-badge--portfolio {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border-color: rgba(59,130,246,.25);
}
.cs-card__type-badge--branding {
    background: rgba(245,158,11,.1);
    color: #fbbf24;
    border-color: rgba(245,158,11,.22);
}
.cs-card__type-badge--dev {
    background: rgba(139,92,246,.1);
    color: #a78bfa;
    border-color: rgba(139,92,246,.22);
}

.cs-card__live-badge {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: rgba(5,14,18,.75);
    border: 1px solid rgba(0,212,126,.35);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    backdrop-filter: blur(4px);
    z-index: 2;
}

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

@media (max-width: 1024px) {
    .cs-gallery { grid-template-columns: repeat(2, 1fr); }
    .cs-okdl { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cs-gallery { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
    .cs-okdl { grid-template-columns: 1fr; }
    .cs-mockup__bar { height: 32px; }
    .cs-mockup__address { display: none; }
}
@media (max-width: 420px) {
    .cs-gallery { grid-template-columns: 1fr; }
}
