/* The first screen leads with real tools; public works follow the mini experience. */
.home-discovery { padding-block: .75rem 1.7rem; }
.home-gallery { min-width: 0; padding: .75rem; border: 1px solid #e0e4df; border-radius: 1rem; background: #fff; }
.home-gallery__heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; }
.home-gallery__heading h2 { margin: 0 0 .15rem; color: #1b2025; font-size: .96rem; font-weight: 900; }
.home-gallery__heading p { margin: 0; color: #65716e; font-size: .72rem; line-height: 1.4; }
.home-gallery__heading > a { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: .25rem; color: #1b2025; font-size: .74rem; font-weight: 850; text-decoration: none; }
.home-gallery__heading > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.home-gallery__status { grid-column: 1 / -1; box-sizing: border-box; display: grid; align-content: center; min-height: 2.5rem; margin: 0; padding: .45rem .65rem; border: 1px solid #e2e5e7; border-radius: .7rem; background: #f7f8f6; color: #4f5a61; font-size: .76rem; line-height: 1.45; text-align: center; }
.home-gallery__status a { color: #1b2025; font-weight: 850; }
.home-gallery__result { grid-column: 1 / -1; width: 100%; display: grid; justify-items: center; gap: .25rem; }
.home-gallery__map-link { min-height: 44px; display: inline-flex; align-items: center; color: #1b2025; font-size: .76rem; font-weight: 850; }
.home-gallery__retry { min-height: 44px; justify-self: center; margin-top: .15rem; padding: 0 .85rem; border: 1px solid #69737a; border-radius: .65rem; background: #fff; color: #1b2025; font: inherit; font-size: .76rem; font-weight: 850; cursor: pointer; }
.home-gallery__retry:hover { background: #f1f3f2; }
.home-work { min-width: 0; overflow: hidden; border: 1px solid #e6e9e5; border-radius: .75rem; background: #f5f6f2; color: #1b2025; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-work:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(27,32,37,.11); }
.home-work__image { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: #e7eae5; }
.home-work__image img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.home-work__title { display: block; overflow: hidden; padding: .45rem .5rem; font-size: .72rem; font-weight: 850; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-work:focus-visible, .home-gallery__heading > a:focus-visible, .home-gallery__retry:focus-visible { outline: 3px solid #1b2025; outline-offset: 2px; }
@media (max-width: 420px) {
  .home-discovery { padding-block: .65rem 1.25rem; }
  .home-gallery { padding: .65rem; }
  .home-gallery__heading { align-items: start; }
  .home-gallery__heading p { max-width: 26ch; }
  .home-gallery__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-work:nth-of-type(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .home-work { transition: none; } .home-work:hover { transform: none; } }
html[data-pixieed-motion="reduced"] .home-work { transition: none; }
