@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  color-scheme: light;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: #173632;
  background: #f5f8f7;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.portal {
  position: relative;
  isolation: isolate;
}

.hero {
  --hero-height: clamp(286px, 37vh, 338px);
  display: grid;
  min-height: var(--hero-height);
  place-items: center;
  padding: 24px;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: calc(var(--hero-height) + 73px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 64%, #18504c 0, transparent 58%),
    linear-gradient(110deg, #082729, #0e3939 68%, #0a2e30);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  width: min(680px, 63vw);
  height: 360px;
  border: 1px solid rgb(143 223 194 / 20%);
  border-radius: 50%;
  outline: 1px solid rgb(143 223 194 / 13%);
  outline-offset: 27px;
  box-shadow:
    0 0 0 26px rgb(143 223 194 / 1%),
    0 0 0 58px rgb(143 223 194 / 2%),
    0 0 0 59px rgb(143 223 194 / 4%);
  content: "";
}

.hero-art::before {
  top: 48px;
  right: calc(50% + 300px);
  transform: rotate(-32deg);
}

.hero-art::after {
  bottom: -30px;
  left: calc(50% + 308px);
  transform: rotate(-32deg);
}

.hero-brand {
  width: min(421px, 92%);
  margin: 0;
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgb(0 25 27 / 33%));
}

.directory {
  width: min(1064px, calc(100% - 64px));
  margin-inline: auto;
}

.systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system {
  --plate: #eaf8f3;
  --plate-light: #f4fcf8;
  --ink: #256e65;
  display: grid;
  height: 100%;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgb(17 68 62 / 10%);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 3px 5px rgb(17 68 62 / 3%), 0 13px 30px -22px rgb(17 68 62 / 24%);
  color: inherit;
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.system:focus-visible {
  outline: 3px solid #087c78;
  outline-offset: 4px;
}

.system--admin {
  --plate: #e9f2f5;
  --plate-light: #f3f8fa;
  --ink: #3c6479;
}

.system--survey {
  --plate: #f1edf8;
  --plate-light: #f8f5fc;
  --ink: #69528c;
}

.system--cash {
  --plate: #eef4e5;
  --plate-light: #f7faef;
  --ink: #527034;
}

.system--video {
  --plate: #eaf2fc;
  --plate-light: #f3f8fd;
  --ink: #3e6295;
}

.system--image {
  --plate: #f9efe8;
  --plate-light: #fcf7f2;
  --ink: #8a5e45;
}

.system-plate {
  display: grid;
  min-height: 108px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--plate-light), var(--plate));
}

.system-logo {
  position: relative;
  display: block;
  width: min(179px, 77%);
}

.system-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.system-wordmark {
  position: absolute;
  right: 0;
  bottom: -1px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .34em;
  line-height: 1;
}

.system-label {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 8px 0 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.24;
  word-spacing: .04em;
}

.system-arrow {
  position: relative;
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--plate);
  color: var(--ink);
  transition: background-color 190ms ease, color 190ms ease;
}

.system-arrow::before {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  margin-left: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
}

.system-arrow::after {
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  content: "";
}

@media (hover: hover) {
  .system:hover {
    transform: translateY(-4px);
  }
}

.system:focus-visible,
.system:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 30px -19px rgb(17 68 62 / 42%);
}

.system:focus-visible .system-arrow,
.system:hover .system-arrow {
  background: var(--ink);
  color: #fff;
}

.footer {
  display: flex;
  width: min(1064px, calc(100% - 64px));
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: auto auto 0;
  padding: 37px 0 31px;
  color: #4e6d66;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  text-align: center;
}

.footer-rule {
  width: 34px;
  height: 1px;
  background: #cadbd4;
}

@media (max-width: 820px) {
  .directory,
  .footer {
    width: min(640px, calc(100% - 52px));
  }

  .systems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .hero {
    --hero-height: 235px;
  }

  .hero-art {
    height: 287px;
  }

  .hero-art::before {
    right: calc(50% + 121px);
  }

  .hero-art::after {
    left: calc(50% + 135px);
  }

  .hero-brand {
    width: min(276px, 86%);
  }

  .directory,
  .footer {
    width: calc(100% - 34px);
  }

  .systems {
    gap: 11px;
  }

  .system {
    padding: 5px;
    border-radius: 16px;
  }

  .system-plate {
    min-height: 84px;
    border-radius: 10px;
  }

  .system-logo {
    width: min(140px, 82%);
  }

  .system-wordmark {
    bottom: -2px;
    font-size: 7px;
    letter-spacing: .28em;
  }

  .system-label {
    min-height: 46px;
    gap: 5px;
    padding: 5px 4px 0 6px;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .system-arrow {
    width: 25px;
    height: 25px;
  }

  .footer {
    gap: 12px;
    padding: 29px 0 27px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system,
  .system-arrow {
    transition: none;
  }

  .system:hover {
    transform: none;
  }
}
