.tile--projects { padding: 20px; gap: 10px; justify-content: center; }
.tile--projects .sw-label { margin: 0; flex-shrink: 0; }
.tile--projects .sw-label-icon { background: #fff; border-radius: 5px; }
.tile--projects .sw-cards { padding: 6px; margin: 0 0 8px; border: 1px solid var(--outline); border-radius: 14px; flex-shrink: 0; }
.tile--projects .sw-panel { overflow: visible; }
.tile--projects .sw-panel[hidden] { display: none; }
.pj-card { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 16px; width: 100%; min-width: 0; padding: 8px; background: var(--card); color: var(--text); text-decoration: none; border-radius: 9px; }
.pj-card:hover .pj-visit { text-decoration: underline; text-underline-offset: 3px; }
.pj-card:focus-visible { outline: 2px solid var(--sw-purple); outline-offset: -2px; }
.pj-shot { display: block; width: 100%; height: 128px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#project-panel-galpang .pj-shot { object-position: 50% 75%; }
.pj-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 5px; }
.pj-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.pj-description { color: var(--muted); font-size: 12px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.pj-home-meta { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
.pj-visit { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.pj-visit svg { width: 15px; height: 15px; }
.pj-domain { color: var(--muted); font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.tile--projects .sw-dock { max-width: 100%; padding: 7px; gap: 8px; flex-shrink: 0; }
.tile--projects .sw-app { --sw-app-size: 58px; border-radius: 17px; }
.tile--projects .sw-app img { background: #fff; }
@media (max-width: 640px) {
  .tile--projects { padding: 18px; }
  .pj-card { gap: 12px; grid-template-columns: 1fr 1fr; }
  .pj-shot { height: 118px; }
  .pj-name { font-size: 18px; }
  .pj-description { font-size: 11px; }
}
@media (max-width: 360px) {
  .tile--projects { padding: 16px; }
  .tile--projects .sw-dock { gap: 6px; }
  .tile--projects .sw-app { --sw-app-size: 50px; border-radius: 15px; }
  .pj-card { gap: 10px; padding: 6px; }
  .pj-shot { height: 120px; }
  .pj-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .tile--projects .sw-panel.is-active { animation: none; } }

/* Five project choices stay within the home tile, including a 320px viewport. */
.tile--projects .sw-dock { gap: 6px; }
.tile--projects .sw-app { --sw-app-size: clamp(36px, 8vw, 50px); flex-shrink: 1; }
.tile--projects .sw-app img { width: 100%; height: 100%; }
@media (max-width: 360px) { .tile--projects .sw-dock { gap: 4px; padding: 5px; } .tile--projects .sw-app { --sw-app-size: 36px; } }

.tile--projects .sw-app { --sw-app-size: 58px; display: grid; place-items: center; border-radius: 17px; text-decoration: none; }
.tile--projects .sw-app:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
