.dh-hub {
  --dh-hub-glow: var(--dh-accent, #2563ff);
  --dh-hub-ease: cubic-bezier(0.23, 1, 0.32, 1);
  container-type: inline-size;
  background: linear-gradient(rgb(5 5 8 / 0.9), rgb(5 5 8 / 0.9)), #050508 url("hub-night.jpg") top center / cover no-repeat;
  color: #fff;
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.dh-hub :where(ul, p) {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Everything is sized from one tile, and the tile from the block's width, so the whole
   map scales as one piece. Tiles sit one tile apart, across and down. */
.dh-hub-map {
  --dh-hub-size: clamp(56px, 14.3cqw, 172px);
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--dh-hub-size);
  width: calc(var(--dh-hub-size) * 5);
  margin: 0 auto;
  padding: calc(var(--dh-hub-size) * 0.72) 0 calc(var(--dh-hub-size) * 0.84);
  font-size: calc(var(--dh-hub-size) * 0.128);
  font-weight: 500;
}
.dh-hub-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* A wire draws itself in, then a short light keeps travelling along it. */
.dh-hub-wire {
  fill: none;
  stroke: color-mix(in srgb, var(--dh-hub-glow) 22%, #26283a);
  stroke-width: max(1.5px, calc(var(--dh-hub-size) * 0.014));
  stroke-dasharray: 1;
  animation: dh-hub-draw 1.6s var(--dh-hub-ease) backwards;
  transition: stroke 200ms var(--dh-hub-ease);
}
.dh-hub-wire[data-on] {
  stroke: color-mix(in srgb, var(--dh-hub-glow) 45%, #8f95c4);
}
.dh-hub-spark {
  fill: none;
  stroke: color-mix(in srgb, var(--dh-hub-glow) 40%, #fff);
  stroke-width: max(1.5px, calc(var(--dh-hub-size) * 0.014));
  stroke-linecap: round;
  stroke-dasharray: 0.07 1;
  opacity: 0.9;
  filter: drop-shadow(0 0 5px var(--dh-hub-glow));
  animation: dh-hub-run 4.2s linear infinite backwards;
}
@keyframes dh-hub-draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes dh-hub-run {
  from {
    stroke-dashoffset: 0.07;
  }
  to {
    stroke-dashoffset: -1;
  }
}

/* The centre: your product, lit from behind, with a few specks of light around it. */
.dh-hub-core {
  position: relative;
  display: grid;
  justify-items: center;
}
.dh-hub-core strong {
  position: absolute;
  top: calc(100% + var(--dh-hub-size) * 0.3);
  color: color-mix(in srgb, var(--dh-hub-glow) 22%, #fff3d6);
  font-weight: inherit;
  white-space: nowrap;
}
.dh-hub-core::before {
  position: absolute;
  inset: calc(var(--dh-hub-size) * -1.1);
  background: radial-gradient(rgb(255 255 255 / 0.5) 1px, transparent 1.5px) 0 0 / calc(var(--dh-hub-size) * 0.09) calc(var(--dh-hub-size) * 0.09);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 78%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 78%);
  opacity: 0.22;
  content: "";
}
.dh-hub-logo {
  position: relative;
  display: block;
  width: var(--dh-hub-size);
  height: var(--dh-hub-size);
  border-radius: 25%;
}
.dh-hub-logo::before {
  position: absolute;
  inset: -62%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--dh-hub-glow) 58%, transparent), color-mix(in srgb, var(--dh-hub-glow) 16%, transparent) 55%, transparent);
  content: "";
  animation: dh-hub-breathe 5s ease-in-out infinite;
}
.dh-hub-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.dh-hub-logo::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 calc(var(--dh-hub-size) * 0.014) rgb(255 255 255 / 0.36), 0 calc(var(--dh-hub-size) * 0.06) calc(var(--dh-hub-size) * 0.2) color-mix(in srgb, var(--dh-hub-glow) 50%, transparent);
  content: "";
}
@keyframes dh-hub-breathe {
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* The apps around it: one white mark on a dark tile each. */
.dh-hub-apps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, var(--dh-hub-size));
  gap: var(--dh-hub-size);
}
.dh-hub-apps li {
  position: relative;
}
.dh-hub-apps p {
  position: absolute;
  top: calc(100% + var(--dh-hub-size) * 0.26);
  left: 50%;
  white-space: nowrap;
  transform: translateX(-50%);
}
.dh-hub-tile {
  display: grid;
  place-items: center;
  width: var(--dh-hub-size);
  height: var(--dh-hub-size);
  border-radius: 27%;
  background: #131518;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.055),
    0 0 0 1px rgb(0 0 0 / 0.8),
    0 calc(var(--dh-hub-size) * 0.06) calc(var(--dh-hub-size) * 0.16) rgb(0 0 0 / 0.6);
  transition: transform 300ms var(--dh-hub-ease), background-color 300ms var(--dh-hub-ease);
}
.dh-hub-tile svg {
  width: 46%;
  height: 46%;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.4));
  transition: transform 300ms var(--dh-hub-ease);
}
@media (hover: hover) {
  .dh-hub-apps li:hover .dh-hub-tile {
    background: #181b1f;
    transform: translateY(calc(var(--dh-hub-size) * -0.02));
  }
  .dh-hub-apps li:hover svg {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dh-hub-wire,
  .dh-hub-logo::before {
    animation: none;
  }
  .dh-hub-spark {
    display: none;
  }
  .dh-hub-tile,
  .dh-hub-tile svg {
    transition: none;
  }
}
