﻿.rpm-work {
    --void: #06070b;
    --panel: #0d0f16;
    --panel-2: #12151f;
    --line: rgba(255,255,255,0.07);
    --text: #edeff5;
    --muted: #8b90a3;
    --blue: #3e7bff;
    --purple: #9b5cff;
    background: var(--void);
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

    .rpm-work::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(600px circle at 10% 0%, rgba(62,123,255,0.08), transparent 60%), radial-gradient(600px circle at 90% 100%, rgba(155,92,255,0.08), transparent 60%);
        pointer-events: none;
    }

/*.rpm-work-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}*/

.rpm-work-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.rpm-work-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
}

    .rpm-work-eyebrow::before,
    .rpm-work-eyebrow::after {
        content: "";
        width: 20px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--blue));
    }

    .rpm-work-eyebrow::after {
        background: linear-gradient(90deg, var(--purple), transparent);
    }

.rpm-work-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.85rem);
    color: var(--text);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

    .rpm-work-title span {
        background: linear-gradient(100deg, var(--blue), var(--purple));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.rpm-work-sub {
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 500;
    text-align: justify;
}

.rpm-work-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 1.25rem;
    width: 1200px;
}

.rpm-card {
    grid-column: span 2;
}

    .rpm-card.is-tall {
        grid-row: span 2;
    }

    .rpm-card.is-wide {
        grid-column: span 4;
    }

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

    .rpm-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 260px;
    }
}

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

.rpm-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
}

    .rpm-card::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--blue), var(--purple));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 3;
        pointer-events: none;
    }

    .rpm-card:hover::before {
        opacity: 1;
    }

.rpm-card-media {
    position: absolute;
    inset: 0;
}

    .rpm-card-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(55%) brightness(0.6) contrast(1.05);
        transform: scale(1.04);
        transition: filter 0.6s ease, transform 0.7s ease;
    }

.rpm-card:hover .rpm-card-media img {
    filter: grayscale(0%) brightness(0.8) contrast(1.05);
    transform: scale(1.1);
}

.rpm-card-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(62,123,255,0.28) 48%, rgba(155,92,255,0.28) 52%, transparent 60%);
    transform: translateX(-140%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.rpm-card:hover .rpm-card-sweep {
    transform: translateX(140%);
}

.rpm-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6,7,11,0.95) 0%, rgba(6,7,11,0.35) 45%, transparent 75%);
    z-index: 2;
}

.rpm-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.4rem;
    z-index: 4;
}

.rpm-card-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid rgba(62,123,255,0.35);
    background: rgba(62,123,255,0.08);
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.6rem;
}

.rpm-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 0.7rem;
}

.rpm-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rpm-card:hover .rpm-card-more {
    opacity: 1;
    transform: translateY(0);
}

.rpm-card-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.rpm-card:hover .rpm-card-more svg {
    transform: translateX(3px);
}

.rpm-strip-wrap {
    margin-top: 5rem;
}

.rpm-strip-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

    .rpm-strip-head .rpm-work-eyebrow {
        margin-bottom: 0;
    }

.rpm-ticker {
    width:1200px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 50px;
    padding: 0.6rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

    .rpm-ticker::before,
    .rpm-ticker::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 10%;
        max-width: 140px;
        z-index: 2;
        pointer-events: none;
    }

    .rpm-ticker::before {
        left: 0;
        background: linear-gradient(90deg, var(--void), transparent);
    }

    .rpm-ticker::after {
        right: 0;
        background: linear-gradient(270deg, var(--void), transparent);
    }

.rpm-ticker-track {
    display: flex;
    width: max-content;
    animation: rpm-ticker-scroll 22s linear infinite;
}

.rpm-ticker:hover .rpm-ticker-track {
    animation-play-state: paused;
}

@keyframes rpm-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.rpm-ticker-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0 1.75rem;
    white-space: nowrap;
    position: relative;
}

    .rpm-ticker-item::after {
        content: "\2726";
        position: absolute;
        right: -0.15rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.6rem;
        background: linear-gradient(100deg, var(--blue), var(--purple));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.rpm-strip {
    position: relative;
    margin: 0 -1.5rem;
}

    .rpm-strip::before,
    .rpm-strip::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 10%;
        max-width: 160px;
        z-index: 3;
        pointer-events: none;
    }

    .rpm-strip::before {
        left: 0;
        background: linear-gradient(90deg, var(--void), transparent);
    }

    .rpm-strip::after {
        right: 0;
        background: linear-gradient(270deg, var(--void), transparent);
    }

.rpm-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 0 1.5rem;
    animation: rpm-scroll 34s linear infinite;
}

.rpm-strip:hover .rpm-track {
    animation-play-state: paused;
}

@keyframes rpm-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.rpm-tile {
    position: relative;
    flex: 0 0 auto;
    width: 450px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
}

    .rpm-tile::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--blue), var(--purple));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 2;
        pointer-events: none;
    }

    .rpm-tile:hover::before {
        opacity: 1;
    }

.rpm-tile-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--panel-2);
}

    .rpm-tile-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(65%) brightness(0.72) contrast(1.02);
        transform: scale(1.02);
        transition: filter 0.6s ease, transform 0.6s ease;
    }

.rpm-tile:hover .rpm-tile-media img {
    filter: grayscale(0%) brightness(0.92) contrast(1.05);
    transform: scale(1.08);
}

.rpm-tile-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(62,123,255,0.30) 48%, rgba(155,92,255,0.30) 52%, transparent 60%);
    transform: translateX(-140%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.rpm-tile:hover .rpm-tile-sweep {
    transform: translateX(140%);
}

.rpm-tile-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(0deg, rgba(6,7,11,0.92) 10%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.rpm-tile:hover .rpm-tile-overlay {
    transform: translateY(0);
    opacity: 1;
}

.rpm-tile-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--text);
    white-space: nowrap;
}

    .rpm-tile-code b {
        color: var(--blue);
        font-weight: 500;
    }

.rpm-tile-expand {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}

    .rpm-tile-expand svg {
        width: 13px;
        height: 13px;
    }

@media (max-width: 720px) {
    .rpm-tile {
        width: 240px;
        height: 170px;
    }
}

.rpm-cta {
    margin:0 auto;
    width:800px;
    margin-top: 5rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, rgba(62,123,255,0.10), rgba(155,92,255,0.10));
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.rpm-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text);
    margin: 0;
    max-width: 560px;
    letter-spacing: -0.01em;
}

.rpm-cta-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.rpm-btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rpm-btn-primary {
    color: var(--void);
    background: linear-gradient(100deg, var(--blue), var(--purple));
}

    .rpm-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(62,123,255,0.25);
    }

.rpm-btn-outline {
    color: var(--text);
    border: 1px solid var(--line);
    background: transparent;
}

    .rpm-btn-outline:hover {
        border-color: rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.04);
    }

@media (prefers-reduced-motion: reduce) {
    .rpm-card-media img,
    .rpm-card-sweep,
    .rpm-card-more,
    .rpm-card::before,
    .rpm-tile-media img,
    .rpm-tile-sweep,
    .rpm-tile-overlay,
    .rpm-tile::before {
        transition: none !important;
    }

    .rpm-card-sweep,
    .rpm-tile-sweep {
        display: none;
    }

    .rpm-track {
        animation: none;
    }
}
