/* Incremental story maps — scoped, navy/copper, reduced-motion safe */
.hub-story {
  --hs-navy: #f8fafc;
  --hs-ink: #0f172a;
  --hs-mute: #475569;
  --hs-line: rgba(196, 165, 116, 0.45);
  --hs-copper: #9a5b25;
  --hs-fill: rgba(248, 250, 252, 0.96);
  grid-column: 1 / -1;
  margin: 20px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(196, 165, 116, 0.07), transparent 40%),
    var(--hs-fill);
  color: var(--hs-ink);
}
.hub-story-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hs-copper);
}
main > #hub-fail-closed {
  margin-inline: var(--hub-keepout, 24px);
}
#hub-decision-flow {
  scroll-margin-top: 100px;
}
.hub-story h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hub-story p.hub-story-lead {
  margin: 0 0 16px;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hs-mute);
}
.hub-story-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .hub-story-steps { grid-template-columns: 1fr 1fr; }
}
.hub-story-step {
  appearance: none;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 12px 12px 14px;
  min-height: 108px;
}
.hub-story-step[aria-pressed="true"],
.hub-story-step.is-on {
  border-color: var(--hs-copper);
  box-shadow: inset 0 0 0 1px rgba(196, 165, 116, 0.35);
  background: rgba(196, 165, 116, 0.12);
}
.hub-story-step .n {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--hs-copper);
  margin-bottom: 6px;
}
.hub-story-step strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.hub-story-step small { display: block; font-size: 12px; line-height: 1.4; color: var(--hs-mute); }
.hub-story-note {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--hs-copper);
}
.hub-verify-copy {
  margin-top: 14px;
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(196,165,116,.4);
  background: transparent;
  color: #785021;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: .06em;
}
.hub-verify-copy:hover { background: rgba(196,165,116,.12); }
.matrix-row-header.is-dim-hot,
.matrix-cell.is-dim-hot {
  outline: 1px solid rgba(196, 165, 116, 0.7);
  background: rgba(196, 165, 116, 0.1);
}
.hub-life {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 720px) { .hub-life { grid-template-columns: 1fr; } }
.hub-life-nav { display: flex; flex-direction: column; gap: 8px; }
.hub-life-nav button {
  appearance: none; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(196,165,116,.3);
  background: transparent; color: inherit; text-align: left; padding: 10px 12px;
}
.hub-life-nav button.is-on { background: rgba(196,165,116,.14); border-color: var(--hs-copper); }
.hub-life-stage {
  border: 1px dashed rgba(196,165,116,.35);
  border-radius: 16px;
  min-height: 140px;
  padding: 16px 18px;
}
.hub-life-stage b { color: var(--hs-copper); font-size: 11px; letter-spacing: .14em; display:block; margin-bottom:8px; }
.topology-card.is-on {
  outline: 1px solid rgba(196,165,116,.7);
  box-shadow: 0 0 0 4px rgba(196,165,116,.08);
}
.topology-drawing { position: relative; }
.topology-drawing .hs-trace {
  position: absolute; inset: 18% 12%;
  border: 1px dashed rgba(196,165,116,.55);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}
.topology-card.is-on .hs-trace { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .topology-card.is-on .hs-trace { animation: hs-orbit 2.8s linear infinite; }
}
@keyframes hs-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .topology-card.is-on .hs-trace,
  .hub-story * { animation: none !important; transition: none !important; }
}
.hub-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: #c4a574; z-index: 80; pointer-events: none;
}
