:root {
  --blue: #00a3e4;
  --ink: #101418;
  --icon: #006d99;
  --line: #dce4e9;
  --tint: #ebf8fe;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }

body {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 2rem clamp(1rem, 5vw, 3rem);
}

.portal {
  width: min(100%, 44rem);
  margin-inline: auto;
}

.brand {
  margin: 0 0 clamp(2rem, 6vw, 3.5rem);
}

.brand img {
  display: block;
  width: clamp(7rem, 18vw, 10rem);
  height: auto;
  margin-inline: auto;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.875rem, 3vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: clamp(9rem, 22vw, 12rem);
  height: 100%;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px #102b3910;
  color: inherit;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.service::after {
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid var(--icon);
  border-right: 2px solid var(--icon);
  transform: rotate(45deg);
  content: "";
}

@media (hover: hover) {
  .service:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    background: #fafdff;
    box-shadow: 0 8px 20px #102b3919;
  }
}

.service:focus-visible {
  outline: 3px solid var(--icon);
  outline-offset: 4px;
}

.icon {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border-radius: 0.875rem;
  background: var(--tint);
  color: var(--icon);
}

.chip {
  position: relative;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid;
  border-radius: 0.25rem;
}

.chip::before {
  position: absolute;
  inset: 0;
  width: 2px;
  height: 2px;
  margin: auto;
  color: inherit;
  background: currentColor;
  box-shadow:
    -0.25rem -0.8125rem, 0 -0.8125rem, 0.25rem -0.8125rem,
    -0.25rem 0.8125rem, 0 0.8125rem, 0.25rem 0.8125rem,
    -0.8125rem -0.25rem, -0.8125rem 0, -0.8125rem 0.25rem,
    0.8125rem -0.25rem, 0.8125rem 0, 0.8125rem 0.25rem;
  content: "";
}

.camera {
  position: relative;
  left: -0.25rem;
  width: 1.375rem;
  height: 1rem;
  border: 2px solid;
  border-radius: 0.25rem;
}

.camera::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0.625rem;
  height: 0.875rem;
  transform: translateY(-50%);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%);
  background: currentColor;
  content: "";
}

@media (prefers-reduced-motion: reduce) {
  .service { transition: none; }
  .service:hover { transform: none; }
}
