/* Homepage project showcase. Kept separate to leave shared page styles unchanged. */
.selected-work {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 3rem;
    scroll-margin-top: 100px;
}
.selected-work .section-title { margin-bottom: 1rem; }
.work-intro { max-width: 650px; margin-bottom: 2.5rem; color: var(--ash); font-size: 1.05rem; line-height: 1.8; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.work-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #34343c;
    border-top: 2px solid var(--gold-dim);
    background: var(--dark);
    color: var(--ash);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.work-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.work-card:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 5px; }
.work-preview { overflow: hidden; aspect-ratio: 8 / 5; background: var(--carbon); border-bottom: 1px solid #34343c; }
.work-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-content { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.work-category { color: var(--gold-light); font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; line-height: 1.7; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 0.8rem; }
.work-content h3 { color: var(--light); font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 0.9rem; }
.work-content p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.4rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: auto 0 1.6rem; }
.work-tags li { border: 1px solid #41414b; padding: 0.35rem 0.55rem; color: var(--smoke); font-size: 0.7rem; line-height: 1.4; }
.work-link { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem; padding-top: 1.1rem; border-top: 1px solid #34343c; color: var(--gold-light); font-family: 'JetBrains Mono', monospace; font-size: 0.73rem; line-height: 1.7; }
@media (max-width: 768px) {
    .selected-work { padding: 3.5rem 1.5rem; scroll-margin-top: 80px; }
    .work-grid { grid-template-columns: 1fr; }
    .work-content { padding: 1.4rem; }
    .work-intro { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .work-card { transition: none; }
    .work-card:hover { transform: none; }
}
