/* ==========================================================================
   Projects Archive — ported from landing/projects.html inline <style>
   ========================================================================== */

/* Hero */
.projects-hero {
    background: linear-gradient(to right, rgba(4, 3, 9, 0.85), rgba(44, 45, 130, 0.7));
    background-color: var(--navy);
    padding: 5rem 0;
    color: var(--white);
}

.projects-hero .section-shell {
    max-width: 800px;
}

.projects-hero .eyebrow {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.projects-hero h1 {
    font-family: bicyclette, sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--white);
}

.projects-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 600px;
}

/* Page shell */
.projects-page {
    padding: 3rem 0 5rem;
    background: var(--stone);
    min-height: 60vh;
}

/* Filter pill bar */
.projects-filter-bar {
    padding: 2rem 0 0;
    background: var(--stone);
}

.project-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.project-filter-pills .pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.project-filter-pills .pill:hover {
    background: var(--sand);
    border-color: rgba(0, 0, 0, 0.14);
}

.project-filter-pills .pill.is-active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Grid */
.projects-grid-section {
    padding: 2rem 0 5rem;
    background: var(--stone);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

/* Card */
.projects-grid .project-card {
    background: var(--white);
    border-radius: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.projects-grid .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 18, 56, 0.12);
}

.projects-grid .project-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.projects-grid .project-card-link:hover,
.projects-grid .project-card-link:focus,
.projects-grid .project-card-link:visited,
.projects-grid .project-card-link * {
    text-decoration: none;
    color: inherit;
}

.projects-grid .project-card figure {
    min-height: 200px;
    background-size: cover;
    background-position: center;
    margin: 0;
    position: relative;
}

.projects-grid .project-card figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.projects-grid .project-card:hover figure::after {
    opacity: 1;
}

.projects-grid .project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-grid .project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.projects-grid .project-category {
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
    color: var(--slate);
    background: var(--sand);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.projects-grid .project-info h4 {
    font-family: bicyclette, sans-serif;
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--navy);
    line-height: 1.3;
}

.projects-grid .project-info p.project-meta {
    color: var(--slate);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.05rem;
}

.projects-grid .project-info p {
    color: var(--slate);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.projects-grid .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    transition: gap 0.2s;
}

.projects-grid .project-card:hover .project-link {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.8rem;
    border-radius: 0.5rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}
