html { scroll-padding-top: 92px; }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 2px solid #ffad80; outline-offset: 5px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 188px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(var(--feature-rgb), .1), #121214 62%);
  transition:
    transform .36s var(--ease),
    border-color .32s var(--ease),
    background .32s var(--ease),
    box-shadow .45s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    linear-gradient(135deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%) center / 10px 10px no-repeat,
    rgba(255, 255, 255, .04);
  color: var(--feature);
  opacity: .45;
  transform: translate3d(-4px, 4px, 0);
  transition: opacity .32s var(--ease), transform .36s var(--ease), border-color .32s var(--ease), background-color .32s var(--ease);
}
.tile:hover {
  border-color: rgba(var(--feature-rgb), .42);
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}
.tile:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  border-color: rgba(var(--feature-rgb), .45);
  background-color: rgba(var(--feature-rgb), .14);
}
.tile em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--feature);
  transition: letter-spacing .32s var(--ease), color .32s var(--ease);
}
.tile:hover em { letter-spacing: .2em; }
.tile strong {
  display: block;
  font-size: 19px;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.in .tile { animation: rise .5s var(--ease) backwards; }
.in .tile:nth-child(1) { animation-delay: .02s; }
.in .tile:nth-child(2) { animation-delay: .07s; }
.in .tile:nth-child(3) { animation-delay: .12s; }
.in .tile:nth-child(4) { animation-delay: .16s; }
.in .tile:nth-child(5) { animation-delay: .2s; }
.in .tile:nth-child(6) { animation-delay: .24s; }
.in .tile:nth-child(7) { animation-delay: .28s; }
.in .tile:nth-child(8) { animation-delay: .32s; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in .tile { animation: none; }
  .tile:hover { transform: none; }
}
