/* The projects index has two levels: visual highlights, then quiet icon entries. */
#projects .project-grid { max-width: 740px; gap: 30px 28px; }
.featured-project { min-width: 0; }
.project-preview { display: block; position: relative; overflow: hidden; aspect-ratio: 1.82; border-radius: 4px; background: #dedbd5; color: #ffffff; text-decoration: none; }
.project-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.preview-thumbstop { background: #d8d6d1; }
.preview-thumbstop > img { object-position: center 32%; padding: 0 8px; transform: scale(1.03); }
.featured-project:hover .preview-thumbstop > img { transform: scale(1.05); }
.featured-project:hover .preview-visualstyleref > img { transform: scale(1.02); }
.featured-project:hover .preview-cliplicate > img, .featured-project:hover .preview-onset > img { transform: scale(1.03); }
.project-details { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; background: linear-gradient(transparent 5%, #141412c9 85%); color: #ffffff; font-size: 14px; line-height: 20px; opacity: 0; transition: opacity 220ms ease; }
.project-read-more { font-size: 13px; line-height: 20px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.featured-project:hover .project-details, .featured-project:focus-within .project-details { opacity: 1; }
.project-title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-top: 10px; }
.featured-project .project-name { margin: 0; }
.project-product-link { padding: 2px 3px; background: var(--link-background); color: var(--strong); font-size: 13px; line-height: 20px; white-space: nowrap; text-decoration: none; }
.project-product-link:hover { background: var(--link-hover); text-decoration: underline; }
.project-name a { color: inherit; text-decoration: none; }
.project-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-project .project-desc { margin: 3px 0 0; }
/* Product-specific artwork keeps Walklay's own palette inside the preview. */
.preview-walklay { font-family: var(--sans); background: #f0f0e7; isolation: isolate; container-type: inline-size; }
.preview-walklay::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#7c877110 1px, transparent 1px), linear-gradient(90deg, #7c877110 1px, transparent 1px); background-size: 30px 30px; }
.preview-walklay > img { position: absolute; right: -4%; top: -3%; width: 64%; height: 105%; mix-blend-mode: multiply; object-fit: contain; transform: rotate(8deg) scale(1.04); }
.featured-project:hover .preview-walklay > img { transform: rotate(8deg) scale(1.06); }
.walklay-cover-copy { position: absolute; left: 6%; top: 12%; width: 51%; color: #23261f; display: flex; flex-direction: column; gap: 11px; z-index: 1; }
.walklay-cover-kicker { font-size: 11px; line-height: 15px; letter-spacing: 0.7px; font-weight: 500; }
.walklay-cover-headline { font-size: clamp(18px, 6.3cqw, 24px); line-height: 1.1; letter-spacing: -0.7px; font-weight: 650; }
.walklay-cover-headline mark { background: #c3ef85; color: inherit; padding: 0 3px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.walklay-cover-note { font-size: 11px; line-height: 16px; color: #606553; max-width: 105px; }
.walklay-cover-key { position: absolute; bottom: 8%; right: 6%; font-size: 11px; line-height: 16px; color: #606553; z-index: 1; }
.walklay-cover-key::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a7d65d; margin-right: 5px; }
.secondary-projects { display: grid; gap: 24px; max-width: 740px; margin-top: 54px; }
.secondary-project { display: flex; align-items: center; gap: 16px; max-width: 620px; padding: 4px 0; color: inherit; text-decoration: none; }
.secondary-project-icon { display: block; flex: none; width: var(--project-icon-size, 68px); height: var(--project-icon-size, 68px); border-radius: 5px; object-fit: cover; }
.secondary-project-copy { flex: 1; min-width: 0; }
.secondary-project .project-desc { max-width: 460px; line-height: 21px; }
.secondary-project:hover .project-name { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 701px) and (max-width: 900px) {
    #projects .project-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}
@media (max-width: 700px) {
    #projects .project-grid { max-width: 480px; gap: 30px; }
    .project-details { opacity: 1; }
    .secondary-projects { margin-top: 48px; }
    .secondary-project { gap: 14px; }
    .secondary-project-icon { width: 56px; height: 56px; }
}
@media (hover: none) { .project-details { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .project-preview > img, .project-details { transition: none; }
    .featured-project:hover .preview-thumbstop > img { transform: scale(1.03); }
    .featured-project:hover .preview-cliplicate > img, .featured-project:hover .preview-onset > img,
    .featured-project:hover .preview-visualstyleref > img { transform: none; }
    .featured-project:hover .preview-walklay > img { transform: rotate(8deg) scale(1.04); }
}
