@font-face {
  font-family: Outfit;
  src: url("/assets/ecosystem/outfit-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F;
}

@font-face {
  font-family: Outfit;
  src: url("/assets/ecosystem/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.home-ecosystem {
  --ecosystem-ink: #08111f;
  --ecosystem-line: #d8dee8;
  --ecosystem-orange: #f26b21;
  border-block: 1px solid var(--ecosystem-line);
  background: #eef1f6;
  color: var(--ecosystem-ink);
  font-family: Outfit, sans-serif;
}

.home-ecosystem__inner {
  box-sizing: border-box;
  max-width: 1280px;
  margin-inline: auto;
  padding: 28px 20px;
}

.home-ecosystem .home-ecosystem__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: inherit;
  font: 600 12px/1.5 Outfit, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-ecosystem__label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ecosystem-orange);
}

.home-ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-ecosystem__grid > li {
  display: flex;
  min-width: 0;
}

.home-ecosystem .home-ecosystem__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  border-top: 1px solid var(--ecosystem-line);
  color: inherit;
  text-decoration: none;
}

.home-ecosystem__card:focus-visible {
  outline: 2px solid var(--ecosystem-orange);
  outline-offset: 2px;
}

.home-ecosystem__scene {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  max-height: 112px;
  overflow: hidden;
  background: var(--ecosystem-ink);
}

.home-ecosystem__scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65);
}

.home-ecosystem__scene--tectiq img {
  object-position: left center;
  transform: scale(1.32);
  transform-origin: left;
}

.home-ecosystem__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 0;
}

.home-ecosystem__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.home-ecosystem__domain {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: color-mix(in srgb, var(--brand-accent) 48%, var(--ecosystem-ink));
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.home-ecosystem__domain img {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

@media (max-width: 1023px) {
  .home-ecosystem__description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .home-ecosystem__inner { padding: 64px 32px; }
  .home-ecosystem .home-ecosystem__label { margin-bottom: 24px; }
  .home-ecosystem__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .home-ecosystem .home-ecosystem__card {
    border-top: 0;
    border-bottom: 1px solid var(--ecosystem-line);
  }
  .home-ecosystem__scene {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .home-ecosystem__scene::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
  }
  .home-ecosystem__card:is(:hover, :focus-visible) .home-ecosystem__scene::after { transform: scaleX(1); }
  .home-ecosystem__card:is(:hover, :focus-visible) .home-ecosystem__scene img { filter: none; }
  .home-ecosystem__details { padding: 16px 16px 20px; }
  .home-ecosystem__name { font-size: clamp(20px, 2.2vw, 28px); }
  .home-ecosystem__description {
    margin-block: 8px 20px;
    color: #3b485a;
    font-size: 15px;
    line-height: 1.4;
  }
  .home-ecosystem__domain {
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ecosystem-line);
    font-size: 14px;
  }
  .home-ecosystem__domain img { width: 20px; height: 20px; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .home-ecosystem__scene::after { transition: transform .3s; }
  .home-ecosystem__scene img { transition: filter .3s; }
}
