/* /agentic-erp/ · the module catalogue. Class .mcat: v2.css owns .cat. Markup from build.py catalogue(); the names and links
   are read from /architecture/core/#modules.
   2026-10-19 (Saife, "go with B but remove all the numbers"): option B of /catalogue-variants/. TagFlow in the middle with
   its one data model, permission matrix and audit trail; the seven families around it on a 3x3 floor, each a lit panel
   of module chips wired to the core; the build-to-fit offer in the eighth seat. No counts anywhere. Wires: cat.js. */

.mcat .mcat__title { max-width: 15.5em; }
.mcat .hl { color: #b89bff; }

.mhub { position: relative; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "tl tc tr" "ml mc mr" "bl bc br"; gap: clamp(28px, 3.4vw, 52px); }
.mhub--tl { grid-area: tl; } .mhub--tc { grid-area: tc; } .mhub--tr { grid-area: tr; } .mhub--ml { grid-area: ml; } .mhub--mc { grid-area: mc; }
.mhub--mr { grid-area: mr; } .mhub--bl { grid-area: bl; } .mhub--bc { grid-area: bc; } .mhub--br { grid-area: br; }

/* the wires run from the core's centre to each panel's centre, behind the panels: every seat is opaque, so a line
   shows only in the gutters and never under text. They fade in once the core has arrived. */
.mhub__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1s ease .3s; }
.mhub__core.sc-in ~ .mhub__wires { opacity: 1; }
.mhub__wires path { fill: none; stroke: rgb(154 107 255 / .5); stroke-width: 1.4; }
.mhub__wires .run { stroke: #d9c9ff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 6px #b89bff); stroke-dasharray: 14 400; animation: mhubRun 3.2s linear infinite; }
@keyframes mhubRun { from { stroke-dashoffset: 414; } to { stroke-dashoffset: 0; } }

.mhub__fam, .mhub__core { position: relative; z-index: 1; padding: 18px 18px 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgb(26 20 52 / .96), rgb(14 11 30 / .97)), #0d0a1c;
  border: 1px solid rgb(154 107 255 / .45); box-shadow: 0 0 40px -16px rgb(154 107 255 / .7), inset 0 1px 0 rgb(220 205 255 / .12);
  transition: border-color .25s, box-shadow .25s; }
.mhub__fam:hover { border-color: rgb(184 155 255 / .8); box-shadow: 0 0 56px -12px rgb(154 107 255 / .85), inset 0 1px 0 rgb(220 205 255 / .18); }
.mhub__fam h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 16.5px/1.25 var(--sc-font-display); letter-spacing: -.01em; color: #f4f3ef; }
.mhub__ic { flex: none; width: 20px; height: 20px; color: #a98bff; }
.mhub__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mhub__chip { padding: 6px 10px; border-radius: 999px; font-size: 13.5px; line-height: 1.2; color: #ddd5f3; text-decoration: none;
  background: rgb(154 107 255 / .1); border: 1px solid rgb(154 107 255 / .28); transition: background .2s, border-color .2s, color .2s; }
/* "add a click to view each module" (Saife 2026-10-19): a chip that opens its docs guide carries a small arrow, and the
   core says so; a chip with no guide yet has neither */
a.mhub__chip::after { content: "\2197"; display: inline-block; margin-left: 5px; font-size: .82em; color: #a98bff; opacity: .7; transition: transform .2s, opacity .2s; }
a.mhub__chip:hover::after, a.mhub__chip:focus-visible::after { opacity: 1; transform: translate(1px, -1px); }
.mhub__hint { margin: 18px 0 0; font: 500 11.5px/1.3 var(--sc-font-mono); letter-spacing: .06em; text-transform: uppercase; color: #a99ad6; }
.mhub__hint i { font-style: normal; color: #b89bff; }
a.mhub__chip:hover, a.mhub__chip:focus-visible { color: #fff; background: rgb(154 107 255 / .25); border-color: rgb(184 155 255 / .75); }

.mhub__core { align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 22px; border-radius: 26px;
  border-color: rgb(184 155 255 / .85); background: radial-gradient(120% 90% at 50% 0%, rgb(90 60 180 / .55), rgb(20 15 42 / 0) 70%), #140f2a;
  box-shadow: 0 0 0 1px rgb(154 107 255 / .3), 0 0 90px -10px rgb(154 107 255 / .9), inset 0 1px 0 rgb(230 220 255 / .2); }
.mhub__core img { width: 64px; height: auto; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .5)); }
.mhub__name { margin: 10px 0 2px; font: 600 clamp(28px, 2.6vw, 38px)/1 var(--sc-font-display); letter-spacing: -.03em; color: #f4f3ef; }
.mhub__n { margin: 0 0 16px; font: 500 12px/1 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: #c9bdf0; }
.mhub__core ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #e6e0f7; }
.mhub__core li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 2px; background: #b89bff; box-shadow: 0 0 8px #b89bff; vertical-align: 2px; }

.mhub__fit { display: flex; flex-direction: column; border-style: dashed; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, rgb(26 20 52 / .75), rgb(14 11 30 / .85)), #0d0a1c; }
.mhub__fit p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #bdb6d0; }
.mhub__go { margin-top: auto; font-weight: 600; font-size: 14.5px; color: #e3dbff; }
.mhub__go i { display: inline-block; font-style: normal; transition: transform .25s; }
.mhub__fit:hover .mhub__go i { transform: translateX(3px); }

/* arrival (Saife 2026-10-18, "have these cards appear one by one"): each seat is its own data-sc-in; on the 3x3 floor
   the core comes first and the panels follow clockwise (--o), stacked they arrive as each reaches the screen.
   The delay sits on opacity and transform only, so hover light is never held back. */
.mhub > [data-sc-in] { --gap: 0ms; transform: translate3d(0, 28px, 0) scale(.97);
  transition-property: opacity, transform, box-shadow, border-color; transition-duration: .8s, .9s, .25s, .25s;
  transition-timing-function: var(--sc-ease-out), var(--sc-ease-out), ease, ease; transition-delay: var(--gap), var(--gap), 0s, 0s; }
.mhub > [data-sc-in].sc-in { transform: none; }
@media (min-width: 981px) { .mhub > [data-sc-in] { --gap: calc(var(--o) * 130ms); } }

@media (max-width: 980px) {
  .mhub { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mc" "tl" "tc" "tr" "ml" "mr" "bl" "bc" "br"; gap: 16px; }
  .mhub__wires { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mhub > [data-sc-in] { transform: none; --gap: 0ms; }
  .mhub__wires .run { animation: none; display: none; }
}
