.footer-projects { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft); }
.footer-projects h2 { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.footer-projects-list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; }
.footer-projects-item { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; }
.footer-projects-item > a { color: var(--soft); font-size: 13px; text-decoration: none; text-underline-offset: 4px; }
.footer-projects-item > a:hover { color: var(--ink); text-decoration: underline; }
.footer-projects-preview { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--soft); cursor: pointer; font: 17px/1 sans-serif; }
.footer-projects-preview:hover, .footer-projects-preview[aria-expanded=true] { background: var(--raise); color: var(--ink); }
.footer-projects :is(a,button):focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; }
.footer-projects-tooltip { position: absolute; z-index: 5; left: 0; bottom: 100%; width: min(260px, calc(100vw - 64px)); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 8px 24px #0003; }
.footer-projects-tooltip[hidden], .footer-projects-tooltip img[hidden] { display: none; }
.footer-projects-tooltip img { display: block; width: 100%; height: auto; max-height: 160px; aspect-ratio: 1200 / 675; object-fit: contain; border-radius: 6px; background: var(--void); }
.footer-projects-tooltip > span { display: block; padding-top: 7px; font-size: 12px; line-height: 1.4; }
@media (min-width: 641px) { .footer-projects-item:last-child .footer-projects-tooltip { left: auto; right: 0; } }
@media (max-width: 640px) { .footer-projects-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; } .footer-projects-preview { width: 44px; height: 44px; flex-basis: 44px; } }
