
.work-hero-section {
    padding-top: clamp(48px, 6vw, 72px) !important;
    padding-bottom: 36px !important;
    text-align: center;
}
.work-grid-section {
    padding-top: 48px !important;
    padding-bottom: 80px !important;
}
.work-hero-section .section-label {
    text-align: center;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--ink);
    margin: 0 auto 16px auto;
    line-height: 1.05;
    text-align: center;
}
.page-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--ink-dim);
    max-width: 680px;
    line-height: 1.5;
    margin: 0 auto 40px auto;
    text-align: center;
}
.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.filter-btn { background: #ffffff; border: 1px solid var(--line); color: var(--ink-dim); padding: 10px 20px; font-size: 13px; font-family: var(--font-sans); font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 150ms ease; }
.filter-btn:hover, .filter-btn.active { color: #ffffff; border-color: #000000; background: #000000; }
.projects-grid,
.work-showcase-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: min(1520px, 95vw);
    margin: 0 auto;
}

/* Base Project Video Card */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    display: block;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: #000000;
    box-shadow: none !important;
}

.project-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--panel);
    border-radius: 12px;
}

.project-card .card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #000000;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.project-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,7,11,0) 35%, rgba(5,7,11,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(16px, 2.5vw, 24px);
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.project-card .card-client {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.project-card .card-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.project-card .card-hover-prompt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.project-card:hover .card-hover-prompt {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEGA COMMAND WALLS (Frame 28 & Frame 29 — 6 Projects)
   ========================================================================== */

/* Frame 28: Bookends Layout (9:16 + Stack + Stack + 9:16) */
.layout-frame-28 {
    display: grid;
    grid-template-columns: 81fr 128fr 128fr 81fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}
.layout-frame-28 .card-vertical {
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Frame 29: Center Pillars Layout (Stack + 9:16 + 9:16 + Stack) */
.layout-frame-29 {
    display: grid;
    grid-template-columns: 128fr 81fr 81fr 128fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}
.layout-frame-29 .card-vertical {
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* ==========================================================================
   CLASSIC EDITORIAL TRIOS (Frame 26 & Frame 27 — 3 Projects)
   ========================================================================== */

/* Frame 26: 9:16 Left + Frame 25 (two 16:9 stacked) Right */
.layout-frame-26 {
    display: grid;
    grid-template-columns: 81fr 128fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}
.layout-frame-26 .card-vertical {
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Frame 27: Frame 25 (two 16:9 stacked) Left + 9:16 Right */
.layout-frame-27 {
    display: grid;
    grid-template-columns: 128fr 81fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}
.layout-frame-27 .card-vertical {
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Frame 25: Vertical Stack for two 16:9 cards */
.frame-25-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.card-horizontal {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* ==========================================================================
   ADAPTIVE FINISHERS & REMAINDERS (Curated Space Utilization)
   ========================================================================== */

/* 1 Horizontal Centered (Cinematic Spotlight Anchor) */
.layout-row-1h-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}
.layout-row-1h-centered .card-horizontal {
    width: 100%;
    max-width: 880px;
    aspect-ratio: 16 / 9;
}

/* 2 Horizontals Centered (Twin Cinema Split) */
.layout-row-2h-centered {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
.layout-row-2h-centered .card-horizontal {
    aspect-ratio: 16 / 9;
}

/* Row of 3 Horizontals */
.layout-row-3h {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.layout-row-3h .card-horizontal {
    aspect-ratio: 16 / 9;
}

/* 1 Vertical + 1 Horizontal Balanced Split (The Balanced Duo) */
.layout-split-vh {
    display: grid;
    grid-template-columns: 81fr 128fr;
    gap: 20px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}
.layout-split-vh .card-vertical {
    aspect-ratio: 9 / 16;
}
.layout-split-vh .card-horizontal {
    aspect-ratio: 16 / 9;
}

/* 1 Vertical Centered (Reel Spotlight Anchor) */
.layout-row-1v-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}
.layout-row-1v-centered .card-vertical {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
}

/* 2 Verticals Centered (Twin Reel Split) */
.layout-row-2v-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.layout-row-2v-centered .card-vertical {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 16;
}

/* 3 Verticals in Row */
.layout-row-3v {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.layout-row-3v .card-vertical {
    aspect-ratio: 9 / 16;
}

/* Responsive collapse */
@media (max-width: 1180px) {
    .layout-frame-28 {
        grid-template-columns: 81fr 128fr;
    }
    .layout-frame-29 {
        grid-template-columns: 128fr 81fr;
    }
}

@media (max-width: 860px) {
    .layout-frame-28,
    .layout-frame-29,
    .layout-frame-26,
    .layout-frame-27,
    .layout-split-vh {
        display: flex;
        flex-direction: column;
    }
    .layout-frame-28 .card-vertical,
    .layout-frame-29 .card-vertical,
    .layout-frame-26 .card-vertical,
    .layout-frame-27 .card-vertical,
    .layout-split-vh .card-vertical {
        aspect-ratio: 9 / 16;
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }
    .layout-frame-28 .card-horizontal,
    .layout-frame-29 .card-horizontal,
    .layout-frame-26 .card-horizontal,
    .layout-frame-27 .card-horizontal,
    .layout-split-vh .card-horizontal {
        aspect-ratio: 16 / 9;
        width: 100%;
    }
    .layout-row-2h-centered,
    .layout-row-3h {
        grid-template-columns: 1fr;
    }
    .layout-row-2v-centered,
    .layout-row-3v {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .layout-row-2v-centered .card-vertical,
    .layout-row-3v .card-vertical {
        max-width: 440px;
    }
}

/* ==========================================================================
   WORK PORTFOLIO — DARK MODE OVERRIDES
   ========================================================================== */
[data-theme="dark"] .filter-btn {
    background: #0d0d0f !important;
    border-color: var(--line) !important;
    color: var(--ink-dim, #b0b0b8) !important;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .project-card {
    border-color: var(--line) !important;
}

[data-theme="dark"] .card-badge {
    background: #141416 !important;
    border: 1px solid var(--line-light) !important;
    color: #ffffff !important;
}

