/* ==========================================================================
   homelab.html — the extra pieces on top of style.css.
   Same palette, same type. Nothing here changes the main page.
   ========================================================================== */

/* ------------------------------------------------------------- numbers ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: 2.75rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--bg-soft);
}

.stat-fig {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--fg);
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------- diagram ---- */

.diagram {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  line-height: 0;
  overflow-x: auto;
}

.diagram svg { display: block; min-width: 720px; }

.diagram-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--dim);
}

/* ------------------------------------------------------------ services ---- */

.services-lead { max-width: 62ch; margin: 0 0 3rem; }

.svc-group { margin-bottom: 3.25rem; }
.svc-group:last-child { margin-bottom: 0; }

.svc-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.svc-head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.svc-count {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dim);
}

.svc-note {
  margin: 0.7rem 0 1.5rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.svc {
  padding: 1.4rem 1.35rem 1.6rem;
  background: var(--bg-soft);
  transition: background 0.22s ease;
}

.svc:hover { background: #16161a; }

.svc h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.svc-role {
  margin: 0.3rem 0 0.8rem;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.svc-role::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.svc-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------- kept ---- */

.kept {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 72ch;
  border-top: 1px solid var(--line);
}

.kept li {
  padding: 1.1rem 0 1.1rem 2.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
}

.kept li::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 1.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

/* -------------------------------------------------------------- small ---- */

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .diagram svg { min-width: 640px; }
}
