/* Home is a compact preview; the Work page holds the full case details. */
html body.landfree-refined .home-work { padding-block: 80px; }
.home-work-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
html body.landfree-refined .home-work-header h2 { margin: 0 0 12px; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.home-work-header p { margin: 0; color: #b6bdb9; }
.home-work-all,.home-work-link { display: inline-flex; align-items: center; gap: 10px; color: #d4ff24; text-decoration: none; min-height: 44px; white-space: nowrap; }
.home-work-all:hover,.home-work-link:hover { color: #efffa9; }
.home-work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.home-work-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: #0c0f10; }
.home-work-image { display: flex; margin: 12px 12px 0; aspect-ratio: 16/10; overflow: hidden; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: #080a0b; }
.home-work-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-work-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 20px 20px 16px; }
html body.landfree-refined .home-work-copy h3 { margin: 0 0 12px; font-size: clamp(21px,1.8vw,25px); line-height: 1.18; letter-spacing: -.03em; }
.home-work-copy h3 a { color: #f4f6f7; text-decoration: none; }
.home-work-copy h3 a:hover { color: #d4ff24; }
.home-work-copy p { margin: 0 0 16px; color: #b6bdb9; font-size: 15px; line-height: 1.55; }
.home-work-link { margin-top: auto; }
.home-work a:focus-visible { outline: 2px solid #d4ff24; outline-offset: 4px; }
@media (max-width: 900px) { .home-work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { html body.landfree-refined .home-work { padding-block: 48px; } .home-work-header { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 24px; } .home-work-grid { grid-template-columns: 1fr; gap: 16px; } }
.home-work-image img { object-fit: fill; }
/* Five selected projects: three on the first row, two centered below. */
@media (min-width: 901px) {
  html body.landfree-refined .home-work-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  html body.landfree-refined .home-work-card { grid-column: span 2; }
  html body.landfree-refined .home-work-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 601px) and (max-width: 900px) {
  html body.landfree-refined .home-work-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - 20px) / 2); }
}
html body.landfree-refined .home-work-network { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; }
html body.landfree-refined .home-work-network img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
/* A scrollable project rail works with touch, trackpads and keyboards. */
html body.landfree-refined .home-work-header { align-items: end; }
.home-work-header > div:first-child { flex: 1; min-width: 0; }
.home-work-controls[hidden] { display: none; }
.home-work-controls { display: flex; gap: 8px; flex: none; }
.home-work-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; color: #f4f6f7; cursor: pointer; }
.home-work-controls button:not(:disabled):hover { border-color: #d4ff24; color: #d4ff24; }
.home-work-controls button:disabled { opacity: .35; cursor: default; }
.home-work-controls button:focus-visible, .home-work-grid:focus-visible { outline: 2px solid #d4ff24; outline-offset: 3px; }
html body.landfree-refined .home-work-grid { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-block: 4px 12px; scrollbar-width: thin; scrollbar-color: #737d55 transparent; }
html body.landfree-refined .home-work-grid .home-work-card { flex: 0 0 calc((100% - 88px) / 3); width: auto; scroll-snap-align: start; }
@media (max-width: 900px) { html body.landfree-refined .home-work-grid .home-work-card { flex-basis: calc((100% - 52px) / 2); } }
@media (max-width: 600px) {
  html body.landfree-refined .home-work-header { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .home-work-header > div:first-child { flex-basis: 100%; }
  html body.landfree-refined .home-work-grid { gap: 16px; }
  html body.landfree-refined .home-work-grid .home-work-card { flex-basis: 84%; }
}
@media (prefers-reduced-motion: reduce) { html body.landfree-refined .home-work-grid { scroll-behavior: auto; } }
