.projects-page {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 82% 8%, #172e46, transparent 55%), #080f20;
    color: #f6f7fb;
}

.projects-page .shell { width: min(100% - 2.5rem, 70rem); }
.projects-page nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.project-list { padding-block: 2.25rem 2.75rem; }

.project-list h1,
.project-list h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.project-list h1 { font-size: clamp(2.55rem, 5vw, 4rem); }
.project-list h2 { font-size: clamp(1.95rem, 4vw, 3rem); }

.project-list p {
    margin: .65rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: .875rem;
    background: #111d30;
}

.project-gallery {
    display: grid;
    gap: .5rem;
    padding: .875rem;
    background: #0c1627;
}

.project-gallery img {
    display: block;
    width: 100%;
    border-radius: .375rem;
    object-fit: cover;
    object-position: center 15%;
}

.gesture-lead { aspect-ratio: 1.8; }

.gesture-samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.gesture-samples img { aspect-ratio: 1.65; }
.project-copy { align-self: center; padding: clamp(1.4rem, 4vw, 2.75rem); }

.project-list .project-label {
    margin: 0 0 .7rem;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-stack { font-size: .875rem; }

.project-list .project-button {
    display: inline-block;
    margin-top: 1.15rem;
    padding: .55rem .9rem;
    border-radius: .35rem;
    background: var(--accent);
    color: #081524;
    text-decoration: none;
    font-weight: 700;
}

.project-list .project-button:hover {
    background: #b5e7ff;
    color: #081524;
}

@media (max-width: 700px) {
    .projects-page .shell { width: calc(100% - 2rem); }
    .project-card { grid-template-columns: 1fr; }

}

.castle-gallery {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
    align-items: stretch;
}

.castle-gallery img {
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #111d30;
}

.castle-gallery .castle-model {
    grid-row: span 2;
    aspect-ratio: 393 / 512;
}
