.companies-section {
  background: var(--ink, #16171c);
  padding: 135px 5.2vw 140px 20.9vw;
  position: relative;
  border-top: 1px solid var(--line, #efeee91a);
}

.companies-section:before {
  content: "";
  background: var(--line, #efeee91a);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20.9vw;
}

.companies-heading {
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.45fr 0.85fr;
  align-items: end;
  gap: 30px;
  padding-bottom: 86px;
  position: relative;
}

.companies-heading .section-kicker {
  color: #efeee9a6;
  align-self: start;
}

.companies-heading h2 {
  letter-spacing: -0.06em;
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  font-size: clamp(50px, 6vw, 96px);
  line-height: 0.86;
  color: var(--paper, #efeee9);
}

.companies-heading h2 em {
  color: var(--brass-pale, #d4c08a);
  font-weight: 450;
}

.companies-lead {
  max-width: 280px;
  color: var(--paper-muted, #c7c6c0);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.company-grid {
  z-index: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.company-card {
  border: 1px solid var(--line, #efeee91a);
  min-height: 220px;
  padding: 28px 26px 24px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.28s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.company-card:hover {
  background: #efeee909;
  border-color: #b79a5e80;
  transform: translateY(-2px);
}

.company-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-mark {
  width: 72px;
  height: 72px;
  background: #0b0c10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.company-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.company-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #efeee91f;
  background: #0b0c10;
  white-space: nowrap;
}

.company-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8d8c86;
  box-shadow: 0 0 0 0 rgba(141, 140, 134, 0.4);
}

.company-status-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.company-status-label,
.company-status-meta {
  font-family: "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-status-label {
  font-size: 10px;
  color: var(--paper, #efeee9);
}

.company-status-meta {
  font-size: 9px;
  color: #c7c6c0;
}

.company-status.is-checking .company-status-dot {
  background: #d4c08a;
  animation: ce-status-pulse 1.4s ease-out infinite;
}

.company-status.is-online .company-status-dot {
  background: #7dcf9b;
  box-shadow: 0 0 10px #7dcf9b;
  animation: ce-status-pulse 2.2s ease-out infinite;
}

.company-status.is-online .company-status-label {
  color: #7dcf9b;
}

.company-status.is-secure .company-status-meta {
  color: #7dcf9b;
}

.company-status.is-down .company-status-dot {
  background: #d36b63;
  box-shadow: 0 0 10px #d36b63;
}

.company-status.is-down .company-status-label,
.company-status.is-down .company-status-meta {
  color: #d36b63;
}

@keyframes ce-status-pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.company-card h3 {
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  color: var(--paper, #efeee9);
}

.company-card p {
  margin: 0;
  max-width: 360px;
  color: var(--paper-muted, #c7c6c0);
  font-size: 13px;
  line-height: 1.55;
}

.company-card .company-link {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--brass-pale, #d4c08a);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.company-card .company-link:after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass, #b79a5e);
  transition: width 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

.company-card:hover .company-link:after {
  width: 36px;
}

.footer-companies {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-companies a {
  color: var(--brass-pale, #d4c08a);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-companies img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .companies-section {
    padding: 96px 9vw 110px;
  }

  .companies-section:before {
    left: 5vw;
  }

  .companies-heading,
  .company-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-status-dot {
    animation: none !important;
  }
}
