/* Approved icon-tile links. Navigation stays native, including without JS.
   Loaded after page styles so the same component works in either theme.
   14 October 2026, option A of the link-button theme mockup: the tiles take the same frosted glass
   and edge highlight as the glass panels and FAQ cards (assets/glass.css), the icon and the arrow sit
   in round badges, and the back and up buttons are glass pills like the header. */
a.link-tile.link-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 38rem;
  min-width: 0;
  min-height: 64px;
  margin: 12px 0 0;
  /* The right padding leaves room for the arrow badge drawn by ::before and ::after. */
  padding: 12px 62px 12px 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 34px -24px rgb(0 0 0 / .55);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: var(--ink);
  font-family: var(--body);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
}
.link-tile > .link-tile-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: color-mix(in oklch, var(--signal) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--signal) 34%, transparent);
  color: var(--signal-text);
  font-size: 16px;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.link-tile > .link-tile-label {
  display: block;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}
a.link-tile.link-tile:hover {
  background: color-mix(in oklch, var(--signal) 10%, var(--glass));
  border-color: color-mix(in oklch, var(--signal-text) 60%, transparent);
  color: var(--ink);
  transform: translateY(-2px);
  text-decoration: none;
}
a.link-tile.link-tile:focus-visible {
  outline: 3px solid var(--signal-text);
  outline-offset: 4px;
}
a.link-tile.link-tile:active { transform: translateY(0); }
 .about-cases.about-cases, .related-projects.related-projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
 .about-cases.about-cases a.link-tile, .related-projects.related-projects a.link-tile { margin: 0; }
/* These used line breaks to separate text links. Tiles supply their own spacing. */
.svc-more > br { display: none; }
@media (min-width: 760px) {
  .related-projects.related-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-projects.related-projects a.link-tile { max-width: none; }
}

/* A directional cue makes the whole surface read as a link button: a round badge (::before)
   holding an arrow (::after) that fills teal and nudges forward on hover. */
a.link-tile.link-tile::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ink) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out;
}
a.link-tile.link-tile::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 21px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%20-960%20960%20960%22%3E%3Cpath%20d%3D%22M686-450H160v-60h526L438-758l42-42%20320%20320-320%20320-42-42%20248-248Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  transition: background-color 200ms ease-out, transform 250ms cubic-bezier(.16, 1, .3, 1);
}
a.link-tile.link-tile:hover::before { background: var(--signal); box-shadow: none; }
a.link-tile.link-tile:hover::after { background: var(--signal-ink); transform: translateX(3px); }

/* Back and up: a compact glass pill whose round icon badge carries the direction. */
a.link-tile.link-tile-back {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 18px 6px 6px;
  margin: 0 0 24px;
  gap: 10px;
  border-radius: 999px;
}
a.link-tile-back > .link-tile-icon {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  transform: rotate(180deg);
}
a.link-tile-up > .link-tile-icon { transform: rotate(-90deg); }
a.link-tile.link-tile-back::before,
a.link-tile.link-tile-back::after { display: none; }
a.link-tile.link-tile-back:hover > .link-tile-icon { background: var(--signal); color: var(--signal-ink); }

@media (prefers-reduced-transparency: reduce) {
  a.link-tile.link-tile { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  a.link-tile.link-tile, a.link-tile.link-tile::after { transition: none; }
  a.link-tile.link-tile:hover, a.link-tile.link-tile:hover::after { transform: none; }
}
