*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Page wrapper ── */
.page {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
}

/* ── Hero ── */
.hero {
    margin-bottom: 4rem;
}

.hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    max-width: 480px;
    font-weight: 300;
}

/* ── Projects grid ── */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.card-img-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: grayscale(20%) brightness(0.9);
    transition: filter 0.25s, transform 0.3s;
}

.project-card:hover .card-img-wrap img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}

.card-content {
    padding: 1rem 1.1rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.tags span {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
}

.card-content h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.7;
    font-weight: 300;
}

/* ── Tools ── */
.tools-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
    margin-bottom: 3rem;
}

.tools-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tool:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tool i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ── Back link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .page {
        padding: 3rem 1.2rem 3rem;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}
