/* Section: the six service tiles (#tiles) - Tony, 2026-10-29. Home page + Services page. Site tokens, so it follows the theme. */
.tiles { padding-block: clamp(56px, 8vw, 104px); }
.tiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: clamp(26px, 4vw, 44px); }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden;
  background: var(--grad-soft, var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow-1, none);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2, none); }
.tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.tile-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-icon { display: grid; place-items: center; }
.tile-icon img { width: 44%; height: auto; object-fit: contain; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.tile-k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.tile-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tile-blurb { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tile-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--cyan); }
.tile-go .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tile:hover .tile-go .ico { transform: translateX(4px); }
@media (max-width: 960px) { .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tiles-grid { grid-template-columns: 1fr; gap: 12px; }
  .tile { flex-direction: row; }
  .tile-img { aspect-ratio: auto; width: 34%; flex: none; }
  .tile-body { padding: 12px 14px; gap: 4px; }
  .tile-name { font-size: 17px; }
  .tile-blurb { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tile-go { display: none; }
}
html.reduced .tile, html.reduced .tile-img img { transition: none; }
