.hub-system {
  --hub-bg: #0a0b0d;
  --hub-panel: #0e1013;
  --hub-text: #f0f1f3;
  --hub-muted: #a1a5ad;
  --hub-line: #41464f;
  --hub-faint: #262b32;
  color: var(--hub-text);
  font-family: var(--font-sans, var(--sans, sans-serif));
}
.hub-system *, .hub-system *::before, .hub-system *::after { box-sizing: border-box; }
.hub-system p, .hub-system h2, .hub-system h3, .hub-system h4, .hub-system figure { margin: 0; }
.hub-heading { display: grid; grid-template-columns: 1fr minmax(260px, 360px); align-items: end; gap: 48px; margin-bottom: 40px; }
.hub-kicker, .hub-map-label, .hub-node-index, .hub-core-index, .hub-module-index {
  font-family: var(--font-mono, var(--mono, monospace));
  font-size: 9px; font-weight: 400; line-height: 1.5; letter-spacing: 1.3px;
}
.hub-kicker { color: #b7bbc3; margin-bottom: 20px !important; }
.hub-heading h2 { font-family: var(--font-display, var(--serif, serif)); font-size: clamp(32px, 3.5vw, 48px); font-weight: 400; line-height: 1.35; letter-spacing: 1.5px; }
.hub-heading-line { color: #c4c7cd; font-size: 14px; line-height: 1.8; margin-top: 14px !important; letter-spacing: .7px; }
.hub-intro { max-width: 360px; color: var(--hub-muted); font-size: 12px; line-height: 2.1; padding-bottom: 3px; }
.hub-map { border: 1px solid #393e46; background: var(--hub-bg); }
.hub-map-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 26px; border-bottom: 1px solid var(--hub-faint); }
.hub-map-label { color: #d6d9de; letter-spacing: 1.5px; }
.hub-legend { display: flex; gap: 22px; color: #9ca2ac; font-size: 10px; line-height: 1.6; }
.hub-legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hub-legend-line { width: 22px; height: 0; border-top: 1px solid #adb4be; }
.hub-legend-line--return { border-top-style: dashed; border-color: #6f7783; }
.hub-stage { position: relative; height: 780px; isolation: isolate; overflow: hidden; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: #8c949f; }
.hub-lines path, .hub-lines ellipse { vector-effect: non-scaling-stroke; }
.hub-orbit-line { fill: none; stroke: #252a31; stroke-width: 1; stroke-dasharray: 2 8; }
.hub-axis { fill: none; stroke: #1d2229; stroke-width: 1; }
.hub-link { fill: none; stroke: #626b77; stroke-width: 1; transition: stroke .2s ease, stroke-width .2s ease; }
.hub-junctions circle { fill: #929aa6; stroke: var(--hub-bg); stroke-width: 2; }
.hub-output-line { fill: none; stroke: #8e97a3; stroke-width: 1; }
.hub-return-line { fill: none; stroke: #697381; stroke-width: 1; stroke-dasharray: 4 6; }
.hub-return-label { position: absolute; right: 8%; top: 10px; padding: 0 12px; color: #8993a0; background: var(--hub-bg); font-size: 9px; line-height: 16px; letter-spacing: 1px; }
.hub-core {
  position: absolute; z-index: 2; left: 50%; top: 278px; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 24.83%; height: 208px; padding: 20px 14px; text-align: center;
  border: 1px solid #aeb6c2; background: radial-gradient(ellipse at 50% 0%, #252a32 0%, #12151a 62%);
  box-shadow: 0 0 0 7px #aeb6c207, 0 0 42px #aeb6c207;
  transition: border-color .2s, box-shadow .2s;
}
.hub-core::before, .hub-core::after { content: ''; position: absolute; width: 5px; height: 5px; background: #dbe0e7; }
.hub-core::before { left: -3px; top: -3px; }
.hub-core::after { right: -3px; bottom: -3px; }
.hub-core-index { color: #aab2bf; font-size: 8px; letter-spacing: 1.7px; }
.hub-core h3 { font: 400 clamp(25px, 2.5vw, 34px)/1.35 var(--font-display, var(--serif, serif)); letter-spacing: 3px; margin-top: 13px; }
.hub-core-role { color: #d0d5dd; font-size: 11px; letter-spacing: 3px; margin-top: 5px !important; }
.hub-core-rule { height: 1px; width: 28px; margin: 15px 0 12px; background: #656e7c; }
.hub-core-question { color: #b9c0ca; font-size: 11px; line-height: 1.7; letter-spacing: .7px; }
.hub-core-actions { color: #9ca6b4; font-size: 9px; line-height: 1.7; margin-top: 5px !important; white-space: nowrap; }
.hub-crafts, .hub-flow { display: contents; }
.hub-node, .hub-step {
  position: absolute; z-index: 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--hub-panel); border: 1px solid var(--hub-line); color: var(--hub-text);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hub-node { width: 22.42%; min-height: 120px; padding: 17px 20px; }
.hub-node::after { content: ''; position: absolute; right: 10px; top: 11px; width: 3px; height: 3px; border: 1px solid #6c7582; transition: background .2s; }
.hub-node-index { color: #929ca9; font-size: 8px; letter-spacing: .8px; }
.hub-node h4, .hub-step h4 { font-family: var(--font-sans, var(--sans, sans-serif)); font-size: 17px; font-weight: 500; line-height: 1.5; letter-spacing: .6px; margin-top: 7px; }
.hub-node p, .hub-step p { color: #b3bac4; font-size: 11px; line-height: 1.85; margin-top: 7px; overflow-wrap: anywhere; }
.hub-node--story { left: 21.03%; top: 98px; }
.hub-node--shot { left: 78.97%; top: 98px; }
.hub-node--camera { left: 84.48%; top: 278px; }
.hub-node--art { left: 15.52%; top: 278px; }
.hub-node--performance { left: 21.03%; top: 470px; }
.hub-node--edit { left: 78.97%; top: 470px; }
.hub-node-link { display: none; }
.hub-confirm-label { position: absolute; z-index: 1; left: 35%; top: 545px; padding: 0 10px; background: var(--hub-bg); color: #9ba4b1; font-size: 10px; line-height: 18px; letter-spacing: 1px; }
.hub-step { top: 680px; width: 30%; min-height: 150px; padding: 22px 24px; border-color: #59616c; }
.hub-step--compile { left: 16.67%; }
.hub-step--execute { left: 50%; }
.hub-step--review { left: 83.33%; border-style: dashed; }
.hub-step h4 { font-size: 18px; }
.hub-step--review h4 { display: flex; align-items: center; justify-content: space-between; }
.hub-step--review h4 span { color: #b5bfcc; font: 25px/1 var(--font-mono, var(--mono, monospace)); font-weight: 400; }
.hub-core:hover, .hub-core:focus-visible { border-color: #f1f4f8; box-shadow: 0 0 0 7px #aeb6c20c, 0 0 42px #aeb6c20e; }
.hub-node:hover, .hub-node:focus-visible, .hub-step:hover, .hub-step:focus-visible { border-color: #d0d7e0; background: #171b21; box-shadow: 0 0 20px #aeb6c208; }
.hub-node:hover::after, .hub-node:focus-visible::after { background: #e1e6ed; border-color: #e1e6ed; }
.hub-stage :is(.hub-core, .hub-node, .hub-step):focus-visible { outline: 1px solid #eff3f8; outline-offset: 5px; }
.hub-stage:has(.hub-node--story:is(:hover, :focus-visible)) .hub-link--story,
.hub-stage:has(.hub-node--shot:is(:hover, :focus-visible)) .hub-link--shot,
.hub-stage:has(.hub-node--camera:is(:hover, :focus-visible)) .hub-link--camera,
.hub-stage:has(.hub-node--art:is(:hover, :focus-visible)) .hub-link--art,
.hub-stage:has(.hub-node--performance:is(:hover, :focus-visible)) .hub-link--performance,
.hub-stage:has(.hub-node--edit:is(:hover, :focus-visible)) .hub-link--edit { stroke: #eef2f7; stroke-width: 1.5; }
.hub-stage:has(.hub-step:is(:hover, :focus-visible)) .hub-output-line,
.hub-stage:has(.hub-step--review:is(:hover, :focus-visible)) .hub-return-line { stroke: #e2e8f0; }
.hub-caption { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-top: 1px solid var(--hub-faint); }
.hub-caption > span { font-size: 11px; line-height: 1.8; letter-spacing: .7px; color: #d0d5dd; }
.hub-caption p { font-size: 10px; line-height: 1.9; color: #9da6b2; }
.hub-modules { margin-top: 26px; border-top: 1px solid #3c424b; border-bottom: 1px solid #3c424b; }
.hub-modules summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 13px; letter-spacing: .5px; }
.hub-modules summary::-webkit-details-marker { display: none; }
.hub-modules summary small { display: inline-block; margin-left: 22px; color: #989faa; font-size: 10px; letter-spacing: .4px; }
.hub-modules summary:focus-visible { outline: 1px solid #d7dde6; outline-offset: 6px; }
.hub-toggle { color: #b2bdcb; font: 22px/1 var(--font-mono, var(--mono, monospace)); transition: transform .2s; }
.hub-modules[open] .hub-toggle { transform: rotate(45deg); }
.hub-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #2e343d; padding-bottom: 6px; }
.hub-module-grid article { min-width: 0; padding: 24px 20px 26px 0; }
.hub-module-index { color: #737f90; }
.hub-module-grid h3 { font-size: 14px; line-height: 1.7; font-weight: 500; letter-spacing: .5px; margin-top: 6px; }
.hub-module-grid p { max-width: 26em; color: #a2abb8; font-size: 11px; line-height: 2; margin-top: 10px; }

@media (max-width: 1000px) {
  .hub-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .hub-intro { max-width: 42em; }
  .hub-map-top { padding: 18px 20px; }
  .hub-stage { display: flex; flex-direction: column; gap: 26px; height: auto; padding: 26px 28px 28px; overflow: hidden; }
  .hub-lines { display: none; }
  .hub-stage::before { content: ''; position: absolute; z-index: -1; top: 26px; bottom: 28px; left: 10px; width: calc(50% - 10px); border: 1px dashed #606c7c; border-right: 0; }
  .hub-return-label { z-index: 2; right: auto; top: 50%; left: 3px; padding: 9px 1px; background: var(--hub-bg); font-size: 8px; line-height: 1; letter-spacing: 2px; writing-mode: vertical-rl; }
  .hub-core { position: relative; inset: auto; transform: none; width: 100%; height: 204px; flex-shrink: 0; }
  .hub-core h3 { font-size: 32px; }
  .hub-crafts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
  .hub-crafts::before { content: ''; position: absolute; left: 50%; top: -26px; bottom: -26px; width: 0; border-left: 1px solid #626e7f; }
  .hub-stage .hub-node { position: relative; inset: auto; transform: none; width: 100%; min-height: 142px; padding: 18px 20px; }
  .hub-node h4 { font-size: 16px; }
  .hub-node p { font-size: 11px; }
  .hub-node-index { font-size: 8px; letter-spacing: .5px; }
  .hub-node-link { display: block; position: absolute; top: 50%; width: 16px; height: 2px; color: #7b8798; pointer-events: none; overflow: visible; }
  .hub-node-link path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .hub-node--story .hub-node-link, .hub-node--camera .hub-node-link, .hub-node--performance .hub-node-link { right: -16px; }
  .hub-node--shot .hub-node-link, .hub-node--art .hub-node-link, .hub-node--edit .hub-node-link { left: -16px; }
  .hub-confirm-label { position: relative; inset: auto; align-self: center; padding: 0 8px; text-align: center; font-size: 10px; line-height: 1.8; }
  .hub-flow { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; }
  .hub-flow::before { content: ''; position: absolute; left: 50%; top: -26px; bottom: 20px; border-left: 1px solid #7f8c9e; }
  .hub-stage .hub-step { position: relative; inset: auto; transform: none; width: 100%; min-height: 132px; padding: 20px 24px; }
  .hub-step:not(:first-child)::before { content: '↓'; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); padding: 0 5px; color: #a9b5c5; background: var(--hub-bg); font: 15px/23px var(--font-mono, var(--mono, monospace)); }
  .hub-step h4 { font-size: 18px; }
  .hub-caption { display: block; padding: 18px 20px; }
  .hub-caption p { margin-top: 7px; }
  .hub-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hub-heading h2 { font-size: 32px; }
  .hub-heading-line { font-size: 12px; }
  .hub-intro { font-size: 11px; }
  .hub-map-top { display: block; padding: 17px 18px; }
  .hub-map-label { font-size: 9px; }
  .hub-legend { gap: 20px; font-size: 9px; margin-top: 10px; }
  .hub-stage { padding: 24px 22px; gap: 24px; }
  .hub-stage::before { top: 24px; bottom: 24px; left: 8px; width: calc(50% - 8px); }
  .hub-return-label { left: 1px; font-size: 7px; }
  .hub-core { height: 192px; padding: 18px 10px; }
  .hub-core h3 { font-size: 29px; }
  .hub-core-index { font-size: 7px; }
  .hub-core-role { font-size: 10px; }
  .hub-core-question { font-size: 10px; }
  .hub-core-actions { font-size: 8px; letter-spacing: 0; }
  .hub-crafts { gap: 16px 26px; }
  .hub-stage .hub-node { min-height: 160px; padding: 16px 11px; }
  .hub-node-index { font-size: 6px; line-height: 1.7; letter-spacing: .1px; }
  .hub-node h4 { font-size: 14px; letter-spacing: .1px; }
  .hub-node p { font-size: 10px; line-height: 1.9; }
  .hub-node-link { width: 13px; }
  .hub-node--story .hub-node-link, .hub-node--camera .hub-node-link, .hub-node--performance .hub-node-link { right: -13px; }
  .hub-node--shot .hub-node-link, .hub-node--art .hub-node-link, .hub-node--edit .hub-node-link { left: -13px; }
  .hub-node::after { width: 2px; height: 2px; top: 8px; right: 8px; }
  .hub-stage .hub-step { padding: 18px; min-height: 128px; }
  .hub-step .hub-node-index { font-size: 8px; }
  .hub-step h4 { font-size: 17px; }
  .hub-step p { font-size: 11px; }
  .hub-caption { padding: 17px 18px; }
  .hub-caption > span { font-size: 10px; }
  .hub-caption p { font-size: 9px; }
  .hub-modules { margin-top: 22px; }
  .hub-modules summary { padding: 20px 0; font-size: 12px; }
  .hub-modules summary small { display: block; margin: 7px 0 0; font-size: 9px; }
  .hub-module-grid { gap: 0 18px; }
  .hub-module-grid article { padding: 20px 0 22px; }
  .hub-module-grid h3 { font-size: 13px; }
  .hub-module-grid p { font-size: 10px; line-height: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-system *, .hub-system *::before, .hub-system *::after { transition: none !important; }
}
